Hi all,
I pumped up my /home to nearly 100% during a git repo sync.
My first disc has 4 parts:
/home and 3 data parts. I plan to reduce the 4th part and increase the /home part.
I prefer to use gparted. Is it possible to reduce part 4 and to increase the size of /home in a second step after?
Is it safer to resize from cmd-line? How-to then?
Thanks for help.
The partitions must be contiguous.
Must work from a live-cd
Gparted is ideal.
Partitions must be unmounted.
I use a Parted Magic (http://partedmagic.com/doku.php?id=downloads) live USB stick that I made with unetbootin.
It can take a long time if the size changes are large -- you might want to start it before you leave the house or go to bed or something like that.
All above said is right, especially that you should do it while not being logged in in /home, so use some live system.
Assuming from your post that /home ist (physically) the first partition, then P2, P3, P4, the latter to be shrinked, gparted would actually do the following steps:
*Shrink partition 4 (P4) leaving unused space at the end of the device
*move P4 to the right (copy all data)
*move P3 to the right (that is adding size to P3 in the new place between p4 and P3, moving all data, deleting space at the beginning of P3)
*then the same with P2
*then blowing up P1 (home).
As dibl said, a very time consuming job. From my experience it is much faster if you have a big enough backup media / external hdd to backup all your data (check!), then delete partitions with gparted and renew with new partition scheme, then restore data.
Expect that possibly, but not sure, the UUIDS of your partitions might change even when only resizing (watch out i.e fstab)!
Increasing the size of a partition is much easier than shrinking it
Making new ones are faster, better, safer
Some things I don't do shortcuts for, been burned before on this, yes, it was a while ago, but, I don't trust resizing
Quote from: "piper"Making new ones are faster, better, safer
Some things I don't do shortcuts for, been burned before on this, yes, it was a while ago, but, I don't trust resizing
Even in Windows, resizing partitions is rather dicey as well. I've had weirdness occur after resizing a volume in Windows 7
+1