Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KSCD and /dev/sr0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eric.cheminot
n00b
n00b


Joined: 03 Jul 2002
Posts: 47

PostPosted: Tue Jul 23, 2002 7:33 pm    Post subject: KSCD and /dev/sr0 Reply with quote

Hello,

I have compiled the kernel with SCSI CD-ROM support (for CD-RW) and pass the boot option (for bioth CD-RW and DVD) 'hd[b|c]=ide-scsi'. Here is the dmesg interesting part:

==============
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: CD-RW Model: CDR-2440MB Rev: 5SG1
Type: CD-ROM ANSI SCSI revision: 02
Vendor: TOSHIBA Model: DVD-ROM SD-M1202 Rev: 1020
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 16x/16x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
=============

I was unable to select '/dev/sr0' or '/dev/sr1' under KSCD configuration (it always remains to '/dev/cdrom') Hence, i modified /etc/devfsd.conf as follows :

==============
# Give the cdrw group write permissions to /dev/sr0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER ^sr0$ PERMISSIONS root.cdrw 660
# Give audio group permission to dvd (sr1)
REGISTER ^sr1$ PERMISSIONS root.audio 660
# Create /dev/cdrom for the first cdrom drive
LOOKUP ^cdrom$ CFUNCTION GLOBAL mksymlink sr0 cdrom
REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrom
# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom1' to suite your setup)
LOOKUP ^dvd$ CFUNCTION GLOBAL mksymlink sr1 dvd
REGISTER ^sr1$ CFUNCTION GLOBAL mksymlink $devname dvd
UNREGISTER ^sr1$ CFUNCTION GLOBAL unlink dvd
# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrw
================

My login is in 'audio' and 'cdrw' groups, but I still cannot specify /dev/sr0, /dev/cdrom or /dev/cdrw to KSCD (or /dev/sr1 aka /dev/dvd).

Any hint?

Thanks!

-ec
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum