Mailinglist Archive: opensuse-virtual (17 mails)

< Previous Next >
Re: [opensuse-virtual] Can I delete domU images?
  • From: Nicholas Thirkettle OSB <brnicholas@xxxxxxxxx>
  • Date: Mon, 23 Mar 2009 09:52:40 -0500
  • Message-id: <200903230952.40471.brnicholas@xxxxxxxxx>
This appears to have worked. Windows XP still reports drive C: as 8GB but when
I list the directory it shows the image file is 12GB. My thought is that it
will overwrite the zero's as needed. (I'm not sure I know what I'm talking
about but I'm learning. Thanks for your help.

Br. Nicholas

On Monday 23 March 2009 08:22:30 Rob Verduijn wrote:
No garanties, use at your own risk,
make a backup first


Maybe this helps :

This only works for vm's that use an image file that contains a partition
table.

howto enlarge a image file.

first dd if=/dev/zero of=dummyfile bs=1024k count=1024
This creates a 1gb file that is completely empty (or filled with
zeroes) with the name dummyfile

shut down the machine with the image you wish to enlarge

append the empty file to your image with the following statement

cat dummyfile >> path/to/image/you/wish/to/enlarge

repeat for each gb you wish to add (or make a bigger dummyfile)

This way there will be additional free space at the end off the image
that you can use.

Cheers
Rob


--
To unsubscribe, e-mail: opensuse-virtual+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-virtual+help@xxxxxxxxxxxx

< Previous Next >
This Thread