Page 6 of 8

Re: Optical Drive not being found

Posted: Sat Feb 03, 2018 12:09 am
by johna
For those using LXC (containers) I was able to get 1.10.10 working by:

1. Adding additional devices.allow to <container>/conf for sg devices
lxc.cgroup.devices.allow = c 21:* rwm

2. Include creation of new node in my node creation script (called via lxc.hook.autodev):
mknod -m 666 ${LXC_ROOTFS_MOUNT}/dev/sg3 c 21 3

This is for a privileged container. Entries may be different for your environment.

Re: Optical Drive not being found

Posted: Sat Feb 03, 2018 5:55 pm
by aurik
Actually the easiest way to determine a) whether you have the "sg" driver loaded AND which sg device corresponds to your optical drive is to use the lsscsi command with the "-g" option:

Code: Select all

root@media-srv:/export/src/makemkv# lsscsi -g
[0:0:0:0]    disk    ATA      ST1000LM024 HN-M 2AR1  /dev/sda   /dev/sg0 
[1:0:0:0]    cd/dvd  HL-DT-ST BDDVDRW UH12NS29 1.00  /dev/sr0   /dev/sg1 
[2:0:0:0]    disk    ATA      ST1000LM024 HN-M 2AR1  /dev/sdb   /dev/sg2 
[3:0:0:0]    disk    ATA      ST1000LM024 HN-M 2AR1  /dev/sdc   /dev/sg3 
[4:0:0:0]    disk    ATA      ST1000LM024 HN-M 2AR1  /dev/sdd   /dev/sg4 
[5:0:0:0]    disk    ATA      ST1000LM024 HN-M 2BA3  /dev/sde   /dev/sg5 
[6:0:0:0]    disk    ATA      ST1000LM024 HN-M 0001  /dev/sdf   /dev/sg6 
[6:0:1:0]    cd/dvd  HL-DT-ST BDDVDRW UH12NS29 1.00  /dev/sr1   /dev/sg7 
[6:0:2:0]    disk    ATA      OCZ-ONYX         1.7   /dev/sdg   /dev/sg8 
[6:0:3:0]    disk    ATA      ST1000LM024 HN-M 0002  /dev/sdh   /dev/sg9 
[6:0:4:0]    disk    ATA      ST1000LM024 HN-M 0001  /dev/sdi   /dev/sg10
[6:0:5:0]    disk    ATA      ST1000LM024 HN-M 0001  /dev/sdj   /dev/sg11

Re: Optical Drive not being found

Posted: Sun Feb 04, 2018 1:17 am
by spl147
alexsd wrote:i'm at a loss here too. i've tried everything posted in this thread.

i'm on unraid 6.3.5.

can you take a look, mike?

Code: Select all

root@Tower:~# ls -la /dev/sg*
crw-rw---- 1 root cdrom 21, 3 Jan 31 06:56 /dev/sg3

Code: Select all

root@Tower:~# ls -la /dev/sr*
brw-rw---- 1 root cdrom 11, 0 Jan 31 06:56 /dev/sr0
you answered your own question

in the extra parameters section of the makemkv docker container put this:

Code: Select all

--device /dev/sr0 --device /dev/sg3
the directions are in the docker container itself

Re: Optical Drive not being found

Posted: Sun Feb 04, 2018 3:37 pm
by mike admin
nickjpg wrote:Still waiting for "mike admin" to provide detailed instructions on his "simple fix".
Download 1.12.0

p.s. You do realize that "simple fix" were never my words?
spl147 wrote:it's a very simple fix,

Re: Optical Drive not being found

Posted: Sun Feb 04, 2018 3:39 pm
by spl147
mike admin wrote:
nickjpg wrote:Still waiting for "mike admin" to provide detailed instructions on his "simple fix".
Download 1.12.0

p.s. You do realize that "simple fix" were never my words?
spl147 wrote:it's a very simple fix,
yes sir, i did not realize i quoted you as such.

Re: Optical Drive not being found

Posted: Mon Feb 05, 2018 5:04 pm
by alexsd
Djoss wrote:Are you running MakeMKV inside a docker container? If yes, then I recommend that you post your issue on the support thread (unRAID forum) of the container . An incorrect container configuration can prevent the detection.
this got me working. thank you.

Re: Optical Drive not being found

Posted: Mon Feb 05, 2018 5:06 pm
by alexsd
spl147 wrote:
alexsd wrote:i'm at a loss here too. i've tried everything posted in this thread.

i'm on unraid 6.3.5.

can you take a look, mike?

Code: Select all

root@Tower:~# ls -la /dev/sg*
crw-rw---- 1 root cdrom 21, 3 Jan 31 06:56 /dev/sg3

Code: Select all

root@Tower:~# ls -la /dev/sr*
brw-rw---- 1 root cdrom 11, 0 Jan 31 06:56 /dev/sr0
you answered your own question

in the extra parameters section of the makemkv docker container put this:

Code: Select all

--device /dev/sr0 --device /dev/sg3
the directions are in the docker container itself
correct. that's what got me going. thank you.

Re: Optical Drive not being found

Posted: Tue Feb 06, 2018 3:53 am
by nickjpg
Is there a solution for a non "docker container makemkv" ?

Re: Optical Drive not being found

Posted: Tue Feb 06, 2018 8:57 pm
by JohnJasonJordan
I just installed 1.12.0 on Xubuntu 14.04.5 and the problem with not seeing the optical drives has been resolved. Thanks to all!

Re: Optical Drive not being found

Posted: Wed Feb 07, 2018 5:03 am
by nickjpg
Just confirmed that 1.12.0 installed on Arch linux 3.16.0-4-amd64 works. Thank you!

Re: Optical Drive not being found

Posted: Sun Feb 18, 2018 7:52 am
by beandog
Just a heads up, if you're using Gentoo, you'll need SCSI generic support in your kernel built-in or as a module (sg). Look for CONFIG_CHR_DEV_SG

Code: Select all

Device drivers -->
  SCSI device support -->
    <*> SCSI generic support

Re: Optical Drive not being found

Posted: Sat Feb 24, 2018 12:40 pm
by jw.slackware
Hi, guys.
Thanks for the information on this problem.
I'm using makemkv-1.12.0 on slackware64-current (14.2).
On my case, I was able to solve this problem by modifying /etc/rc.d/rc.modules.local.

#/sbin/modprobe sg
--> /sbin/modprobe sg

Re: Optical Drive not being found

Posted: Mon Feb 26, 2018 9:24 pm
by elParaguayo
Using "modprobe sg" works for me. Thank you.

I know we can load the sg module at boot by including it in /etc/modules-load.d however the arch wiki seems to suggest that udev rules should be used for handling module loading. Can someone provide an example of this?

Re: Optical Drive not being found

Posted: Wed Feb 28, 2018 7:32 pm
by elParaguayo
I'll answer my own question. This is the udev rule that works for me:

Code: Select all

SUBSYSTEMS=="scsi", DRIVERS=="sr", ATTRS{type}=="4|5", GROUP="optical", RUN="/sbin/modprobe -bv sg"

Re: Optical Drive not being found

Posted: Wed Mar 14, 2018 10:39 pm
by archlinuxgogo
elParaguayo wrote:I'll answer my own question. This is the udev rule that works for me:

Code: Select all

SUBSYSTEMS=="scsi", DRIVERS=="sr", ATTRS{type}=="4|5", GROUP="optical", RUN="/sbin/modprobe -bv sg"
I registered for the site just to say
"Thank You!!"

Worked like a champ.