Re: accessing loopback filesystem+partitions on a file

From: Peter Chubb
Date: Tue Jun 28 2005 - 21:01:46 EST


>>>>> "Luke" == Luke Kenneth Casson Leighton <lkcl@xxxxxxxx> writes:


Luke> xen guest OSes manage it fine - the xen layer provides a means
Luke> to present any block device as a "disk".

You can do this witht he loop device, but you need to get the
partition info out first.

Use parted or fdisk to get the partition info.
Then use losetup with the appropriate offset.

Luke> that loopback filesystems cannot be presented as block devices
Luke> by the linux kernel (with no involvement of xen) seems to be a
Luke> curious omission.

But they can! But a loopback device can't be partitioned. So do it
one partition at a time.

You'll probably only have a few real filesystems on the disk image
anyway.



--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
The technical we do immediately, the political takes *forever*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/