CDRW on IBM T23 with Gentoo

Didn't notice until now that my CD-RW/DVD player wasn't loading properly – you can tell how much I use it, eh? ;-)

I'd already built the kernel with the correct SCSI modules (see references, below). I'd also already added "hdc=ide-scsi" to my grub boot parameters.

What was left was the following:


  1. uncommented:
    # Give the cdrw group write permissions to /dev/sg0
    # This is done to have non root user use the burner (scan the scsi bus)
    REGISTER    ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.cdrw 660
  2. commented out:
    # Create /dev/cdrom for the first cdrom drive
    #LOOKUP     ^cdrom$         CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
    #REGISTER   ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
    #UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrom
  3. uncommented the following:
    # 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


# cdrecord -scanbus
Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright© 1995-2003 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
    0,0,0  0) ‘MATSHITA' ‘UJDA720 DVD/CDRW' '1.03' Removable CD-ROM
    0,1,0  1) *
    0,2,0  2) *
    0,3,0  3) *
    0,4,0  4) *
    0,5,0  5) *
    0,6,0  6) *
    0,7,0  7) *

YAY! :-)