mounting image
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@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
mounting image
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@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools |
| All times are GMT. The time now is 12:59 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.