Devraj Mukherjee
2009-Sep-27 02:56 UTC
[CentOS] mounting images created using dd that contain two partitions
Hi all, I am trying to mount images that I previously created with dd and the images have two partitions (swap and LVM). I use these images to house data for my Xen Guests. For some reason (possibly Kernel conflicts for paravirtualized domains) I am unable to boot my Guest images. Failing which I would like to mount the disk images and atleast get my data out of them. dd -o loop server.img /media/diskimage asks me to provide a file system. How can I mount these images? I have been Googling around for this and have failed to find and answer, can someone please point me in the right direction. Appreciate your time. -- "The secret impresses no-one, the trick you use it for is everything" - Alfred Borden (The Prestiege)
Alan Sparks
2009-Sep-27 03:06 UTC
[CentOS] mounting images created using dd that contain two partitions
Devraj Mukherjee wrote:> Hi all, > > I am trying to mount images that I previously created with dd and the > images have two partitions (swap and LVM). I use these images to house > data for my Xen Guests. >You'll probably need at least kpartx to mount the partitions out of the image. Maybe even the LVM tools, if you've created some of the filesystems inside the image as LVs. Perhaps the page at the following may give you some inspiration: http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-accessing-data.html -Alan
aurfalien at gmail.com
2009-Sep-27 03:09 UTC
[CentOS] mounting images created using dd that contain two partitions
Is your local host using LVMs and if so, is your volume group something like VolGroup00? Is your image file also of a VolGroup00? - aurf On Sep 26, 2009, at 7:56 PM, Devraj Mukherjee wrote:> Hi all, > > I am trying to mount images that I previously created with dd and the > images have two partitions (swap and LVM). I use these images to house > data for my Xen Guests. > > For some reason (possibly Kernel conflicts for paravirtualized > domains) I am unable to boot my Guest images. Failing which I would > like to mount the disk images and atleast get my data out of them. > > dd -o loop server.img /media/diskimage > > asks me to provide a file system. How can I mount these images? > > I have been Googling around for this and have failed to find and > answer, can someone please point me in the right direction. > > Appreciate your time. > > -- > "The secret impresses no-one, the trick you use it for is everything" > - Alfred Borden (The Prestiege) > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Seemingly Similar Threads
- Domain0 with Kernel 2.6.18-92.1.22.el5xen fails to boot Guests with Kernel 2.6.18-164.el5xen
- Activity logger for Xen Guest Domains using libvirt
- IP aliases of CentOS Guests not accessible running 2.6.18-164.el5xen
- IP aliases of CentOS Guests not accessible running 2.6.18-164.el5xen
- Fail2Ban