On Mon, 22 Aug 2005, Oron Peled wrote: > 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 &
won't work. excerpts from nbd.sourceforge.net: "Please note that read-write nbd with client and server on the same machine is bad idea: expect deadlock within seconds (this may vary between kernel versions, maybe on one sunny day it will be even safe?)" and: "Read-write nbd with client and server on some machine has a rather fundamental problem: when system is short of memory, it tries to write back dirty page. So nbd client asks nbd server to write back data, but as nbd-server is userland process, it may require memory to fullfill the request. That way lies the deadlock." -- guy "For world domination - press 1, or dial 0, and please hold, for the creator." -- nob o. dy ================================================================= 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]
