:: ENGLISH ::  PORTUGUêS ::


Beer, wine or water? What do you drink?
 

Beer

45.5%

Wine

18.2%

Water

9.1%

I don't drink

27.3%

Partners:

Server time

03:09
01-August-2010

Location: Home Page > Tutorials > 134623724

Instaling a CD-RW/DVD ATAPI on Debian

So, you need to record a couple of CD’s? Ok, this tutorial is for you then. I must recall that we will use a Linux Kernel 2.4.*, a CDROM and a CD-RW/DVD, both ATAPI. To start off let’s go to the console and try to find the device that identifies our CDROM and CDRW. For that we type:
xxx:~# grep -i hd /var/log/kern.log
or
xxx:~# dmesg |grep -i hd

On the output we will find something like: hd*: brand/model of the Hard Drive, CDROM, CDRW, etc. On mine I have:
hda: Maxtor 32049H2, ATA DISK drive
hdb: CREATIVE CD5233E, ATAPI CD/DVD-ROM drive hdc: HL-DT-ST RW/DVD
GCC-4480B, ATAPI CD/DVD-ROM drive
This means that I have as hdb my CDROM and dc my CDRW. We will now open the boot configuration file, in this case lilo.
xxx:~# vim /etc/lilo.conf
If the boot is loadlin then open the batch-file. Seek the line that is suppose to be comment like:
# append=""
Replace it by:
append="hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1"
Save the file, close it and run lilo.
xxx:~# lilo
or
xxx:~# /sbin/lilo
If you didn’t load the SCSI modules in Debian installation then do:
xxx:~# modconf
Go to this line:
kernel/drivers/scsi SCSI controller cards and SCSI devi
and load the modules:
ide-scsi - SCSI emulation support
sg - SCSI generic support
Now reboot Debian. On start up you can check that the following lines will be displayed:
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 1, lun 0
That means that we wont call the CDROM drives has /dev/hd*, but has /dev/sr*. This means that we must create the appropriated devices:
xxx:~# cd /dev/
xxx:/dev# MAKEDEV sg scd
xxx:/dev# ln -s scd0 cdrom # Has you probably should have the CDROM device delete the existing one
xxx:/dev# ln -s scd1 cdrw
Before we go on, check if you have cdrecord, if not the let’s install it:
xxx:~# apt-get install cdrecord
Let’s check or SCSI congiguratiion then shall we:
xxx:~# cdrecord –scanbus
Now let’s configure cdrecord:
xxx:~# vim /etc/default/cdrecord
Change the configuration to:
CDR_DEVICE=/dev/cdrw
# ...
# ...
cdrom= 1,2,0 0 0m ""
cdrw= 1,0,0 4 8m ""
Nota: The columns must be separated by tabs.

Finally we have our recorder ready, so let’s test it. Place a CD on the recorder. We will create first the CD image (teste.iso):
xxx:~# mkisofs -f -J -o teste.iso -r -v dir_a_gravar/
After having the image (file*.iso) we record:
xxx:~# cdrecord speed=12 dev=1,0,0 -data -v teste.iso
If there’s no mistake during the recording then we shall have our first recorded CD. If you any doubt please leave your comment.

by Cláudio Gamboa in 2004-06-26
Translated by André Ferreira

See the Comments: 0 | Comment Tutorial
 

On-line: 2 Guests - 0 Members

[About]  [Rules]  [Privacy]  [Contact

© 2004-2005 André Ferreira