# Makemkv Can't Find my USB Blu-Ray Drive

**URL:** https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714
**Category:** Help
**Created:** [December 4, 2022, 9:42pm UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714 "2022-12-04T21:42:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tompurl](https://discourse.nixos.org/user_avatar/discourse.nixos.org/tompurl/32/3071_2.png) [@tompurl](https://discourse.nixos.org/u/tompurl)
#### Post date: [December 4, 2022, 9:42pm UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714/1 "2022-12-04T21:42:57Z")

</div>

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:

```auto
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:

```auto
❯ 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 🙂

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](https://www.makemkv.com/developers/usage.txt) to show all of the available drives and my output:

```auto
❯ 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

```

---

<div class="post-metadata">

### Author: ![CaptiveCreeper](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/c/c77e96/32.png) [@CaptiveCreeper](https://discourse.nixos.org/u/CaptiveCreeper)
#### Post date: [December 19, 2022, 7:44am UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714/2 "2022-12-19T07:44:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tompurl](https://discourse.nixos.org/user_avatar/discourse.nixos.org/tompurl/32/3071_2.png) [@tompurl](https://discourse.nixos.org/u/tompurl)
#### Post date: [December 29, 2022, 4:20pm UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714/3 "2022-12-29T16:20:04Z")

</div>

Unfortunately no, I have not.

---

<div class="post-metadata">

### Author: ![CaptiveCreeper](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/c/c77e96/32.png) [@CaptiveCreeper](https://discourse.nixos.org/u/CaptiveCreeper)
#### Post date: [January 7, 2023, 1:09am UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714/4 "2023-01-07T01:09:52Z")

</div>

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](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”];

---

<div class="post-metadata">

### Author: ![kevin](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kevin/32/26430_2.png) [@kevin](https://discourse.nixos.org/u/kevin)
#### Post date: [February 8, 2023, 2:42am UTC](https://discourse.nixos.org/t/makemkv-cant-find-my-usb-blu-ray-drive/23714/5 "2023-02-08T02:42:27Z")

</div>

This worked for me, thank you so much!
