-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A trick is: cdrecord dev={sg|pg|ATA...} --scanbus

I've got a ATAPI (ide-scsi) so I added the following file 
/etc/modules.d/ide-scsi

options ide-cd ignore=hdb            # tell the ide-cd module to ignore hdb
alias scd0 sr_mod                    # load sr_mod upon access of scd0
#pre-install ide-scsi modprobe imm    # uncomment for some ZIP drives only
pre-install sg     modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd   before ide-scsi
 
and did a "modules-update" command.

Also in my /boot/grub/grub.conf something of the form:

title=Gentoo Linux (Gentoo Sources 2.4.20) - GrSec
root (hd0,0)
kernel /boot/bzImage2.4.20-gentoo-r10-d1 root=/dev/hda5 hdb=ide-scsi

Make sure the kernel contains a ide-scsi module and the ide-cd is as a module 
too (as previously mentioned). Tip when compiling the kernel edit 
/usr/src/linux-{version}/Makefile and add an addition identifer to 
EXTRAVERSION so that you can have a number of kernel of the same kernel 
version with different options.
 
Since I'm using devfs the et/etc/devfsd.conf contains:
REGISTER        ^scsi/host.*/bus.*/target.*/lun.*/generic    PERMISSIONS 
root.cdrw 660
 

LOOKUP          ^sg0$          CFUNCTION GLOBAL mksymlink 
scsi/host0/bus0/target0/lun0/generic sg0
REGISTER        ^sg0$           CFUNCTION GLOBAL mksymlink 
scsi/host0/bus0/target0/lun0/generic sg0
UNREGISTER      ^sg0$           CFUNCTION GLOBAL unlink sg0

I'm sure the above lines aren't totally correct but they seem to place a 
/dev/sg0 entry which is needed.

And finally make sure the user has write permission the /dev entry group 
"cdrw" in my case.

Hope this helps.

Daniel

ICQ #169591119
GnuPG/PGP signed and encrypted email preferred
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
Key fingerprint = 2300 3292 3351 9665 D41B DC20 4C34 9BB6 32A6 4DC8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+b/3TTDSbtjKmTcgRAop4AKCD42WDL8R0ytQSs/huZYb5e9+vFQCfZ9JK
K0Ug3XnFmb7ZOxQG9Aut/dA=
=G6dp
-----END PGP SIGNATURE-----


--
[EMAIL PROTECTED] mailing list

Reply via email to