I have an external USB DVD slot-in drive. It does not have any eject buttons. I inserted a DVD which can't be read (too many scratches I guess). Now I do not know how I can eject the disc - as there is no media yet recognized, I do not get a drive mapping, so
eject does not do much.
[80954.473663] usb 2-188.8.131.52: new high-speed USB device number 8 using ehci_hcd [80954.571274] scsi1183 : usb-storage 2-184.108.40.206:1.0 [80955.570242] scsi 1183:0:0:0: CD-ROM MATSHITA DVD-R UJ-898 HC10 PQ: 0 ANSI: 0 [80955.583425] sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray [80955.583774] sr 1183:0:0:0: Attached scsi CD-ROM sr0 [80955.584018] sr 1183:0:0:0: Attached scsi generic sg3 type 5
sudo cdrecord -eject sg3
wodim: No write mode specified. wodim: Assuming -tao mode. wodim: Future versions of wodim may have different drive dependent defaults. Device was not specified. Trying to find an appropriate drive... wodim: No such file or directory. Cannot open SCSI driver! For possible targets try 'wodim --devices' or 'wodim -scanbus'. For possible transport specifiers try 'wodim dev=help'. For IDE/ATAPI devices configuration, see the file README.ATAPI.setup from the wodim documentation.
and --devices and -scanbus do not show the drive.