public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* accessing loopback filesystem+partitions on a file
@ 2005-06-28 23:33 Luke Kenneth Casson Leighton
  2005-06-29  0:30 ` Jason Lunz
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Luke Kenneth Casson Leighton @ 2005-06-28 23:33 UTC (permalink / raw)
  To: linux-kernel

[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.

background:

	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).

	the thing is that the install is failing, and we'd duh
	like to analyse what's going on (access the log files -
	no, sshd hasn't been installed yet) after terminating
	the xen session [because afaik in xen guest sessions
	there's no way i know of to access virtual consoles 2-6]

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.

l.

-- 
--
<a href="http://lkcl.net">http://lkcl.net</a>
--

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: accessing loopback filesystem+partitions on a file
@ 2005-06-29  7:12 Ian Pratt
  0 siblings, 0 replies; 11+ messages in thread
From: Ian Pratt @ 2005-06-29  7:12 UTC (permalink / raw)
  To: Luke Kenneth Casson Leighton, Grzegorz Kulewski; +Cc: linux-kernel, ian.pratt


> basically, the thing that is missing (or i can't find it) 
> from linux is a driver with the ability to present [any] 
> block devices with their major+minor numbers as a 
> [fsck-]recogniseable block device with its own major number, 
> with the implicit ability to create minor numbers within it.

The easiest thing to use is the 'lomount' utility that comes with qemu.

http://www.dad-answers.com/qemu/utilities/QEMU-HD-Mounter/lomount/lomoun
t.c

There's also kpartx which is part of device mapper, but its rather
trickier to build.

I think we should pull lomount into our tree until kpartx becomes
ubiquitous.

Ian

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-06-30  0:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-28 23:33 accessing loopback filesystem+partitions on a file Luke Kenneth Casson Leighton
2005-06-29  0:30 ` Jason Lunz
2005-06-29  0:35 ` Grzegorz Kulewski
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
  -- strict thread matches above, loose matches on Subject: below --
2005-06-29  7:12 Ian Pratt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox