Makemkv Can't Find my USB Blu-Ray Drive

I recently installed NixOS on a server that used to run Debian. On the previous system I would do the following to rip a Blu-Ray disc:

  1. Plug in the drive, which would create /dev/dvd
  2. Execute makemkvcon to rip the disc

Now when I execute these tasks I get the following error:

MSG:5042,0,0,"The program can't find any usable optical drives.","The program can't find any usable optical drives."

Here’s what I’ve tried to this.

First, I made sure that the disc drive was being recognized after plugging it in like so:

❯ lsusb
Bus 004 Device 008: ID 08e4:017a Pioneer Corp. Pioneer Blu-ray Drive
...
❯ ls -l /dev/disk/by-id/usb-PIONEER_BD-RW_BDR-XD05_1957031510900289-0:0
lrwxrwxrwx root root 9 B Sun Dec  4 15:17:47 2022 /dev/disk/by-id/usb-PIONEER_BD-RW_BDR-XD05_1957031510900289-0:0 ⇒ ../../sr0
❯ ls -l /dev/sr0
brw-rw----+ root cdrom 0 B Sun Dec  4 15:17:47 2022 ﰩ /dev/sr0

I then added myself to the cdrom group and logged out and back in. Heck, I even rebooted the machine to no avail :slight_smile:

I also tried running the command as a root user, which did not help.

Finally, I am able to mount the disc in Gnome and view the contents using the Files app.


Can anyone think of a step I may be missing? Is there another tool that I can use

Btw, here’s the exact command that I’m running from https://www.makemkv.com/developers/usage.txt to show all of the available drives and my output:

❯ makemkvcon -r --cache=1 info disc:9999
MSG:1005,0,1,"MakeMKV v1.17.1 linux(x64-release) started","%1 started","MakeMKV v1.17.1 linux(x64-release)"
MSG:5075,131072,2,"The new version 1.17.2 is available for download at http://www.makemkv.com/download/","The new version %1 is available for download at %2","1.17.2","http://www.makemkv.com/download/"
MSG:5042,0,0,"The program can't find any usable optical drives.","The program can't find any usable optical drives."
DRV:0,256,999,0,"","",""
DRV:1,256,999,0,"","",""
DRV:2,256,999,0,"","",""
DRV:3,256,999,0,"","",""
DRV:4,256,999,0,"","",""
DRV:5,256,999,0,"","",""
DRV:6,256,999,0,"","",""
DRV:7,256,999,0,"","",""
DRV:8,256,999,0,"","",""
DRV:9,256,999,0,"","",""
DRV:10,256,999,0,"","",""
DRV:11,256,999,0,"","",""
DRV:12,256,999,0,"","",""
DRV:13,256,999,0,"","",""
DRV:14,256,999,0,"","",""
DRV:15,256,999,0,"","",""
MSG:5010,0,0,"Failed to open disc","Failed to open disc"
TCOUNT:0

I am also having this same issue. Have you made any progress on getting it working?

Unfortunately no, I have not.

I found a solution and it seems to work now. All I had to do was run the below and the info disk:9999 command shows the disk now.

sudo modprobe sg

Here is where I found the fix for reference.
https://forum.makemkv.com/forum/viewtopic.php?t=16939&start=90#p81635

EDIT:
After a restart that is reset. If you want that to work from nixos config (and not need to do it after each restart) add this to your configuration.nix

boot.kernelModules = [ “sg” ];

5 Likes

This worked for me, thank you so much!