On 12/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote:
> On Wed, Mar 12, 2008 at 05:00:31PM +0100, Flavio wrote:
>  > I would like to ask you a simple question about cdrom and usb pen
>  > drives utilisation.
>  >
>  > I would like to know if I must insert a cd-rom in the cd-rom reader
>  > before uml starts, in case I have to use the cd-rom under UML.
>  >
>  > If I put the cd in before uml starts, there's no problem to mount and
>  > using it; but If I decide to insert the CD-ROM once UML is started (ot
>  > to not insert it at all)I get the following error in dmesg:
>  >
>  > Couldn't open "/dev/cdrom", errno = 123.
>
>
> UML shouldn't try to open the host device until a UML process tries
>  opening the corresponding UML device.  And it closes the host device
>  when the last open of the UML device goes away.  I'd suspect something
>  in your distro is scanning UML devices and that's causing UML to try
>  to open the host device.

Thank you Jeff,

I'm not sure I perfectly understand.
So, here's what I was trying to do: binding the /dev/cdrom with the
/dev/ubd2 virtual device, passing the ubd2=/dev/cdrom in the command
line kernel option (no cd-rom inserted up to here).
Once UML has finished to boot I do 'eject /dev/ubd2' to cause the
cd-rom reader opening.
I get the following message:
~# eject /dev/ubd2
eject: unable to open `/dev/ubd2'

If I put the cd into the reader before starting UML it's all right. I
can use the cd-rom as well as the usb pen drive etc. But I can't still
eject, actually:
  eject /dev/ubd2
not an sg device, or old sg driver
eject: unable to eject, last error: Invalid argument

Anyway, it's only for testing purposes at the moment.

Maybe I'm trying to do something impossible, but I just want to be sure of that.
If that is impossible I can understand security reasons.

Thanks a lot,

Flavio

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to