I hope you can help me. I have an external (slim) Blu-Ray Drive, which is connected via USB. Whenever I open the drive, the activity-LED starts blinking fast, and I am unable to close the drive. When I try to close it, the tray is getting ejected immediately. I have to disconnect the USB to be able to close the tray.
This must be software-related problem, because I do not have this problem within Windows. I have Ubuntu 20.04.3 LTS. There is an interesting line inside the syslog:
Sep 14 11:36:07 linux-gurke kernel: scsi 6:0:0:0: CD-ROM PIONEER BD-RW BDR-UD04 1.11 PQ: 0 ANSI: 0 Sep 14 11:36:07 linux-gurke kernel: sr 6:0:0:0: Power-on or device reset occurred Sep 14 11:36:07 linux-gurke kernel: sr 6:0:0:0: [sr0] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray Sep 14 11:36:07 linux-gurke kernel: sr 6:0:0:0: Attached scsi CD-ROM sr0 Sep 14 11:36:07 linux-gurke kernel: sr 6:0:0:0: Attached scsi generic sg2 type 5 Sep 14 11:36:13 linux-gurke kernel: usb 6-1: USB disconnect, device number 4 Sep 14 11:36:13 linux-gurke kernel: scsi 6:0:0:0: rejecting I/O to dead device Sep 14 11:36:13 linux-gurke systemd-udevd[8161]: sr0: Process 'cdrom_id --eject-media /dev/sr0' failed with exit code 1. The last line "eject media failed" is being written to syslog as soon as I disconnect the drive. So obviously, some process is trying to issue an eject / close tray command while the tray is open, which obviously cannot work, as it is a slim drive, you have to push the tray manually to close it.
Some information:
$> lsusb -s 006:005 -t /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M $> lsusb -s 006:005 Bus 006 Device 005: ID 18a5:0428 Verbatim, Ltd Verbatim 4K BD RW Note that, the drive is manufactured by verbatim, but inside the syslog, it appears as a pioneer drive.
I already tried echo 0 > /proc/sys/dev/cdrom/autoclose and echo 0 > /proc/sys/dev/cdrom/autoeject, it did not make a difference. Can you guys help me identify the problem?
udisk, which wanted to automatically determine the filesystem, and ended up in a loop. After laboriously figuring out how to disableudisk(wasn't easy), the problem went away. This may or may not be related to your problem.