[Fedora-xen] enlarge file backed filesystem

Itamar Reis Peixoto itamar at ispbrasil.com.br
Tue Nov 7 21:41:38 UTC 2006


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




More information about the Fedora-xen mailing list