Before doing anything: backup your sensible data! To extend a partition and it’s filesystem, you have to: Extend the partition Extend the filesystem To shrink a partition and it’s filesystem, you have to: Shrink the filesystem Shrink the partition For an ext3 partition, simply use parted: parted /dev/sdx print resize N Parted doesn’t support ext4 (yet?). For an ext4 partition or if parted refuses