Tutorial - Add USB DVD drive to allow Handbrake (or others) in Docker container to access it

Issue: Plugging in an external USB DVD drive can be seen in Virtual Machine manager but is not mounted so cannot be passed to Docker containers.

SSH to NAS and run command:

lsscsi

This shows the drive, but it will not be mounted. Example shown below:

[0:0:0:0] disk ATA TOSHIBA HDWT840 1L /dev/sda
[1:0:0:0] disk ATA TOSHIBA HDWT720 0R /dev/sdb
[2:0:0:0] cd/dvd HL-DT-ST DVDRAM GH24NSD5 LV00 -
[N:0:0:1] disk Micron MTFDHBA512TDV__1 /dev/nvme0n1

You can see that the cd/dvd drive is not mounted ( - ).

Findings: This is because the module sr_mod (SCSI CD ROM Support) is not loaded. Running “sudo modprobe sr_mod” mounts the drive but this does not persist through a re-boot.

Resolution: UGOS has blacklisted the module. Edit

/etc/modprobe.d/blacklist.conf

and remove the line “blacklist sr_mod”. Re-boot, SSH into the NAS and run lsscsi again and you should now see it mounted at /dev/sr0. You can then pass this to your containers as a device.

[0:0:0:0] disk ATA TOSHIBA HDWT840 1L /dev/sda
[1:0:0:0] disk ATA TOSHIBA HDWT720 0R /dev/sdb
[2:0:0:0] cd/dvd HL-DT-ST DVDRAM GH24NSD5 LV00 /dev/sr0
[N:0:0:1] disk Micron MTFDHBA512TDV__1 /dev/nvme0n1

Hope this works for others needing this!

3 Likes

Thank you for posting this , this will be really helpful.

Thanks, this helped me a lot setting up Automatc Rippping Machine on my Ugreen NAS DXP4800 Plus

1 Like