Re: Making a partition larger without affecting my OS.
Michael <[email protected]>
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <2405204.ElGaqSPkdT@rogueboard> |
On Saturday, 14 March 2026 14:06:41 Greenwich Mean Time Dale wrote: > Howdy, > > As some know, on my old and new rig, I compile my updates in a chroot > environment. Then I copy the binaries over and use the -k option on > my running OS. That way I don't have a crash when one program is > updated and another it depends on is not yet updated. Anyway, my > chroot is getting squeezed a little. I need to expand it another > 30GBs or so so that I don't get not enough space errors. It's only > the largest packages right now but the next larger ones are growing > and will start having issues as well. I have a m.2 stick for my OS. > It's a 1TB stick. I have plenty of space unused. I did the OS first > and then did a partition for the chroot thingy. The partition named > build-part is the chroot. The parts above it are the OS. This is the > current layout. > > > > Part. # Size Partition Type Partition Name > ---------------------------------------------------------------- > 1007.0 KiB free space > 1 2.0 GiB EFI system partition efi-part > 2 10.0 GiB Linux filesystem boot > 3 400.0 GiB Linux filesystem root-part > 4 180.0 GiB Linux filesystem var-part > 5 150.0 GiB Linux filesystem build-part > 189.5 GiB free space > > > > 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. Yes, you could delete and recreate the last partition in the table, but this sounds like a lot of extra (unnecessary) work. > My question, thing I want to be sure of, if I > delete that and re-add it, that will not affect my OS at all? Right? > I may do a back up first but still, I'd like to be sure this is at > least doable and not risky. Any interaction with partitions can result in loss of data, so a fresh backup at least of the partition table before you start any resizing/ deleting/creating partitions is advisable. > I'll be using cgdisk and the usual file > system tools for this. I'm assuming I'll have to recreate the file > system and such. > > Thanks in advance. > > Dale > > :-) :-) I suggest you unmount partition 5, then use parted (or if you prefer a GUI try gparted, or the KDE Partition Manager) to resize the end point of it. If you use parted on the CLI you will additionally need to increase the size of the filesystem within the partition after the partition has been resized.
signature.asc
(application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmm1lm0bFIAAAAAABAAO bWFudTIsMi41KzEuMTEsMiwyAAoJELHqqvbClWcZRloP/RaiB65QZ92iBYQSntJK zzmq6CaJS6eR9oiqKPUlf0SC4mUUxCI9PO7fYyCNuRXitoPkp0RXTs+cGUCO86zz LZ22DWQOQHLbtFbPe4Br/D9Zvwdy0VaNrT75ikAl1NePqyqw4CshRq5dHcqqzQJs REMIJj9ZCgfvK9UFqfT7zI3tpQ92XHLNV9wp4zE9d7yZBslcznV8TYMRmE/9Mvah PQQFU6N2zC3vYkySHMOChI4lviR4ZiAu1SMEm8RTLj6c8BwM0Ecq0MF4AdQrO6+t Ffuj8jxhiccNQ6wTR0nkDvQHkJnmiQy9VKqGxI3Iu3n/6QGqEKJwMXboPX/40RJA NdTYEunml9nJ7EpZWUd820jZ+3xlMWYjoyvlVuFt97b8mA7IYCNWbLFF1/cp6lC9 e33rwc6sOFSFiCOktZ85YgW/ZMrOHKb9/qktob86rv4QTPt+DWnK8TGB8WFGHpah 3JeMy9DdIeqqcZxbN+S3PcgXho5QqYVmBsHiYqKP65FwDonTrR2peW1kQHPoNAAM c2A6ON6zq/TZ1D5lfZ32DmBBc8dTA2ZaAgojqsmQtRbHId741sVMuYVXWlIRpwUi f4jGrObUSJkldU0i0kmHV9xfFA2RPIraQ6prX1w7WeoezW8RCVjlIUWKWBc1LB2o ujnsywpq1e4m/biO0L3QvIcJ =4DFK -----END PGP SIGNATURE-----