Or, just use LVM
Wednesday, March 28th, 2007Steven,
Or just use LVM which removes the error-prone and nail-biting fdisk step:
Unmount filesystem.
Extend the logical volume:
$ sudo lvextend -L2G /dev/vgname/lvname
fsck the filesystem:
$ sudo fsck.ext3 -f /dev/vgname/lvname
Extend the filesystem:
$ sudo resize2fs /dev/vgname/lvname
Mount it again.
Note a couple of things:
At no point did you have to delete a partition and create it again.
There was no need to remember […]