[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 after

i 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

Attachment: pgpTf7Qa3VKH_.pgp
Description: PGP signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.