[linux-lvm] Moving Xen LV to image and mounting the image.

Chris Edwards cedwards at smartechcorp.net
Fri Nov 14 15:44:00 UTC 2008

Here are some things I have tried with no luck...

losetup /dev/loop5 ~/wdcdns1.img
sfdisk -l /dev/loop5

Disk /dev/loop5: 606 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/loop5: unrecognized partition table type
No partitions found
mount -o loop wdcdns1.img /mnt/tmp/

mount: you must specify the filesystem type
mount -t xfs -o loop,ro,noatime,nodev,nofsck ~/wdcdns1.img /mnt/tmp/

mount: unknown filesystem type 'xfs'

Thanks for your input!

Chris Edwards

-----Original Message-----
From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com] On Behalf Of Greg Freemyer
Sent: Friday, November 14, 2008 10:36 AM
To: LVM general discussion and development
Subject: Re: [linux-lvm] Moving Xen LV to image and mounting the image.

On Fri, Nov 14, 2008 at 9:53 AM, Chris Edwards
<cedwards at smartechcorp.net> wrote:
> Hello All!
> I have been trying to solve a problem.  In my current scenario I created on our SAN multiple volume groups with a single logical volume on each taking the entire groups space.  I realized that I made a mistake and did not leave room for doing snapshots.  Now I am moving each of the LV's to a new single large logical group and leaving space for snap shots.  So then I realized that I could do a "dd" to an image file (example: "dd if=/dev/VolGroup00/LogVol00 of=/root/wdcdns1.img").  I was wondering if there was a way to mount this image file?  I can't seem to mount it no matter what I do.  Am I doing this correctly?


I don't remember the details exactly, but I've done this before.

You tried mounting it loopback, right?

ie.  mount -t xfs -o loop,ro,noatime,nodev,nofsck somesystem.img /image

If that fails, it may be because you imaged it with it mounted.  If
so, you will may need to apply any outstanding journal entries to get
it to mount.

Greg Freemyer
Litigation Triage Solutions Specialist
First 99 Days Litigation White Paper -

The Norcross Group
The Intersection of Evidence & Technology

linux-lvm mailing list
linux-lvm at redhat.com
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

More information about the linux-lvm mailing list