Linux recognizes CD and DVD drives upon booting if they are attached to your computer's motherboard with proper cabling and if they are assigned as either a master or slave on an IDE channel. Look through your kernel boot message for the drive device assignment, such as the following:
hdd: DVDROM 10X, ATAPI CD/DVD-ROM drive
If you have a DVD-capable drive, you generally should also have a symbolic link named /dev/dvd that points to your drive's device because many DVD clients, such as xine or vlc, look for /dev/dvd by default. If you have a CD-RW drive, the Ubuntu installer inserts a kernel argument into your boot loader's configuration file that specifies use of the idescsi kernel, such as the following:
A similar entry in the grub boot loader's /etc/grub.conf file would look like this:
kernel boot/vmlinuz-6.5-1.358 ro root=/dev/hda2 hdb=ide-scsi
The first CD-RW drive is assigned to the device /dev/scd0 (although it might still be initially recognized while booting as an IDE device), with subsequent drives assigned to /dev/scd1, and so on. To initialize your drive for use, the following modules should be loaded:
Size Used by Not tainted 30244 0 (autoclean)
sr_mod cdrom ide-scsi scsi mod
15192 0 (autoclean) 27872 0 (autoclean) [sr_mod] 8128 0
96572 2 [sr mod ide-scsi]
Look for kernel message output regarding the device such as this:
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 sr0: scsi3-mmc drive: 0x/32x writer cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.12
Your ATAPI-based CD-RW drive will then work as a SCSI device under emulation, and the symbolic link /dev/cdrom should point to /dev/scd0. You can also use the cdrecord command (included with Ubuntu's multimedia software packages) to acquire SCSI device information about your drive for later use during the burning operation, as follows:
# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jorg Schilling Linux sg driver version: 3.1.22 Using libscg version 'schily-0.5' scsibus0:
0,0,0 0) 'HL-DT-ST' 'RW/DVD GCC-412 0B' '2.01' Removable CD-ROM
The pertinent information0,0,0 in the example (SCSI bus, device ID, and logical unit number, or LUN)can then be used during a burn operation like this:
# cdrecord v speed=8 dev=0,0,0 data eject file_name.img
In this example, a CD-ROM data image named file_name.img is created on a CD-R or CD-RW media at a speed of 8, and the new disk will be ejected after the write operation has completed. See the section "Burning CDs and DVDs in Ubuntu" in Chapter 10, "Multimedia Applications," for other ways to create CD-ROMs.
Was this article helpful?
Read how to maintain and repair any desktop and laptop computer. This Ebook has articles with photos and videos that show detailed step by step pc repair and maintenance procedures. There are many links to online videos that explain how you can build, maintain, speed up, clean, and repair your computer yourself. Put the money that you were going to pay the PC Tech in your own pocket.