Discussion:
cdrecord to ide
(too old to reply)
jim bob and joe bob
2005-02-07 14:40:25 UTC
Permalink
Is there a way to cdrecord to an ide device? I am using Debian woody on
a beige g3 and would like to try to burn a disk image from linux.
cdrecord -scanbus only finds my external linux drive - the only scsi
device on the system. The burner is ide. In deselect the description
of cdrecord claims to be able to burn to recorders either scsi or ata/ide.
If it is necessary to download a different version can someone outline
the steps to get it installed?
thanks
kk
I R A Darth Aggie
2005-02-07 15:56:48 UTC
Permalink
On Mon, 07 Feb 2005 08:40:25 -0600,
+ Is there a way to cdrecord to an ide device? I am using Debian woody on
+ a beige g3 and would like to try to burn a disk image from linux.
+ cdrecord -scanbus only finds my external linux drive - the only scsi
+ device on the system. The burner is ide.
Yes. But you have to kind of fake your devices a bit. Try this, as
root:

cdrecord -scanbus dev=ATA:

You should get a lot of "stuff", and a warning about using "badly
designed ATAPI via /dev/hd* interface" followed by a list of your
devices.

You can tell cdrecord to use the ATAPI interface by default by
modifying the /etc/default/cdrecord configuration file. Go to the
bottom, where you can input "abstract device names". In my system, I
have two ATAPI burner devices (one DVD+/-RW one CD-RW). I'm not sure
the burnfree setting makes a differnce (cdrecord seems to turn it off):

dvd= ATA:1,0,0 -1 -1 burnfree
cdrom= ATA:1,1,0 -1 -1 ""

Modify the ATA:x,y,z values to match your burner(s). Now, I can
simply:

cdrecord dev=dvd somedisk.iso
cdrecord dev=cdrom somedisk.iso

This is a lot easier than trying to remember "1,0,0 or is it 0,0,1??" :-)

James
--
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
jim bob and joe bob
2005-02-07 18:46:02 UTC
Permalink
Post by I R A Darth Aggie
On Mon, 07 Feb 2005 08:40:25 -0600,
+ Is there a way to cdrecord to an ide device? I am using Debian woody on
+ a beige g3 and would like to try to burn a disk image from linux.
+ cdrecord -scanbus only finds my external linux drive - the only scsi
+ device on the system. The burner is ide.
Yes. But you have to kind of fake your devices a bit. Try this, as
You should get a lot of "stuff", and a warning about using "badly
designed ATAPI via /dev/hd* interface" followed by a list of your
devices.
You can tell cdrecord to use the ATAPI interface by default by
modifying the /etc/default/cdrecord configuration file. Go to the
bottom, where you can input "abstract device names". In my system, I
have two ATAPI burner devices (one DVD+/-RW one CD-RW). I'm not sure
dvd= ATA:1,0,0 -1 -1 burnfree
cdrom= ATA:1,1,0 -1 -1 ""
Modify the ATA:x,y,z values to match your burner(s). Now, I can
cdrecord dev=dvd somedisk.iso
cdrecord dev=cdrom somedisk.iso
This is a lot easier than trying to remember "1,0,0 or is it 0,0,1??" :-)
James
Thanks much. I'll try that.
kk
jim bob and joe bob
2005-02-07 20:23:54 UTC
Permalink
jim bob and joe bob wrote:

Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
-scanbus. The results are the same:
Cdrecord: V.1.10 (powerpc-unknown-linux-gnu) CDRECORD (1) (C) Jorg
Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you
are root.

I edited my /etc/default/cdrecord file to read as follows:

#ident @(#)cdrecord.dfl 1.2 00/04/16 Copyr 1998 J. Schilling
#
# This file is /etc/default/cdrecord
# It contains defaults that are used if no command line option
# or environment is present.
#
# The default device, if not specified elswhere
#
CDR_DEVICE=pioneer

#
# The default speed, if not specified elswhere
#
CDR_SPEED=4

#
# The default FIFO size if, not specified elswhere
#
CDR_FIFOSIZE=4m

#
# The following definitions allow abstract device names.
# They are used if the device name does not contain the
# the characters ',', ':', '/' and '@'
#
# drive name device speed fifosize driveropts
#
teac= 1,3,0 -1 -1 ""
panasonic= 1,4,0 -1 -1 ""
plextor= 1,4,0 12 -1 ""
sanyo= 1,4,0 12 -1 burnproof
pioneer= 1,1,0 4 4m burnproof
cdrom= 0,6,0 2 1m ""

The values I changed were in the line beginning CDR_DEVICE from sony to
pioneer and in the list at the bottom:
pioneer= 1,1,0 4 4m burnproof
Those values are wild guesses and are probably wrong. It seems to me
that if cdrecord cannot look at the ide buses then there is not much
hope of getting it to do anything. I think I need a different version
of cdrecord. What do you think?
kk
Post by jim bob and joe bob
Post by I R A Darth Aggie
On Mon, 07 Feb 2005 08:40:25 -0600,
+ Is there a way to cdrecord to an ide device? I am using Debian
woody on + a beige g3 and would like to try to burn a disk image from
linux. + cdrecord -scanbus only finds my external linux drive - the
only scsi + device on the system. The burner is ide.
Yes. But you have to kind of fake your devices a bit. Try this, as
You should get a lot of "stuff", and a warning about using "badly
designed ATAPI via /dev/hd* interface" followed by a list of your
devices.
You can tell cdrecord to use the ATAPI interface by default by
modifying the /etc/default/cdrecord configuration file. Go to the
bottom, where you can input "abstract device names". In my system, I
have two ATAPI burner devices (one DVD+/-RW one CD-RW). I'm not sure
dvd= ATA:1,0,0 -1 -1 burnfree
cdrom= ATA:1,1,0 -1 -1 ""
Modify the ATA:x,y,z values to match your burner(s). Now, I can
cdrecord dev=dvd somedisk.iso
cdrecord dev=cdrom somedisk.iso
This is a lot easier than trying to remember "1,0,0 or is it 0,0,1??" :-)
James
Thanks much. I'll try that.
kk
Jonathan Bartlett
2005-02-10 16:00:10 UTC
Permalink
Post by jim bob and joe bob
Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
Cdrecord: V.1.10 (powerpc-unknown-linux-gnu) CDRECORD (1) (C) Jorg
Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you
are root.
It looks like you are using an older cdrecord. You will probably need
to load the ide-scsi module, and be sure that your cdrom is using it (I
think you do this by saying ide-scsi=hdc or whatever, but you'll have to
check me on that). Then you do just cdrecord -scanbus and it will have
assigned a SCSI id to your IDE drive.

Jon
----
Learn to program using Linux assembly language
http://www.cafeshops.com/bartlettpublish.8640017
jim bob and joe bob
2005-02-10 22:01:12 UTC
Permalink
Post by Jonathan Bartlett
Post by jim bob and joe bob
Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
Cdrecord: V.1.10 (powerpc-unknown-linux-gnu) CDRECORD (1) (C) Jorg
Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure
you are root.
It looks like you are using an older cdrecord. You will probably need
to load the ide-scsi module, and be sure that your cdrom is using it (I
think you do this by saying ide-scsi=hdc or whatever, but you'll have to
check me on that). Then you do just cdrecord -scanbus and it will have
assigned a SCSI id to your IDE drive.
Jon
----
Learn to program using Linux assembly language
http://www.cafeshops.com/bartlettpublish.8640017
Thanks, I'll give that a try. I think somewhere I have downloaded a
cdrecord that claims to do ATAPI. I think the one listed in dselect
claims that too. Not at all sure which version I have been trying to
use. So far it hasn't been able to find the ide busses. I wonder if it
is not a very good module. Seems like it should be able to get the
device list from the system. Oh, well.
KK
jim bob and joe bob
2005-02-11 06:18:36 UTC
Permalink
Post by jim bob and joe bob
Post by Jonathan Bartlett
Post by jim bob and joe bob
Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
Cdrecord: V.1.10 (powerpc-unknown-linux-gnu) CDRECORD (1) (C) Jorg
Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure
you are root.
It looks like you are using an older cdrecord. You will probably need
to load the ide-scsi module, and be sure that your cdrom is using it
(I think you do this by saying ide-scsi=hdc or whatever, but you'll
have to check me on that). Then you do just cdrecord -scanbus and it
will have assigned a SCSI id to your IDE drive.
Jon
----
Learn to program using Linux assembly language
http://www.cafeshops.com/bartlettpublish.8640017
Thanks, I'll give that a try. I think somewhere I have downloaded a
cdrecord that claims to do ATAPI. I think the one listed in dselect
claims that too. Not at all sure which version I have been trying to
use. So far it hasn't been able to find the ide busses. I wonder if it
is not a very good module. Seems like it should be able to get the
device list from the system. Oh, well.
KK
From what I gather reading the readme.atapi file it sounds like I
should just not try to burn from Linux. It is true that I don't have a
very recent version of cdrecord but besides that just about everything
else in the readme involved compiling a new kernal. That is beyond the
present scope of my expertise and hardly worth the effort to get a live
cd to run.
I am beginning to think that the best thing would be to give up entirely
on running linux on a mac. There is just too much complexity to work
through. I am really not unhappy with Mac OS but since I am running
primarily macintosh platform it really is my best hardware. My intel
box running Libranet is a pentium 1MMX (I think) with only 32 mb of
memory. It runs ok but very slowly. The installation was a comparative
snap. It only complains a little on bootup and a simple 'startx' gets a
Gnome desktop running. I am sure that more memory would help it
tremendously. If I try to do anything at all the swap runs
continuously. In contrast, my g3 with half a gig or so runs quickly but
everything I try in linux gets to be a major project.
That's my rant for today. Thanks for listening.
kk
I R A Darth Aggie
2005-02-11 16:17:23 UTC
Permalink
On Mon, 07 Feb 2005 14:23:54 -0600,
+
+ Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
I've been stumped by this one. Ok, back to square one. What kernel and
distribution version are you running, is the CDRW in question
available as a CDROM (mount, access files, etc), and what does

dmesg | grep /dev/hd

show?

James
--
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
jim bob and joe bob
2005-02-11 18:32:49 UTC
Permalink
Post by I R A Darth Aggie
On Mon, 07 Feb 2005 14:23:54 -0600,
+
+ Here's the deal: I did your cdrecord -scanbus dev=ATA and cdrecord
I've been stumped by this one. Ok, back to square one. What kernel and
distribution version are you running, is the CDRW in question
available as a CDROM (mount, access files, etc), and what does
Debian/woody 3.0r2, Kernal 2.4.18, cdrecord 1.10.
The drive will mount about anything I put in it if I know the format (no
particular problem that way. The problem is with cdrecord finding the
drive on the bus. There is a fairly extensive readme file
(README.ATAPI) that goes into bloody, gory detail about how to fool
linux into thinking an ide device is a scsi device and how awful the
ide/atapi standard is and how poorly supported it is under linux. That
is where it gets into recompiling a kernal so cdrecord will work.
I am sure that there are later releases of the cdrecord program that
might work better. If I remember correctly the recompiling was done on
earlier kernals than this one and maybe this one will work as is.
I think cdrecord is up to 1.5 or 1.6. I haven't located it or
downloaded the later version yet.
Post by I R A Darth Aggie
dmesg | grep /dev/hd
Yields no result.

Thanks for your seemingly unbounded patience with my ignorance.
kk
Post by I R A Darth Aggie
show?
James
jim bob and joe bob
2005-02-07 21:14:03 UTC
Permalink
I saw that I missed a trick. Went back and re-edited /etc/default/cdrecord:

#ident @(#)cdrecord.dfl 1.2 00/04/16 Copyr 1998 J. Schilling
#
# This file is /etc/default/cdrecord
# It contains defaults that are used if no command line option
# or environment is present.
#
# The default device, if not specified elswhere
#
CDR_DEVICE=pioneer

#
# The default speed, if not specified elswhere
#
CDR_SPEED=4

#
# The default FIFO size if, not specified elswhere
#
CDR_FIFOSIZE=4m

#
# The following definitions allow abstract device names.
# They are used if the device name does not contain the
# the characters ',', ':', '/' and '@'
#
# drive name device speed fifosize driveropts
#
teac= 1,3,0 -1 -1 ""
panasonic= 1,4,0 -1 -1 ""
plextor= 1,4,0 12 -1 ""
sanyo= 1,4,0 12 -1 burnproof
pioneer= ATA:1,0,0 4 4m burnproof
cdrom= 0,6,0 2 1m ""

still not sure I have it right.
kk
Loading...