[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing partition names



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.



Reply to: