converting_a_partition_image_to_a_disk_image
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
converting_a_partition_image_to_a_disk_image [2009/09/14 18:31] – created Michael Fenn | converting_a_partition_image_to_a_disk_image [2009/12/13 19:12] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
First, create an empty disk (raw format) | First, create an empty disk (raw format) | ||
- | < | + | < |
qemu-img create -f raw 10G starworker.img | qemu-img create -f raw 10G starworker.img | ||
</ | </ | ||
Line 11: | Line 11: | ||
Next we will need to mount the root partition of the VM offline. | Next we will need to mount the root partition of the VM offline. | ||
- | < | + | < |
fdisk -lu starworker.img | fdisk -lu starworker.img | ||
</ | </ | ||
Line 17: | Line 17: | ||
Now mount the both the new and old filesystems and copy the files. | Now mount the both the new and old filesystems and copy the files. | ||
- | < | + | < |
mount -o loop starworker_partimg / | mount -o loop starworker_partimg / | ||
mount -o loop, | mount -o loop, |
converting_a_partition_image_to_a_disk_image.txt · Last modified: 2011/09/10 17:37 by 127.0.0.1