mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grzegorz Kulewski <kangur@polcom.net>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: accessing loopback filesystem+partitions on a file
Date: Wed, 29 Jun 2005 02:35:25 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.63.0506290228380.7125@alpha.polcom.net> (raw)
In-Reply-To: <20050628233335.GB9087@lkcl.net>

On Wed, 29 Jun 2005, Luke Kenneth Casson Leighton wrote:

> [if you are happy to reply at all, please reply cc'd thank you.]
>
> hi,
>
> i'm really sorry to be bothering people on this list but i genuinely
> don't what phrases to google for what i am looking for without getting
> swamped by useless pages, which you will understand why when you see
> the question, below.
>
> 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!!!!
>
> 	  [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.

The bad news: it was impossible (or at least very hard to do).

The good news: it is possible now. The anwser is:
- figure where the partitions are (possibly using some simple script),
- use device-mapper to create block devices covering partitions,
- mount them.

I do not know if this anwser will win your price but it is IMHO far better 
than hexedit... :-) And probably this is the only anwser.

(IIRC if you have one partition you can skip partition table with offset 
option to losetup. But this will only work in this special case...)


Grzegorz Kulewski


  parent reply	other threads:[~2005-06-29  0:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28 23:33 Luke Kenneth Casson Leighton
2005-06-29  0:30 ` Jason Lunz
2005-06-29  0:35 ` Grzegorz Kulewski [this message]
2005-06-29  1:37   ` Luke Kenneth Casson Leighton
2005-06-29  1:48     ` Peter Chubb
2005-06-29 10:00       ` Luke Kenneth Casson Leighton
2005-06-29  1:50   ` Luke Kenneth Casson Leighton
2005-06-29 13:27     ` Jari Ruusu
2005-06-30  0:38       ` Luke Kenneth Casson Leighton
2005-06-29 10:52 ` P
2005-06-29  7:12 Ian Pratt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0506290228380.7125@alpha.polcom.net \
    --to=kangur@polcom.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkcl@lkcl.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®