resize qemu image...
hi
i created 1gb hard disk image for qemu, how to resize it to 2gb ?
thanks
Signature · 1 line
La boîte à prog http://www.laboiteaprog.com
Le Sun, 12 Sep 2004 12:26:09 -0400, Marc Collin a écrit :
Quoted 5 lines
hi
i created 1gb hard disk image for qemu, how to resize it to 2gb ?
thanks
Hi Marc,
I was just curious to try to increase the size of one of my images too, I have just used dd and succeeded with not much problems.
My image was 500Mo with win98 on it, resized to 1Go with
dd if=/dev/zero of=win98.dsk seek=1024000 count=1024000.
Boot: ok
Dos Fdisk can add a new partition on the newly created non allocated space.
Quoted 6 lines
I was just curious to try to increase the size of one of my images too, I have just used dd and succeeded with not much problems.
My image was 500Mo with win98 on it, resized to 1Go with
dd if=/dev/zero of=win98.dsk seek=1024000 count=1024000.
Boot: ok
Dos Fdisk can add a new partition on the newly created non allocated space.
Additionally, for Linux guest operating systems, if you grow the underlying partition for the existing filesystem you may be able to extend the existing filesystem to seamlessly use the extra space.
Make sure you give a seek value that corresponds to the end of your virtual disk, otherwise you'll wipe some data... If you have the space you could also consider making a backup of the original before playing with resizing ;-)
Mark