You are not logged in.

#1 2004-02-02 14:55:33

klo
Member
From: Slovenia
Registered: 2004-01-31
Posts: 6

cdparanoia & ide-scsi

If I enable ide-scsi in lilo.conf cdparanoia would rip cds only if run as root. Without ide-scsi it works ok as normal user, but I need ide-scsi for burning and I'd rather not set uid to cdparanoia.

[klo@myhost klo]$ cdparanoia -vd /dev/cdroms/cdrom1 1
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty@xiph.org> and Xiphophorus

Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/

Checking /dev/cdroms/cdrom1 for cdrom...
        Testing /dev/cdroms/cdrom1 for cooked ioctl() interface
                /dev/scsi/host0/bus0/target1/lun0/cd is not a cooked ioctl CDROM.
        Testing /dev/cdroms/cdrom1 for SCSI interface
                No generic SCSI device found to match CDROM device /dev/scsi/host0/bus0/target1/lun0/cd

Permissions:

lr-xr-xr-x    1 root     root           34 1970-01-01 01:00 /dev/cdroms/cdrom1 -> ../scsi/host0/bus0/target1/lun0/cd
brw-rw-rw-    1 root     root      11,   1 1970-01-01 01:00 /dev/scsi/host0/bus0/target1/lun0/cd

And on bootup it says:

mount: fs type devpts not supported by the kernel

Could this cause the problem (or cause anything else not working)? I'm using kernel 2.4.24, I got the impression devpts is needed only for 2.6.*, though I don't know anything about devpts.

Offline

#2 2004-02-02 22:15:48

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: cdparanoia & ide-scsi

Add these in you devfsd.conf :

# ide-scsi perms
REGISTER        ^scsi/host.*/bus.*/target.*/lun.*/generic    PERMISSIONS root.cdrw 660

# autoload the sg module if generic scsi driver compiled as module.
LOOKUP          ^sg$      MODLOAD ACTION sg

also add a 'cdrw' group & add the users you want to have access to that group. If you want all your users to access it, then replace 'cdrw' with 'users'.
Then simply 'killall -HUP devfsd' & enjoy smile.

Offline

#3 2004-02-02 22:38:16

klo
Member
From: Slovenia
Registered: 2004-01-31
Posts: 6

Re: cdparanoia & ide-scsi

Many thanks big_smile

I got totally used to that /dev/hda and /dev/sr0 names and can't stop hating this devfs wink

Offline

#4 2004-02-02 22:43:46

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: cdparanoia & ide-scsi

klo wrote:

I got totally used to that /dev/hda and /dev/sr0 names and can't stop hating this devfs wink

Add this also :

# /dev/dvdrw symlink
REGISTER        ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname dvdrw
UNREGISTER      ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink dvdrw

Replace dvdrw with cdrw or zen smile, to have a symlink automatically created. Quite handy...

Offline

Board footer

Powered by FluxBB