converting_a_partition_image_to_a_disk_image
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous 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 [2011/09/10 17:37] (current) – 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_part.img |
| mount -o loop, | mount -o loop, | ||
| cp -a / | cp -a / | ||
converting_a_partition_image_to_a_disk_image.1252967467.txt.gz · Last modified: 2011/09/10 17:38 (external edit)