Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #164180
| From | Frank McCormick <debianlist@videotron.ca> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: changing partition names |
| Date | 2016-02-15 04:50 +0100 |
| Message-ID | <r2ikF-3JL-9@gated-at.bofh.it> (permalink) |
| References | <r2bMe-7Rl-17@gated-at.bofh.it> <r2fGa-1WN-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 14/02/16 07:49 PM, Felix Miata wrote:
> Frank McCormick composed on 2016-02-14 15:42 (UTC-0500):
>
>> I have deleted a partition from my HD containing a distro I no longer use.
>
>What motivated doing so? What exactly was/were your goal(s) in doing so?
To put the 15 gigs of space to better use :)
>
>> As a result, my partitions on /dev/sda are numbered sda1. sda2 (windows)
>> and sda4. sda3 contained the distro I dumped.
>
>> Can I just use fdisk or fsdisk to dump the existing partition record
>
> It's not something I've ever done, but as I understand them, using either to
> delete and recreate an existing partition should do that job, but compatibly
> only if you know how to recreate the same size and have it start on the same
> sector as it now does.
Googling the problem turns up several people who **claim** all that has
to be done is to dump the existing partition record to a text file using
sfdisk...changing the 4 to a 3...then telling sfdisk to recreate the
partition by feeding it the modified text file. However you note I said
**claim**.
>
> Frank McCormick composed on 2016-02-14 19:11 (UTC-0500):
>
>> This is what I have now from sfdisk -l
>
>> label: dos
>> label-id: 0x5a74aac4
>> device: /dev/sda
>> unit: sectors
>
>> /dev/sda1 : start= 2048, size= 194560, type=7
>> /dev/sda2 : start= 196608, size= 81920000, type=7
>> /dev/sda4 : start= 82116608, size= 74131456, type=83, bootable
>
>> ^^^^^^^^ this is what I need to change to /dev/sda3
>
>
>> sda1 and sda2 are the Windows partitions. sda4 is Debian
>
> As the size recovered by your deletion of sda3 was minimal
> (82116608-81920000=196608), you're probably best off, in terms of
> complication, by creating another partition in its space. Once created, make
> a new filesystem, and maybe mount it as /usr/local, /var/cache, /tmp or even
> /boot (assuming you know and can deal with the bootloader complications
> involved in doing so).
>
No, I reclaimed 15 GIGS of space. Gparted first moved the Debian
partition ( it was at the end of the disk, than created a new file
system in the recovered space, which was added to the Debian partition.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-14 21:50 +0100
Re: changing partition names rlharris@oplink.net - 2016-02-14 23:10 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 01:20 +0100
Re: changing partition names Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-02-15 03:00 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 04:40 +0100
Re: changing partition names Adam Wilson <moxalt@riseup.net> - 2016-02-16 07:50 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-15 02:00 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 04:50 +0100
Re: changing partition names Jonathan Dowland <jmtd@debian.org> - 2016-02-15 11:50 +0100
Re: changing partition names <tomas@tuxteam.de> - 2016-02-15 12:50 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 18:00 +0100
Re: changing partition names jdd <jdd@dodin.org> - 2016-02-15 18:50 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:00 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-15 21:10 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:20 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:10 +0100
Re: changing partition names Lisi Reisz <lisi.reisz@gmail.com> - 2016-02-16 00:20 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-16 00:40 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-16 01:30 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-16 04:40 +0100
Re: changing partition names jdd <jdd@dodin.org> - 2016-02-16 08:50 +0100
csiph-web