Problem
I have a notebook with a DVD-RW/CD-RW/CD-R ATAPI device attached to the secondary controller as master.
When I try to use the "cdrecord" utility to write or access the burning device, "cdrecord" fails to access the device.
From Unix it declares that the cd (/mnt) is read only, assuming /mnt is the attempted mount point.
This is an example error when I try to erase (format) a CD-RW media:
# cdrecord blank=fast
Cdrecord-ProDVD-Clone 2.01 (i586-sco-sysv5uw7.1.4)
Copyright (C)
1995-2004 Joerg Schilling
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Using libscg version 'schily-0.8'.
cdrecord: Cannot do inquiry for CD/DVD-Recorder.
cdrecord: Error 0. test unit ready: scsi sendcmd: fatal
error
CDB: 00 00 00 00 00 00
cmd finished after 0.000s timeout 40s Cause
The "cdrecord" is accessing the wrong device ID listed in the /etc/default/cdrecord.
Solution
You need to edit the /etc/default/cdrecord file and add the correct device ID.
First you need to find the exact device ID that the "cdrecord" finds on the system.
run as root the command:
# cdrecord -scanbus
Cdrecord-ProDVD-Clone 2.01 (i586-sco-sysv5uw7.1.4)
Copyright (C)
1995-2004 Joerg Schilling
Using libscg version 'schily-0.8'.
scsibus1:
1,0,0 100) 'MATSHITA' 'DVD-RAM UJ-820S ' '1.00'
Removable CD-ROM
1,1,0 101) *
1,2,0 102) HOST ADAPTOR
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *From the output, we see that the "cdrecord" was found on the SCSI-ID 1,0,0 our DVD-RW device (MATSHITA DVD-RAM UJ-820S)
Second, edit the /etc/default/cdrecord and see what the variable CDR_DEVICE is set to, our case is set to ide: CDR_DEVICE=ide
Then below the file, in the section:
# Unless you have a good reason, use speed == -1 and let
# cdrecord use its internal drive specific defaults.
#
# drive name device speed fifosize driveropts
#
teac= 1,3,0 -1 -1 ""
panasonic= 1,4,0 -1 -1 ""
plextor= 1,4,0 -1 -1 ""
sanyo= 1,4,0 -1 -1 burnfree
yamaha= 1,5,0 -1 -1 ""
ide= 0,0,0 -1 -1 burnfree
cdrom= 0,6,0 2 1m ""change the ide line from:
ide= 0,0,0 -1 -1 burnfreetoide= 1,0,0 -1 -1 burnfreethen save the file.You now will be able to access the CD-Burner device:
# cdrecord blank=fast
Cdrecord-ProDVD-Clone 2.01 (i586-sco-sysv5uw7.1.4)
Copyright (C) 1995-2004 Joerg Schilling
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Using libscg version 'schily-0.8'.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identifikation : 'DVD-RAM UJ-820S '
Revision : '1.00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO
Starting to write CD/DVD at speed 4 in real BLANK mode for
single session.
Last chance to quit, starting real write 4 seconds.....NOTE: Additional commands that can be run are:# cdrecord -checkdrive# cdrecord -v -checkdrive# cdrecord -V -checkdrive# cdrecord -VV -checkdriveNOTE: Also try using the command "cdrecord -eject" and "cdrecord -load" to
see if the CD-ROM drive has the ability to eject or load CD's from a
command line.cdrecord:Cannot load media with this drive! cdrecord:Try to load media by hand.
If you see the above then the CD Drive is not capable of "loading" a
CD. The CD Tray has to be physically pushed in. See also
man cdrecord(1)