Hi,

William Torrez Corea wrote:
> eject: device name is `/dev/sr0'
> ...
> eject: CD-ROM eject command succeeded
>
> I can't eject the optical drive

That was with: eject -v /dev/sr0  ?

What do you get from this program run

  xorriso -outdev /dev/sr0 -eject all


> i try mount the device:
> sudo mount -t iso9660 /dev/sr0 /mnt/cdrom
> But i get the following error message:
> mount: /mnt/cdrom: no medium found on /dev/sr0.
>       dmesg(1) may have more information after failed mount system call.

Was the tray with the medium already loaded and had any blinking
already stopped ?

(Linux has an old bug since 2008 which keeps it from waiting for the
drive to become ready after the tray was pulled in automatically by
e.g. mount(8) or open(2). Remedy is to insert the tray manually and
to wait as human supervisor until blinking stops, or to use a burn
program to load the tray. Only then perform mount.)


> [    2.952866] sr 1:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram
> cd/rw xa/form2 cdda tray

So the operating system had at least some contact to the drive and was
able to inquire some of its capabilities.


We could watch the SCSI command dialog of xorriso with the drive:

  xorriso -scsi_log on -outdev /dev/sr0 \
          -toc -list_profiles all -eject all 2>&1 | \
  tee -i /tmp/xorriso_indev_eject.log

This will be very verbose. Therefore the pipe to program "tee" which
puts a copy into file
  /tmp/xorriso_indev_eject.log

Please send the file to me in private in order not to flood the list.
I will then inspect it and report if i find something enlightening.


Have a nice day :)

Thomas

Reply via email to