Re: Making a partition larger without affecting my OS.

Wol <[email protected]>
Newsgroups gmane.linux.gentoo.user
Message-ID <[email protected]>
On 14/03/2026 16:20, Philipp Ludwig wrote:
> Am 2026-03-14 15:06, schrieb Dale:
>> I think I can just delete the partition for build-part and then add a
>> new partition that is larger, then do a file system and rsync the
>> files back over.
> 
> You don't even have to do it like that. You can delete the small partition
> (without deleting the filesystem), recreate it as a larger partition and
> extend the filesystem with e.g. resize2fs (if you use ext4).
> A graphical tool like gparted will take care of it for you.

Good idea - I didn't think of that! I notice though that Dale didn't 
give the cylinders etc (or whatever they are on disks now). Just make 
sure that the build partition really is the last partition on the drive 
- just because it's the last in list order doesn't mean it's last 
physically. Windows was an absolute pain shuffling the order around ...

That also means that - provided you've backed up your "fdisk -l" onto 
paper or whatever, even if you delete the wrong partition, it will let 
you just recreate it, with no damage to the filesystem on it.

Cheers,
Wol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.