Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

Re: [Xen-devel] accessing loopback filesystem+partitions on a file

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] accessing loopback filesystem+partitions on a file
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 29 Jun 2005 02:33:05 +0100
Cc: Luke Kenneth Casson Leighton <lkcl@xxxxxxxx>
Delivery-date: Wed, 29 Jun 2005 01:40:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050628234917.GE9087@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050628234917.GE9087@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8
>       i'm sort-of helping test a xen install project where a
>       block device is presented as the DRIVE - not, i repeat
>       not, the partitions on the drive which is the quotes
>       normal quotes way of doing xen installes
>
>       (yes there are good reasons for doing this).

That's fine.  It's something that (is supposed to) works.

>       * how the hell do you loopback mount (or lvm mount
>         or _anything_! something!)  partitions that have
>         been created in a loopback'd file!!!!


You could work out where the partitions are, then use hexedit... woops!  just 
kidding ;-)

This has come up before but it's easier to find the list entries when you 
remember what you're looking for ;-)

There's a patch by NASA (of all people!) that enables the Linux loopback 
driver to support partitions:
ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/readme.txt

There's also the "lomount" utility from QEmu:
http://www.dad-answers.com/qemu/utilities/QEMU-HD-Mounter/lomount/
Which works out where partitions are and mounts them (no kernel mods needed).

Apparently kpartx (from the multipath tools - 
http://christophe.varoqui.free.fr/wiki/wakka.php?wiki=Home) can use the 
device mapper to create block devices for each partition.

I think I'd go with lomount, as it looks easiest.

Cheers,
Mark

>         [aside from booting up a second pre-installed xen
>         guest domain and making the filesystem-in-a-file
>         available as /dev/hdb of course.]
>
> answers of the form "work out where the partitions are, then use
> hexedit to remove the first few blocks" will win no prizes here.
>
> l.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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

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