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.

Comments

Popular posts from this blog

Using Oracle 11g thru VirtualBox appliance in Mac OS X Lion

Use Shell Editor for Eclipse for editing bash, ksh, csh in Unix/Linux system

LVM: How to remove a volume using pvremove