Problem with DVD
freebsd at edvax.de
Sat Aug 25 13:30:31 UTC 2018
On Sat, 25 Aug 2018 11:16:57 +0200, Per Gunnarsson via freebsd-questions wrote:
> I have problems contacting my DVD reader.
> [per at konjak ~/Music/Big Fish]$ sudo cdrecord -scanbus
> Sorry, try again.
> Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.0) Copyright
> (C) 1995-2015 Joerg Schilling
> cdrecord: No error: 0. Kernel error! got periph match type
> -1515870811!!. Cannot open or use SCSI driver.
> cdrecord: For possible targets try 'cdrecord -scanbus'.
> cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
> crw------- 1 root operator 0x56 Aug 25 10:02 /dev/pass0
> crw-r----- 1 root operator 0x3e Aug 25 10:02 /dev/xpt0
> crw-rw---- 1 root operator 0x75 Aug 25 10:02 /dev/cd0
> (I am member of the group operator)
You should add the correct settings to /etc/devfs.conf:
own cd0 root:operator
perm cd0 0664
own xpt0 root:operator
perm xpt0 0660
own pass0 root:operator
perm pass0 0660
You're already in the "operator" group, so rw access is
possible. You can see from your ls -l example that you're
currently missing the required permissions to access the
xpt and the pass device.
Check the "camcontrol devlist" to see which pass device
belongs to your optical media drive. You'll also see the
bus:target:lun number (e. g., 0:0:0) which programs like
cdrecord like to use (in the form 0,0,0). For example,
you could use this command to burn an audio CD from
premastered CDR files:
% cdrecord dev=0,0,0 speed=8 driveropts=burnfree -eject -v -dao -audio *.cdr
Or a data CD fron the content of the directory <sourcedir>
directly without and intermediate ISO image:
% mkisofs -r -J <sourcedir>/ | cdrecord dev=0,0,0 speed=8 -v -eject -tao -data -
It's just a matter of setting up the permissions correctly.
In this case, you won't need any "sudo" prefixing. :-)
For more information, chech The FreeBSD Handbook:
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions