Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   mounting image (http://www.linux-archive.org/fedora-linux-management-tools/189451-mounting-image.html)

"Paras pradhan" 11-07-2008 03:28 PM

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

Joey Boggs 11-10-2008 01:17 PM

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 05:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.