Introduction
Instructions
- CD-Writing HOWTO by Winfried Trümper (you probably got this with your Linux distro) is the most important source of information for the basic process of installing and using your CDRW drive using Linux.
- Compatibility list of CD-Writers. This is a pretty complete list (i.e. I could find all the drives I considered buying here), although you are relying on info from other users (like this info in front of you ;-). List is not alphabetical, search for your make and model.
- CD Record by Jörg Schilling is probably the software you will want to use to do your burning. Even if you plan to use a graphical tool, cdrecord will be under the hood doing the hard work! This page also has lots of good links
- CD-Recordable FAQ by Andy McFadden is full of useful info about CD-Writing (not specific to Linux). Has info on what CD-Writers are equivalent (same innards, different badge).
Notes:
You will probably need to recompile your kernel.
This is not very difficult, but can be dangerous, the
Kernel HOWTO has extensive instructions. Make sure you have a
working boot-disk before you start, as that should get you back from
most catastrophes ;-).
First install, the sources of you distro's kernel (or one from the net).
Source is usually in /usr/src/linux. cd into the directory, and run
make menuconfig
From [1] above, you will need the following
| Sect. | Description | Module | Choice | |
| BLOCK | Enhanced IDE/MFM/RLL... | Y | ||
| BLOCK | IDE/ATAPI CDROM | ide-cd | M | |
| BLOCK | SCSI emulation support | ide-scsi | M | |
| BLOCK | Loopback device | loop | M | |
| SCSI | SCSI support | scsi_mod | Y/M | |
| SCSI | SCSI CD-ROM support | sr_mod | Y/M | |
| SCSI | Enable Vendor Specific | Y | ||
| SCSI | SCSI generic support | sg | Y/M | |
| FS | ISO 9660 CDROM filesystem | iso9660 | Y/M | |
| FS | Microsoft Joliet cdrom... | joliet | Y/M |
The basic kernel compile commands are
Again, from [1], you will need to configure modules.conf to include the
lines:
alias scd0 sr_mod # load sr_mod upon access of scd0
pre-install sg modprobe ide-scsi # before sg, load ide-scsi
pre-install sr_mod modprobe ide-scsi # before sr_mod, load ide-scsi
This works fine if you selected the SCSI features as modules. AGAIN! from [1], you will probably need to reconfigure lilo along the lines of:
label=Linux
read-only
append="hdb=ide-scsi"
The last line being the important one (i.e. you will already have lines like the previous 3). hdb is the device the cdrw appears as (if you boot your system normally, you should be able to access your cdrw as a normal cd-rom drive by typing, for example, "mount /dev/hdb /cdrom". As an aside, when installing the drive on my Debian machine, the SCSI-cd module actually took control of both my CD-ROM and my CD-RW. This is not bad, but might break some of your configurations. I got around this by using the line:
Following on from the last point, it is perfectly possible to use your IDE cd-rom drive as a scsi device. Compile the kernel as advised, and do all the steps as described for configuring a CDRW drive (but using the /dev/hd* name of the cd-rom drive). Running the command cdrecord -scanbus should indicate that you have one scsi device. This drive can then be mounted using something like "mount /dev/scd0 /cdrom". Once you have accomplished this, it is really no more difficult to install a CD-RW (apart from having to actually plug it in!).
Wed Jul 4 12:35:19 IST 2001
A final note which may help anyone who uses their cdrom drive in scsi emulation mode. If you want to use cdparanioa with the cd-drive, you need to have permissions on /dev/sg0 (assuming it is the first scsi device on the bus). This caught me out, as i could mount the cd-drive, and indeed rip using cdda2wav with only permissions on /dev/scd0. one way to do this is as root:
chown root:cdrom /dev/scd0 chown root:cdrom /dev/sg0 adduser your_login_name cdrom(you could edit /etc/group instead of the last line, if you like). mc