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

LVM: How to remove a volume using pvremove

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

pdftotext not found in CentOS