Ubuntu 6.06 resized (expanded) /home partition

Robor

Elite Member
Oct 9, 1999
16,979
0
76
I had a 60GB drive in my Ubuntu/WinXP dual boot system that I cloned to an 80GB drive a while back. I had the following partitions

/boot (100MB)
WinXP (40GB)
/ (8GB)
/home (12GB)
/swap (512MB)
Unallocated (20GB)

I booted the Ubuntu 6.06 LiveCD and ran GParted. I moved the 512MB /swap partion to the end of the disk using some of the unallocated space and expanded it to 1GB. That worked fine. I then resized (expanded) the /home partition to use up all of the unallocated space from the end of the current /home partition to the beginning of the /swap partition. My /home directory was about 12GB of 12.5GB full. The resize worked showing a 32GB /home partition but the free space stayed the same (still only 500MB free). Any ideas?
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Solution: Thanks to 'tagra123' on UbuntuForums.org for the solution. I needed to use 'resize2fs'. The partition I extended was my /home partition on /dev/hda5 so in my case it was:

sudo e2fsck -f /dev/hda5

then

sudo resize2fs -p /dev/hda5 (the -p switch isn't necessary - just gives progress)

Hope that helps someone else!