To mount a disk image it's a little different than a regular loopback image.
- Setup a loop device to the imagefile
losetup /dev/loopX p2v-localhost_localdomain-200811061823-hda.img
- Read the partitions
kpartx -av /dev/loopX
- Mount each partition as required
mount /dev/mapper/loopXpX /MOUNTPOINT
Paras pradhan wrote:
hello all,
How do I mount the image created by virt-p2v?
I have a file p2v-localhost_localdomain-200811061823-hda.img which i
wanted to mount and edit some settings.
i am not able to mount it as: mount -o
loop p2v-localhost_localdomain-200811061823-hda.img /somedir
losetup -a tells it is linked to /dev/loop0.
--
/dev/loop0: [0805]:12 (/p2v-localhost_localdomain-200811061823-hda.img)
--
Thanks
Paras.
------------------------------------------------------------------------
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools