* Vendor specific cdrom error messages
@ 2006-04-19 16:26 Orion Poplawski
2006-04-19 19:02 ` Douglas Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: Orion Poplawski @ 2006-04-19 16:26 UTC (permalink / raw)
To: linux-scsi
I got the following error trying to burn a DVD on an IBM USB2 DVD-R burner:
Nov 7 11:40:36 makani kernel: cdrom: This disc doesn't have any tracks
I recognize!
Nov 7 11:41:59 makani kernel: sr 0:0:0:0: SCSI error: return code =
0x8000002
Nov 7 11:41:59 makani kernel: sr0: Current: sense key: Data Protect
Nov 7 11:41:59 makani kernel: ASC=0x27 <<vendor>> ASCQ=0xff
This is on Fedora Core 4 and kernel 2.6.13-1.1532_FC4.
It turns out that this is because the drive did not have enough power
(it was not plugged into the separate ac adapter). I was able to
determine this by booting into Windows, which gave me a nice descriptive
error message.
I was wondering if it makes sense for the kernel drivers to know these
error messages and report better errors, of it should be left up to user
space tools.
- Orion
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Vendor specific cdrom error messages
2006-04-19 16:26 Vendor specific cdrom error messages Orion Poplawski
@ 2006-04-19 19:02 ` Douglas Gilbert
2006-04-19 21:55 ` Orion Poplawski
0 siblings, 1 reply; 3+ messages in thread
From: Douglas Gilbert @ 2006-04-19 19:02 UTC (permalink / raw)
To: Orion Poplawski; +Cc: linux-scsi
Orion Poplawski wrote:
> I got the following error trying to burn a DVD on an IBM USB2 DVD-R burner:
>
> Nov 7 11:40:36 makani kernel: cdrom: This disc doesn't have any tracks
> I recognize!
> Nov 7 11:41:59 makani kernel: sr 0:0:0:0: SCSI error: return code =
> 0x8000002
> Nov 7 11:41:59 makani kernel: sr0: Current: sense key: Data Protect
> Nov 7 11:41:59 makani kernel: ASC=0x27 <<vendor>> ASCQ=0xff
>
> This is on Fedora Core 4 and kernel 2.6.13-1.1532_FC4.
>
> It turns out that this is because the drive did not have enough power
> (it was not plugged into the separate ac adapter). I was able to
> determine this by booting into Windows, which gave me a nice descriptive
> error message.
>
> I was wondering if it makes sense for the kernel drivers to know these
> error messages and report better errors, of it should be left up to user
> space tools.
I think that you can guess the answer to the above query.
Asc and/or ascq codes >= 0x80 (and <= 0xff) mark the
additional sense code as vendor specific.
The ascq code looks suspicious. An asc/ascq tuple of
<0x27,0x0> ("Write protected") would tie in pretty well
with the sense key of "Data Protect". A better choice
might be <0x5e,0x0> "Low power condition on".
Doug Gilbert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Vendor specific cdrom error messages
2006-04-19 19:02 ` Douglas Gilbert
@ 2006-04-19 21:55 ` Orion Poplawski
0 siblings, 0 replies; 3+ messages in thread
From: Orion Poplawski @ 2006-04-19 21:55 UTC (permalink / raw)
To: dougg; +Cc: linux-scsi
Douglas Gilbert wrote:
> Orion Poplawski wrote:
>> I got the following error trying to burn a DVD on an IBM USB2 DVD-R burner:
>>
>> Nov 7 11:40:36 makani kernel: cdrom: This disc doesn't have any tracks
>> I recognize!
>> Nov 7 11:41:59 makani kernel: sr 0:0:0:0: SCSI error: return code =
>> 0x8000002
>> Nov 7 11:41:59 makani kernel: sr0: Current: sense key: Data Protect
>> Nov 7 11:41:59 makani kernel: ASC=0x27 <<vendor>> ASCQ=0xff
>>
>> This is on Fedora Core 4 and kernel 2.6.13-1.1532_FC4.
>>
>> It turns out that this is because the drive did not have enough power
>> (it was not plugged into the separate ac adapter). I was able to
>> determine this by booting into Windows, which gave me a nice descriptive
>> error message.
>>
>> I was wondering if it makes sense for the kernel drivers to know these
>> error messages and report better errors, of it should be left up to user
>> space tools.
>
> I think that you can guess the answer to the above query.
> Asc and/or ascq codes >= 0x80 (and <= 0xff) mark the
> additional sense code as vendor specific.
Sorry, I'm a bad guesser. So, user space?
> The ascq code looks suspicious. An asc/ascq tuple of
> <0x27,0x0> ("Write protected") would tie in pretty well
> with the sense key of "Data Protect". A better choice
> might be <0x5e,0x0> "Low power condition on".
But we don't have any choice here right? Isn't this simply what the
drive returns to us? Are these codes passed on to user space?
Sorry, completely unfamiliar with the linux scsi stack. Just trying to
get the tools (dvd+rw-tools in this case) to return more informative
error messages and thought I'd start from the bottom.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-19 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 16:26 Vendor specific cdrom error messages Orion Poplawski
2006-04-19 19:02 ` Douglas Gilbert
2006-04-19 21:55 ` Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).