Re: Making a partition larger without affecting my OS.

Dale <[email protected]>
Newsgroups gmane.linux.gentoo.user
Message-ID <[email protected]>
On 3/14/26 11:58 AM, Wol wrote:
> 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
>


I was actually thinking if I just enlarge it, delete and add it back 
larger, that the file system and files would still be there.  I'd just 
need to 'grow' the file system to see the whole thing.  Either way, if I 
lose data on build-part, no biggie.  My basic process is this.  I run 
eix-sync && emerge -auDN world on my OS.  Once I get everything ready to 
build, I mount and use rsync to copy the main OS over.  It just updates 
so it doesn't take long plus it's on a m.2 stick.  Then I chroot in, run 
emerge -uDN world and then when done, copy the binaries over and add the 
-k option to emerge for the main OS.  So if I lose everything on 
build-part, my little script will just copy it back over again.

Since my update is done, time to logout and back in.  Fair size KDE 
update this weekend.  I'll work on resizing things in a bit.  It's nice 
outside so I'm a busy bee.

Thanks to all.

Dale

:-)  :-)
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.