LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-16-2005, 08:23 PM   #1
akshunj
Member
 
Registered: Sep 2002
Location: Atlanta, GA
Distribution: Linux Mint Gloria, Slackware 12.2
Posts: 165

Rep: Reputation: 30
CD Writer error codes


For anyone who is seeing wacky error messages regarding their CD or DVD burner, I have some info from a post on the kernel mailing list. I combed through Google for what seemed like days since I only saw this error after my upgrade to kernel 2.6.13. Here's the exchange:

ORIGINAL MSG

List: linux-kernel
Subject: DVD+-R[W] regression in 2.6.12/13
From: Oliver Tennert <O.Tennert () science-computing ! de>
Date: 2005-09-05 13:33:01
Message-ID: 200509051533.01465.tennert () science-computing ! de
[Download message RAW]

Hello together,

with my machine, an

"hdparm -I /dev/dvdrecorder" leads to the output:

/dev/dvdrecorder:
HDIO_DRIVE_CMD(identify) failed: Input/output error

The kernel tells me:

[4296893.262000] hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
[4296893.262000] hdd: drive_cmd: error=0x04 { AbortedCommand }
[4296893.262000] ide: failed opcode was: 0xec

This happens with 2.6.12 and 2.6.13. DMA works fine, though. And burning
CDs/DVDs seems to work fine, too.

The same hdparm command to a "normal" CD or DVD ROM drive (no writer) does not
produces any error messages, though.

So what does this strange opcode do, and why does it fail in the latest
kernels?

/dev/dvdrecorder is a Plextor 708A, the error also occurs with a Plextor 716A.

Best regards

Oliver

REPLY

List: linux-kernel
Subject: Re: DVD+-R[W] regression in 2.6.12/13
From: Mark Lord <lkml () rtr ! ca>
Date: 2005-09-05 16:24:17
Message-ID: 431C7131.3030506 () rtr ! ca
[Download message RAW]

Oliver Tennert wrote:
>
> "hdparm -I /dev/dvdrecorder" leads to the output:
>
> /dev/dvdrecorder:
> HDIO_DRIVE_CMD(identify) failed: Input/output error
>
> The kernel tells me:
>
> [4296893.262000] hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
> [4296893.262000] hdd: drive_cmd: error=0x04 { AbortedCommand }
> [4296893.262000] ide: failed opcode was: 0xec

Those messages are "normal" for an ATAPI drive.

hdparm first tries the IDENTIFY opcode (0xec), and if that fails (above)
it then tries the PACKET_IDENTIFY opcode (0xa1), which should work for ATAPI.

I'm not sure why the "failed: Input/output error" (-EIO) result is
being returned from the ATA layer in this case. Driver bug, most likely.

Cheers

FINAL FOLLOW-UP

List: linux-kernel
Subject: Re: DVD+-R[W] regression in 2.6.12/13
From: Mark Lord <lkml () rtr ! ca>
Date: 2005-09-05 16:27:00
Message-ID: 431C71D4.8070402 () rtr ! ca
[Download message RAW]

Oh, you *should* be able to get the results you
are looking for (hdparm -I) by trying it this way:

hdparm --Istdin </proc/ide/hdd/identify

Cheers


--Akshun J
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 03:21 PM
GCC GDB error codes morph_ind Programming 3 07-07-2005 12:57 AM
Error when building source codes... darkarcon2015 Linux - Software 4 12-21-2004 11:39 PM
Socket Error codes kris273 Programming 3 03-20-2004 01:04 AM
isolinux error codes deidre Linux - Newbie 7 02-06-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration