I ran out of space on a VM I use at home. It runs Ubuntu server and the existing space was 20G. I decided to increase it to 100G to ensure I have plenty of breathing room.
So I followed the instructions here : http://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/
And everything went well until the final step. Attempting to grow the
/dev/sda1/ partition size to 99G fails on the 3rd step: 'Check filesytem on
/dev/sda1 for errors and (if possible) fix them.'
It looks like this step trys to run :
e2fsck -f -y -v /dev/sda1
This throws an an error saying:
The superblock could not be read or does not describe a correct ext2 filesytem.
The partition in question is an ext3 partition but I'm not sure whether that matters.
The primary partition is still ok and Ubuntu still boots, so I think it's ok. Any ideas on what I need to do to make it bigger?
fdisk -l when booted from gparted live disk.
Disk /dev/sda: 107.3 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders Units = cylinders of 16064 * 512 = 9225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 2481 19921920 83 Linux /dev/sda2 12924 13054 1052275+ 5 Extended /dev/sda5 12925 13054 1044225 82 Linux swap / Solaris
EDIT 2 :
fdisk -l when booted in ubuntu server
Interestingly, the output is different when I run after booting the VM normally.
Disk /dev/sda: 107.4 GB, 107374182400 bytes 255 heads, 63 sectors/track, 13054 cylinders, total 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00044fd6 Device Boot Start End Blocks Id System /dev/sda1 * 2048 39845887 19921920 83 Linux /dev/sda2 207607995 209712509 1052257+ 5 Extended /dev/sda5 207624060 209712509 1044225 82 Linux swap / Solaris
EDIT 3: Output for
mount | grep " / "
/dev/sda1 on / type ext4 (rw,errors=remount-ro)