Sebastien Caps
2007-Aug-08 10:13 UTC
[Xen-users] Dumping a partition instead of the whole disk ?
Hi, I would like to know if there is a way to dump a partition instead of the whole disk so i would like to do dd if=/dev/hda1 of=hda1.img instead of dd if=/dev/hda of=hda.img And run it on xen after Note : when i dump the whole disk the Windows XP run pretty well with this modifications before dumping : http://support.microsoft.com/kb/314082/ I could create an empty disk create a partition with the same size and dd if=hda1.img of=/dev/hda1 under xen with a boot rescue dsk but i don''t if it will work... But is there an other/easier way to do that ? Have a nice day, -- Virer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Javier Guerra Giraldez
2007-Aug-17 19:38 UTC
Re: [Xen-users] Dumping a partition instead of the whole disk ?
On Wednesday 08 August 2007, Sebastien Caps wrote:> Hi, > > I would like to know if there is a way to dump a partition > instead of the whole disk > > so i would like to do > dd if=/dev/hda1 of=hda1.img > > instead of > > dd if=/dev/hda of=hda.img > > And run it on xen afteri guess it''s on the QEmu side, but it would be _very_ nice to have some way to create a disk image with only the partition table, and the partitions themselves would be on separate files. something like: ; first get some partitions from different places: dd if=/dev/hda1 of=hda1.img dd if=/dev/hdb2 of=hda2.img ; then build a partition table qemu-img-partition hda1.img hda2.img -o hda.img and then use only hda.img. it would appear as a read-only partition table, and the partitions would be stored on the other image files. hum... does anybody here know enough of the qcow format to tell if it''s possible without new code on the emulator layer? -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users