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-devel

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

To: Anthony Liguori <aliguori@xxxxxxxxxx>
Subject: Re: [Xen-devel] accessing loopback filesystem+partitions on a file
From: Luke Kenneth Casson Leighton <lkcl@xxxxxxxx>
Date: Wed, 29 Jun 2005 11:04:37 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 29 Jun 2005 09:54:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <42C1EBC2.8090305@xxxxxxxxxx>
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> <42C1EBC2.8090305@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.5.1+cvs20040105i
On Tue, Jun 28, 2005 at 07:30:58PM -0500, Anthony Liguori wrote:
> Luke Kenneth Casson Leighton wrote:
> 
> >[if you are happy to reply at all, please reply cc'd thank you.]
> >
> >hi,
> > 
> >
> Hi Luke,
> 
> >the question is, therefore:
> >
> >     * how the hell do you loopback mount (or lvm mount
> >       or _anything_! something!)  partitions that have
> >       been created in a loopback'd file!!!!
> > 
> >
> See http://lists.samba.org/archive/linux/2004-December/012627.html
> 
> In summary, if you have a single partition then you can use the 
> following command:
> 
> mount -o loop,offset=32256 loop.img /mnt
> 
> There's mention of a replacement loopback driver that supports 
> partitions but a quick google'ing didn't turn anything up.
 
 yeh, i know - pain, innit - hence my question!

 you'd have to know in advance that someone worked on this
 already such that they picked a suitable keyword e.g. "extended
 loopback" or "enhanced loopback".

 the latter gives this:

         http://unix.freshmeat.net/projects/enloop/

 fortunately the knowledge is stored in a number of people's heads,
 namely ian and mark's, and they've kindly responded and pointed me in
 a suitable direction.

 lomount.c, a 259-line-program which cannot be found anywhere
 but in source code form, actually analyses the first block
 and performs above-suggested suitable mount commands on your behalf.

 l.


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

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