Skip to Content.
Sympa Menu

baslinux - [BL] BL2 CD copying with readcd and cdrecord and no script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: Sindi Keesan <keesan AT iamjlamb.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: [BL] BL2 CD copying with readcd and cdrecord and no script
  • Date: Mon, 2 Aug 2004 19:20:55 -0400 (EDT)


I found Christof's instructions whih include a script to make a device but
did not need that script. Hal sent instructions how to do with with
bare.i and a full SW installation. I combined the nistructions.

I had a CD-R 24X read 2X write drive on hdc (secondary master) which I
used to both read and write CDs. I also have a 40X CD-ROM drive on hdb
but did not use this.

1. You need either to use a different kernel (bare.i) or insmod some
modules. Christof said to install scsimods.tgz but that was large so I
copied /modules/2.2.16/block/ide-cd and /modules/2.2.16/scsi/scsci-mod and
sg and sr_mod and ide-scsi.

2. After copying the modules to BL2 /lib/modules/2.2.16/misc I rebooted
adding after ro in boot.bat hdc=ide-scsi.
Perhaps I could have also added hdb=ide-scsi and had two emulated drives
to worry about, with different numbers.

3. Log in then
insmod ide-cd ignore=hdc (change to match your drive(s))
insmod scsi_mod
insmod sg
insmod sr_mod
insmod loop (which BL2 already had)
insmod ide-scsi

The last of these gave me the information

Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun0
sr0, scsi-mmc drive 24x/24x writer cd/rw xz/form2 cdda tray

(My drive is 24X read 2X write and is CD-R not CD-RW)

I then followed Hal's instructions:
cdrecord -scanbus to check that things are working

It told me 0,0,0 0)'SAF 'CD-RW2224 ' '2.4.3' Removable CD-ROM

I also looked at /proc/scsi/scsi

scsi0 Channel:00 Id: 00 lun: 00
(and more info about the vendor and model

ls -l /dev/cdrom told me that cdrom -> /dev/scd0
ide-scsi had told me it was /dev/sr0 but this does not seem to matter.

mstab automatically mounted anything in /proc so the CD-R drive did notn
eed to be mounted.

Hal gave instructions for reading the CD-ROM contents to a file:

readcd dev=0,0,0 f=/tmp/filename.raw
I called my file sw71inst.raw instead as I was trying to copying the SW71
installation CD (bootable)

It copied rather quickly (at 24X speed)

Then cdrecord -v -dummy fs=6m speed=2 dev=0,0,0 filename.raw

(my speed is 2X, other people may have faster drives so change 2 to
larger number)


This did a trial run and told me that my blank was bad. (It was one we
had tried to write to with Win98 when it crashed). I put in a good CD and
it passed).

I then delete the -dummy and ran the above instruction again and 40
minutes later it had copied 650MB with comments.

The CD looked identical to the original and it even booted.

So we have a way to make a copy of a data CD which remains bootable.
The last attempt (by a visiting list member) to copy a bootable CD wtih
DSL and bashburn produced a copy of the files but it was not bootable.

Many thanks to both Christof for the general instructions and list of
modules, and to Hal for the specifics on how t copy disks via readcd and
cdrecord (both in cdutils.tgz along with mkisofs and cdda2wav and cdrdao).

I used the SW71 cdrecord rather than compilng the new one.

I found three small scripts with configuration files, menus, etc., for
copying data and music CDs, creating data CDs, making music CDs from wav
or mp3 files, and blanking CD-RWs.

bunrcenter-3.1.tar.gz from http://alex14.home/dyndns.org/burncenter
Requires perl (which installs an enromous number of files) and uses
cdrecord and mkisofs not readcd.

cdrdialog.tar.bz2 www.bioprocess.org/cdrdialog does not create music
CDs but does the rest and does not need Perl. Simple menu.


phaser-2.5.tar.gz from www.accipiter.org/projects/phaser.html

These scripts copy CDs via the hard drive so you need about 700MB free,
but cdrdialog says itis possible to do it 'on the fly' which is how we
killed Wind98. It might work with enough RAM or a faster computer.
We used a 475MHz model which Windows refuses to install on today. About
180MB RAM. Probably not needed since we were only writing at 2X.

Phaser has the most complete description of how the process of copying
works. It also needs perl, says Pentuim 166 with 16MB RAM is best, adn
linux. 2.2.x kernel.

They are all about 12-13K downloads and don't need to be compiled.


I have not tried them. I did not need Christof's script for maknig a
device, which he said he had not tried.


Just loadlin with hdc=ide-scsi, insmod all the modules, and type out the
two lines with readcd and cdrecord (changing the 0,0,0 if you have more
than one ide-scsi device, and the speed if you can do more than 2x).

Should it be possible to copy an audio cd the same way, thoough it is not
a file or collection of files?

I think mkisofs is for use when you start with files rather than copying
from CD - is that right?


Thanks also to James for proving that the CD-ROM drive worked with linux
(DSL) and for getting us started on this.

The above could probably be made into three short scripts if you wanted to
use the same file name every time.

I have been told that 56K modems may not work with pre 1997 UARTS set to
115200. We have two external modems that are acting oddly at that port
speed. A 14.4 external modem has no such problmes because it slows down
the UART, which is defective.

I am connected with one of these creatures at too high a speed so please
forgive typos as it leaves out someo f what I type.

After this, SANE should be a snap and we can give up on Win98.




  • [BL] BL2 CD copying with readcd and cdrecord and no script, Sindi Keesan, 08/02/2004

Archive powered by MHonArc 2.6.24.

Top of Page