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

Re: [Fedora-xen] enlarge file backed filesystem



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 ispbrasil com br
msn: itamarjp starmedia com
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



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