[NTLUG:Discuss] Multiple CD-R/W's and Fedora Core 2
David Simmons
dsimmons at powersmiths.com
Tue May 25 15:05:27 CDT 2004
Guys,
Thought this might help others that have been 'bitten' by the way that
Fedora Core 2 handles CD-R/W's. I'm sure it's an improved/more-mature
way of doing things, it just broke my long-term scripts - here's a way
to 'fix' them.
My machine has two IDE CD-R/W's that I use to create company Promo-CD's
with. I have two scripts, called top.sh and bottom.sh (corresponding to
the drive locations). These drives are on their own ATA card so-as not
to interfere with IDE hard-drives (thanks Bryan!). Here are my
old/original scripts:
[root at localhost root]# cat top.sh.BEFORE-FC2
cdrecord -v -speed=24 -dev=0,0,0 -data -driveropts=burnfree -eject
-fs=24m
/home/dsimmons/CD-Dave2003Nov.iso
[root at localhost root]# cat bottom.sh.BEFORE-FC2
cdrecord -v -speed=24 -dev=0,1,0 -data -driveropts=burnfree -eject
-fs=24m
/home/dsimmons/CD-Dave2003Nov-2.iso
When they are run on Fedora Core 2, the script complains about not being
able to find/talk to the device. So, I did as suggested and ran
'cdrecord -scanbus':
[root at localhost root]# cdrecord -scanbus
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004
Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to
<warly at mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in
this
version.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version
(schily
- Red Hat-scsi-linux-sg.c-1.80-RH '@(#)scsi-linux-sg.c 1.80
04/03/08 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) 'ATAPI ' 'CD-R/RW 48X16 ' '9.EK' Removable
CD-ROM
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) *
scsibus2:
2,0,0 200) 'HL-DT-ST' 'CD-RW GCE-8525B ' '1.03' Removable
CD-ROM
2,1,0 201) *
2,2,0 202) *
2,3,0 203) *
2,4,0 204) *
2,5,0 205) *
2,6,0 206) *
2,7,0 207) *
It see's my two drives...but has 'renumbered' them from the
original....and by reading the MAN CDRECORD, I need to define the TYPE
of drive/transport I want to use...ie. needed to include ATAPI: infront
of my device names...BUT **GOTCHA** don't believe the scsibus
designations. You'll need to start at 0 and not 1 (ie. it showed by
devices as 1,0,0 and 2,0,0 - but in reality they needed to be 0,0,0 and
1,0,0)....here's what I mean, by examining my corrected/updated scripts
that work:
[root at localhost root]# cat top.sh
cdrecord -v -speed=24 -dev=ATAPI:0,0,0 -data -driveropts=burnfree -eject
-fs=24m /home/dsimmons/CD-Dave2003Nov.iso
[root at localhost root]# cat bottom.sh
cdrecord -v -speed=24 -dev=ATAPI:1,0,0 -data -driveropts=burnfree -eject
-fs=24m /home/dsimmons/CD-Dave2003Nov-2.iso
Hope this helps - I'm by no means an expert...I was just lucky enough to
figure it out.
dave
More information about the Discuss
mailing list