From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Kenneth Casson Leighton Subject: Re: accessing loopback filesystem+partitions on a file Date: Wed, 29 Jun 2005 11:04:37 +0100 Message-ID: <20050629100437.GH10219@lkcl.net> References: <20050628234917.GE9087@lkcl.net> <42C1EBC2.8090305@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <42C1EBC2.8090305@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony Liguori Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.