next up previous contents home.gif
Next: cshrc Up: Extra Configurations and Software Previous: Fat partition   Contents

Accessing CD/DVD drive or CD Burning

A quick check as root --
bash-2.05b# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
bash-2.05b#

Looks like we need to do some SCSI emulation. I appended my lilo.conf with and reran lilo:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda7
  label = Slackware
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
  append="hdc=ide-scsi"
# Linux bootable partition config ends

Next we need to re point the /dev/cdrom link to scd0 instead of hdc. That way everything else in the system can remain the same (like fstab).
bash-2.05b# ls -l /dev/cdrom
lrwxrwxrwx    1 root     root            8 Mar  5 15:13 /dev/cdrom -> /dev/hdc
bash-2.05b# cd /dev && rm cdrom && ln -s scd0 cdrom
bash-2.05b# ls -l /dev/cdrom
lrwxrwxrwx    1 root     root            4 Mar 14 20:03 /dev/cdrom ->scd0

Now we do a reboot and try again.
bash-2.05b# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'MATSHITA' 'UJ-810          ' 'C102' 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) *
bash-2.05b#

Now we are rockin'. You can make an image with mkisofs and burn it with something like:
cdrecord -v speed=2 dev=0,0,0 -data

This site is a good general reference.

I like making cdrecord available to ordinary users so ...

bash-2.05b# ls -l /usr/bin/cdrecord
-rwxr-xr-x    1 root     bin        279324 Aug 17  2003 /usr/bin/cdrecord
bash-2.05b# chown root.root /usr/bin/cdrecord
bash-2.05b# chmod 4111 /usr/bin/cdrecord
bash-2.05b# ls -l /usr/bin/cdrecord
---s--x--x    1 root     root       279324 Aug 17  2003 /usr/bin/cdrecord
bash-2.05b#



Douglas Dawson 2004-03-31