Setting up a CD-RW drive

"Richard C. Steffens" <[email protected]>
Newsgroups gmane.org.user-groups.linux.pdxlug
Message-ID <[email protected]>
I'm have a new (to me) machine, a Micron mumble mumble (Pentium II with 
something like 128 Mb of RAM -- I think), on which I've loaded Debian 
Woody. I'm in the process of reading and following the instructions at 
http://tldp.org/HOWTO/CD-Writing-HOWTO-2.html to set up my HP CD-Writer+ 
7200 so I can use it as a CD burner. This machine also has an IOMEGA ZIP 
100 on it, which is only confusing things a little. Both of these 
devices are IDE drives, installed as follows:

Primary IDE Master	Samsung SV0844A
Primary IDE Slave	None
Secondary IDE Master	HP CD-Writer+ 7200
Secondary IDE Slave	IOMEGA ZIP 100

There is a SCSI card inside, with nothing attached to it that I notice. 
I suspect the possibility that it once supported a scanner; I have a 
similar hardware arrangement on my Win98 machine -- an Epson 600 scanner 
connected to a SCSI card.

When I run cdrecord -scanbus I get this:

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
Using libscg version 'schily-0.5'
scsibus1:
	1,0,0	100) 'IOMEGA  ' 'ZIP 100         ' '14.A' Removable Disk
	1,1,0	101) *
	1,2,0	102) *
	1,3,0	103) *
	1,4,0	104) *
	1,5,0	105) *
	1,6,0	106) *
	1,7,0	107) *



The instructions say to run the following script to make sure the device 
files are present:

test `whoami` = 'root' || echo "You must be root to execute the commands."
cd /dev/
umask -S u=rwx,g=rwx,o-rwx
[ -f loop0 ] \
     || ./MAKEDEV loop \
     || for i in 0 1 2 3 4 5 6 7; do mknod loop$i b 7 $i; done
[ -f sg0 -o -f sga ] \
     || ./MAKEDEV sg \
     || for i in 0 1 2 3 4 5 6 7; do mknod sg$i  c 21 $i; done


That ran with no complaints, so I moved on to the next script, which is 
intended to make sure the device drivers are present:

test `whoami` = 'root' || echo "You must be root to execute the commands."
cdrecord -scanbus > /dev/null
if ! (pidof kerneld || test -f "/proc/sys/kernel/modprobe"); then
     echo "Neither kerneld nor kmod are running to automatically load 
modules".
fi
report_no_autoload() {
     echo "Ensure the module $1 is loaded automatically next time."
}
if test ! -f "/proc/scsi/scsi"; then
     report_no_autoload scsi_mod  &&  insmod scsi_mod
fi
if ! grep "^........ sg_" /proc/ksyms > /dev/null; then
     report_no_autoload sg  &&  insmod sg
fi
if ! grep "^........ sr_" /proc/ksyms > /dev/null; then
     report_no_autoload sr_mod  &&  insmod sr_mod
fi
if ! grep "^........ loop_" /proc/ksyms > /dev/null; then
     report_no_autoload loop  &&  insmod loop
fi
if ! grep iso9660 /proc/filesystems > /dev/null; then
     report_no_autoload iso9660  &&  insmod iso9660
fi
echo "The following is only needed for IDE/ATAPI CD-writers."
if ! grep ide-scsi /proc/ide/drivers > /dev/null; then
     report_no_autoload ide-scsi  &&  insmod ide-scsi
fi
cdrecord -scanbus


That, too, ran with no complaints.

Next, the HOWTO instructs me to modify lilo.conf with something like the 
following:

append="hdb=ide-scsi"

Since the CD-Writer is on the Secondary IDE Master, I assume that I 
should use this line:

append="hdc=ide-scsi"

Next, the instructions say to add something like the following:

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


Here's what I end up with, other than the default entries in my lilo.conf:

image=/vmlinuz
	label=Linux
	read-only
	append="hdc=ide-scsi"
	options ide-cd ignore=hdc            # 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

At the top of the lilo.conf file, there is a reminder to run lilo after 
making changes to the file. When I do, I get this error message:


micron-1:/etc# lilo
Unrecognized token "options" at or above line 114 in file /etc/lilo.conf

So, where did I go wrong? Is this the right set of instructions for me 
to be following, or is there something better?

Thanks for any advice.

-- 
Regards,

Dick Steffens
http://home.comcast.net/~rsteff/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.