WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] mount question

To: Charlie Farinella <cfarinella@xxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] mount question
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Mon, 17 Nov 2008 18:31:32 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 17 Nov 2008 10:32:21 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200811171326.13531.cfarinella@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200811171326.13531.cfarinella@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080723)
Charlie Farinella wrote:
Scenario:

I create a domU in an LVM using virt-install (CentOS current). The installation goes as expected and all is well.

I thought that I would be able to mount this file system like so:

mount -o loop /dev/VolGroup00/vm_name /mnt/image

...yet I cannot, it tells me I have to provide the filesystem type. When I do (ext3), that fails telling me it can't find a valid block device.

Can someone point out what I have done wrong?

The virtual disk has a partition table -- use losetup and kpartx like this:

   losetup /dev/VolGroup00/vm_name
   kpartx -av /dev/loopN

where /dev/loopN is the device created by losetup.

I think that's the right syntax -- check the manual pages for details. (And just in case you think it is, kpartx is nothing to do with X or KDE.)

jch

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>