:: ENGLISH :: PORTUGUêS ::
|
Beer, wine or water? What do you drink?
Partners: Server time 03:09 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 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 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 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 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 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/ 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 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 |