Failed to get full access to drive?

The place to discuss linux version of MakeMKV
Post Reply
Zoran
Posts: 1
Joined: Thu Jan 30, 2020 4:34 pm

Failed to get full access to drive?

Post by Zoran » Thu Jan 30, 2020 4:39 pm

I run the version 1.14.7 on latest Ubuntu (believe 18).
I keep getting such messages:

Failed to get full access to drive "...". Make sure that you either have write access to device "/dev/sr1", are member of "cdrom" group or have CAP_SYS_RAWIO enabled.

I tried pretty much everything I know:
a. put myself in the cdrom group
b. change owner of the device to myself
c. set 0777 mode on the device

No avail. What am I doing wrong?
What do I need to do?

Thanks,
Zoran

FeRDNYC
Posts: 4
Joined: Fri Jan 31, 2020 12:34 pm

Re: Failed to get full access to drive?

Post by FeRDNYC » Fri Jan 31, 2020 1:09 pm

The advice about CAP_SYS_RAWIO reveals that message as pretty outdated, I don't think anything uses capabilities for things like local device IO anymore. More likely there's some other protection mechanism that's blocking your access to the device.

One thing you could try is temporarily setting SELinux to permissive:

Code: Select all

$ sudo setenforce 0
$ getenforce
Permissive
Then try again and see if you have any more success. If you do, then you at least know that SELinux is what's interfering, and is where the problem needs to be solved.

You can restore normal protection manually:

Code: Select all

$ sudo setenforce 1
or the system will automatically reset to enforcing on the next reboot.

Post Reply