Optical Drive not being found
Re: Optical Drive not being found
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.
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
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
you answered your own questionalexsd 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
in the extra parameters section of the makemkv docker container put this:
Code: Select all
--device /dev/sr0 --device /dev/sg3
-
- Posts: 4075
- Joined: Wed Nov 26, 2008 2:26 am
- Contact:
Re: Optical Drive not being found
Download 1.12.0nickjpg wrote:Still waiting for "mike admin" to provide detailed instructions on his "simple fix".
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
yes sir, i did not realize i quoted you as such.mike admin wrote:Download 1.12.0nickjpg wrote:Still waiting for "mike admin" to provide detailed instructions on his "simple fix".
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
this got me working. thank you.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.
Re: Optical Drive not being found
correct. that's what got me going. thank you.spl147 wrote:you answered your own questionalexsd 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
in the extra parameters section of the makemkv docker container put this:the directions are in the docker container itselfCode: Select all
--device /dev/sr0 --device /dev/sg3
Re: Optical Drive not being found
Is there a solution for a non "docker container makemkv" ?
-
- Posts: 14
- Joined: Mon Jun 19, 2017 11:47 pm
Re: Optical Drive not being found
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
Just confirmed that 1.12.0 installed on Arch linux 3.16.0-4-amd64 works. Thank you!
Re: Optical Drive not being found
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
-
- Posts: 1
- Joined: Mon Feb 19, 2018 1:26 pm
Re: Optical Drive not being found
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
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
-
- Posts: 2
- Joined: Mon Feb 26, 2018 9:20 pm
Re: Optical Drive not being found
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?
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?
-
- Posts: 2
- Joined: Mon Feb 26, 2018 9:20 pm
Re: Optical Drive not being found
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"
-
- Posts: 1
- Joined: Wed Mar 14, 2018 10:37 pm
Re: Optical Drive not being found
I registered for the site just to sayelParaguayo 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"
"Thank You!!"
Worked like a champ.