Red Hat Bugzilla – Bug 26133
cdrecord reports invalid lun and/or cannot open scsi driver
Last modified: 2007-04-18 12:31:12 EDT
cdrecord (does not work and) gives two error messages, one about an
invalid lun specifier, and one that it cannot open SCSI driver.
Hardware: API UP2000 (supported according to my RH7 box). Yamaha
SCSI CRW8424S writer drive connected to the single-ended (Adaptec)
Software: RH7, supplied 2.2.17-4 kernel, updated packages as of this
History: The writer was working great with RH6.1 and standard packages.
Current: The drive works fine as a CD reader--I can mount an installation
CD, mount it, and look through the contents. The 'sg' driver seems to be
in place, according to lsmod, and working, as I can successfully use a
SCSI scanner (from a NCR/Symbios adapter card--no change from when
cdrecord worked on 6.1). When I do 'cdrecord -scanbus', it gives me what
appears to be the correct bus,id,lun tuple (the same as I used with RH6.1).
When I do 'cdrecord -checkdrive', or any other option that exercises the
drive, I get an error message saying 'Invalid lun specifier' and 'Cannot
I can't see a place on this page to add an attachment, so I'll try to add
cdrecord.conf, the output from lsmod, the output from 'cdrecord -scanbus',
and the output from 'cdrecord -checkdrive' after filing this.
(I left the priority field at normal, but this is pretty important to me,
it prevents me from making regular backups.)
Created attachment 9062 [details]
Created attachment 9063 [details]
output of lsmod
Created attachment 9064 [details]
output of cdrecord -scanbus
Created attachment 9065 [details]
output of cdrecord -checkdrive
Created attachment 9439 [details]
context diff between non-working (.~2~) and working (plain) config file.
After a little more experimenting with formatting of white space on the line
that specifies the detailed drive information, I stumbled upon a way to
format the line so that it works. In an ideal world, white space would be
transparent, but at least there's a way to make it work.
If the man page is generated by Redhat, perhaps a mention of the white
space issue could be included in the man page to guide other clueless
newbie users such as myself. I'll try to attach a context diff between the
format that did not work and the format that did work.
Depending on what you wish to do regarding possibly updating the
documentation and/or possibly reporting the white space sensitivity issue
to the developer, I'm okay with closing this report.
from 'man cdrecord':
Each line that follows a label contains a TAB separates list of items.