On Monday 22 August 2005 22:58, Muli Ben-Yehuda wrote:
> In other words, "mount the whole file as a disk rather than a
> partition". I'm not familiar with a comfortable way of doing it.

Interesting scenario. If the file contains a disk image (with
partition table etc.) than what is actually needed is not a
mount, but convincing the kernel it is a full disk image.

A terrible hack (without coding) that poped up in my head (not-tested)
is to use nbd:
        nbd-server 6789 a-disk-file-image &
        modprobe nbd
        nbd-client 127.0.0.1 6789 /dev/nd0 &

If we are lucky, we have a new block device containing the disk
image -- anyone care to test?

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
ICQ UIN: 16527398

"write your own operating system.  It has worked every time for me"
           -- Linus Thorvalds

=================================================================
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]

Reply via email to