Tuesday, June 21, 2011

Resizing Disk Images in Linux

To resize the disk image in Linux, do

# sudo fsck.ext4 -f DISK_IMAGE_FILE
# sudo resize2fs DISK_IMAGE_FILE

This is very helpful specially if you are having an instance in the cloud and wanted to resize an image.

No comments: