Contents

GETTING ATAPI CD WRITERS WORKING



CD_Rchive2 can make using an ATAPI CD- DVD writer easy with Linux

FIRST READ THE HELP PAGE REGARDS KERNEL VERSIONS AND ATAPI

Now you will know that different kernels call for different strategies.

If you are using kernel 2.4.x or 2.6.x, your CD drives should appear in the list boxes on the [Source] and [Target] tab pages of CD-Rchive2.

That's it, just carry on and use them

Kernel:- 2.2.x
First advice is upgrade.
2.4.x supports many more devices etc but 2.6.x is the one to go for. I have been using it for a while and it appears stable up to 2.6.10 The big advantage re CD writing is DMA enabled to ATAPI.

If you don't want to upgrade, then look in the list boxes on the [Source] and [Target] tab pages of CD-Rchive2.

If your drives appear under the ATAPI: header then you are lucky and have a late patched version of the 2.2 kernel - problem solved.

If, as is more likely, your drives don't appear you will have to use the ide-scsi module to make your drives appear to be SCSI drives

First try this:-

Open your /etc/lilo.conf file and edit it so that the append= line contains a statement of
hd?=ide-scsi for each of your CD drives

It might look something like this:-

image=/boot/vmlinuz-2.2.22
label="Linux"
root=/dev/hdb1
initrd=/boot/initrd-2.2.22.img
append="devfs=mount hdd=ide-scsi"
vga=788
read-only


The important bit is append="hd?=ide-scsi" where hd? is the IDE address of your CD Writer
(hda = ide master channel 0. hdb = ide slave channel 0. hdc = ide master channel 1. hdd = ide slave channel 1)

ide-scsi is going to hopefully be actually built into the kernel.

Save lilo.conf and then as root execute "/sbin/lilo -v -C /etc/lilo.conf"
Reboot and you could find your CD Writer now recognised as a SCSI device,

You will need to edit /etc/fstab so that you will be able to mount it - see the section below for details

If the above didnt work then:-

As a quick guide (how I did it when running 2.2.13).

Using kernel 2.2.13 for instance
Copy your entire /boot directory to /boot-old so that if all goes wrong you dont lose your files

Go to your kernel source directory (/usr/src/linux-2.2.13 on my computer).
Do "make xconfig".
Remove 'Generic IDE/ATAPI CDROM support'.
Enable IDE -> SCSI emulation, build into kernel.
Include 'Generic SCSI support' ,'SCSI support' and 'SCSI CD-ROM support' into the kernel (not modules).
Save configuration and exit
Do "make deps clean bzImage modules modules_install" (whole lot in one line).
Copy /usr/src/linux-2.2.13/arch/i386/boot/bzImage to /boot/bzImage_scsi
(obviously exact location of bzImage will depend on architecture)

As root run "/sbin/mkinitrd /boot/initrd-2.2.13.img 2.2.13"

Open /etc/lilo.conf in an editor
Copy your entire section relating to your current boot up, intact into another place on the file.
Leave the old boot setup label as the default

Edit the original boot up text block
Insert line append="hdX=ide-scsi" ,where X is IDE letter of your CD Writer
Change the name of the image to:-
image = /boot/bzImage_scsi
Change label to:-
label = scsi

Save and then as root execute "/sbin/lilo -v -C /etc/lilo.conf"
The output will show your new configuration written.

Re-boot, select "scsi" to boot and if all is well boot up messages will show at least one SCSI host more than previous, with your CD Writer appearing.

If linux will not boot, do re-boot then at boot prompt enter label of your old (good) kernel, boot and try from top again.

Once booted, run CD-Rchive2 and see if your CDs appear in the list boxes on the [Source] and [Target] tab pages. If so you have cracked it!

You will now need to examine /var/log/boot.msg to see which /dev/srX, /dev/sgX or /dev/sdX was assigned to the CD.
For instance 0,0,0 will could be /dev/sr0 or /dev/sd0

You now need to ensure that the /etc/fstab entry relating to your CD Writer is changed from say :-
/dev/hdb        /cdwriter        iso9660        ro,noauto,usr,exec 0  0
to
/dev/sd0	/cdwriter        iso9660        ro,noauto,usr,exec 0  0

The symbolic links in /dev of
@cdrom
@cdrecorder
@cdwriter
need changing as appropriate

Re-boot, then mount your CD Writer with a data CD in it with "mount /cdwriter" for instance
If this suceeds and you can do a "ls" and get directory entries, all is peachy.

Make sure you have a new version of cdrecord-ProDVD and cdda2wav and get using CD-Rchive2!




IMPORTANT

The preceding advice is not exhaustive and in particular does not cover all aspects of kernel upgrading, especially if upgrading to a new kernel minor version at the same time.

No responsiblity is taken for the damage that could result from improper setting of Lilo etc..

Back up everything and ensure you know how to use a rescue disc to get back into your system, edit lilo.conf and get yourself back using your original kernel and settings is my advice



Before using CD-Rchive2 for the first time, please read the Data Overview and Audio Overview sections.