Re: enlarge file backed filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is the correct way to resize


dd if=/dev/zero of=root_fs.ext3 bs=1 count=1 seek=2G conv=notrunc

e2fsck -f root_fs.ext3 -y

resize2fs -p root_fs.ext3

replace root_fs.ext3 with the filesystem name

replace 2g with new size of the filesystem image

more details here

http://user-mode-linux.sourceforge.net/resize.html

--------------------

Itamar Reis Peixoto

e-mail: itamar@xxxxxxxxxxxxxxxx
msn: itamarjp@xxxxxxxxxxxxx
skype: itamarjp
icq: 81053601
+55 34 3238 3845
+55 11 4063 5033



> Isn't there a way to enlarge the filesystem of the guest by enlarging > the > backing file/device? If so, what exactly do you do to enlarge the > backing
> file/dev?

For ext3 I use (in this case adding 1GB):

dd if=/dev/zero bs=1M count=1024 >> file.image
e2fsck -f file.image
resize2fs file.image
e2fsck -f file.image

Paul


--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux