On Sun, 13 Feb 2005, Omer Zak wrote:
On Sun, 2005-02-13 at 22:11 +0200, Matan Ziv-Av wrote:On Sun, 13 Feb 2005, Omer Zak wrote:
Therefore, it is desirable to have a way to instruct the OS to mount the hard disk in RO mode, and access its contents as if the partition table is such-and-such (rather than the partition table actually written into the hard disk).
dm can do that. If that is too complicated, there is a patch for partitionable loop device.
Can you point me toward RTFM-able stuff on dm?
I think man dmsetup should be enough. There is a device-mapper directory in the kernel documentation but it is more kernel-deverloper oriented. I could not find much more documentation. For a shell script that does partitioning in userspace using dm, search for dmsetup-partitions that was posted to lkml in July 2003.
-- Matan Ziv-Av. [EMAIL PROTECTED]
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]