kumar
kumar

Reputation: 2580

extend the size of already existing ext2 image

Is there a possibility to extend the size of already existing ext2 image?

This image is a ramdisk based root file system.

I already have an image. but I want to extend the size of this image.

Is it possible to extend the size of this image.

Upvotes: 1

Views: 2208

Answers (1)

cam
cam

Reputation: 14222

Definitely back up before you do this, but it worked for me on a test fs (assuming your disk image is called foo.img):

$ dd if=/dev/zero of=foo.img count=0 bs=1M seek=2000   # assuming target size is 2000M
$ e2fsck -f foo.img
$ resize2fs foo.img

Upvotes: 2

Related Questions