On Friday 28 December 2001 21.54, Rick Green wrote:
Does that mean that /dev/cdrecorder should be a link to /dev/sg1 rather than /dev/scd1? They do not seem to be equivalent, since they have different major numbers...
No, they're not equivalent in the major/minor device sense. But sg is an alternative interface for applications to the scsi layer.
rtg@bruiser:~ > ls -al /dev/sg* crw-r----- 1 root disk 21, 0 May 21 2001 /dev/sg0 crw-r----- 1 root disk 21, 1 May 21 2001 /dev/sg1
if your user is a member of group disk (not a good idea, since this gives access to all hard drives) then chmod g+w on the sg device used by the recorder. Otherwise chmod o+rw Note that write access is needed, because commands are issued to the device by writes.
rtg@bruiser:~ > ls -al /dev/cdrecorder lrwxrwxrwx 1 root root 9 Sep 7 11:23 /dev/cdrecorder -> /dev/scd1 rtg@bruiser:~ > ls -al /dev/scd* brw------- 1 rtg users 11, 0 May 21 2001 /dev/scd0 brw-rw---- 1 root disk 11, 1 May 21 2001 /dev/scd1
I added rtg to the 'disk' group, and changed scd0 to:
rtg@bruiser:~ > ls -al /dev/scd* brw-r----- 1 root disk 11, 0 May 21 2001 /dev/scd0
I can still mount and unmount CD's on that drive, so it doesn't seem to have affected anything adversely, and now it's more consistent with the other devices. I have no idea how/when I usurped that device.
regards Anders