The disappearing DVD drive that ata looses

Hello,

I’ve been trying to solve this issue for a bit and the great sage that is Google has yielded few results.

A while back I posted to LQ.org in a thread where someone was having a similar problem but I failed to get their solution to work.

Basically the DVD drive just disappears and /var/log/messages says:

Jun 28 21:14:49 linux kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
Jun 28 21:14:49 linux kernel: ata1.00: cmd a0/01:00:00:00:fc/00:00:00:00:00/a0 tag 0 dma 129360 in
Jun 28 21:14:49 linux kernel:          cdb be 00 00 00 34 d6 00 00  37 f8 00 00 00 00 00 00
Jun 28 21:14:49 linux kernel:          res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
Jun 28 21:14:49 linux kernel: ata1.00: status: { DRDY }
Jun 28 21:14:55 linux kernel: ata1: port is slow to respond, please be patient (Status 0xd0)
Jun 28 21:14:59 linux kernel: ata1: device not ready (errno=-16), forcing hardreset
Jun 28 21:14:59 linux kernel: ata1: hard resetting link
Jun 28 21:15:00 linux kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jun 28 21:15:00 linux kernel: ata1.00: failed to IDENTIFY (I/O error, err_mask=0x3)
Jun 28 21:15:00 linux kernel: ata1.00: revalidation failed (errno=-5)
Jun 28 21:15:00 linux kernel: ata1: failed to recover some devices, retrying in 5 secs
Jun 28 21:15:05 linux kernel: ata1: hard resetting link
Jun 28 21:15:06 linux kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jun 28 21:15:06 linux kernel: ata1.00: failed to IDENTIFY (I/O error, err_mask=0x3)
Jun 28 21:15:06 linux kernel: ata1.00: revalidation failed (errno=-5)
Jun 28 21:15:06 linux kernel: ata1: failed to recover some devices, retrying in 5 secs
Jun 28 21:15:11 linux kernel: ata1: hard resetting link
Jun 28 21:15:11 linux kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jun 28 21:15:11 linux kernel: ata1.00: failed to IDENTIFY (I/O error, err_mask=0x3)
Jun 28 21:15:11 linux kernel: ata1.00: revalidation failed (errno=-5)
Jun 28 21:15:11 linux kernel: ata1.00: disabled
Jun 28 21:15:12 linux kernel: ata1: soft resetting link
Jun 28 21:15:12 linux kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Jun 28 21:15:12 linux kernel: ata1: EH complete

The drive is very new and (boy I hate seeing these statements in the posts of others) works under another less free operating system.

uname -a:

Linux linux 2.6.25.5-1.1-default #1 SMP 2008-06-07 01:55:22 +0200 x86_64 x86_64 x86_64 GNU/Linux

I’m going to reboot and post more info when the drive “exists”.

your logs show a SATA interface. is this drive internal or external? SATA bus? or other?

Looks almost like the drive’s not getting enough power and it’s browning out, then it gets reset after a short pause, lather, rinse, repeat.

Cables plugged in … wait… you said “it works under…”. hmmm.

Back to the “need more information”. {Sigh}

Lornix

How very ironic. The drive has always returned after a reboot, but now that I’m counting on it to return. It fails with the same message at boot instead of during heavy usage like normal.

Based only one external markings
Drive:
Samsung
Super
“WriteMaster”

SATA

Internal

I doubt that it wouldn’t be getting enough power as I sort of overshot the power supply needs of the system for future proofing.

had a thought…

Put a disc in the drive…

Does the system autodetect it?

Watch the logs after a disc is inserted. Do they continue?

If they stop, then it’s likely that the “errors” you’re seeing are simply the system polling for a disc present.

Yeah, the browning out bit was a serious long-shot… but you kinda have to shotgun things when working with little information. {Grin}

Lornix

[edit] Of course… I could be completely wrong and pulling answers from a hat tonight too. {sigh} That’s a strange one.

Can you plug it into a different SATA bus?

sdparm -a /dev/sr0

    /dev/sr0: TSSTcorp  CDDVDW SH-S203N   SB01  [cd/dvd]
Read write error recovery mode page:
  AWRE        0  [cha: y, def:  0]
  ARRE        0  [cha: n, def:  0]
  TB          0  [cha: n, def:  0]
  RC          0  [cha: n, def:  0]
  EER         0  [cha: n, def:  0]
  PER         0  [cha: y, def:  0]
  DTE         0  [cha: n, def:  0]
  DCR         0  [cha: y, def:  0]
  RRC       128  [cha: y, def:128]
  COR_S       0  [cha: n, def:  0]
  HOC         0  [cha: n, def:  0]
  DSOC        0  [cha: n, def:  0]
  EMCDR       0  [cha: n, def:  0]
  WRC         0  [cha: n, def:  0]
  ERTL        0  [cha: n, def:  0]
Mount rainier reWritable (MMC) mode page:
  LBAS        0  [cha: y, def:  0]
Write parameters (MMC) mode page:
  BUFE        0  [cha: y, def:  0]
  LS_V        0  [cha: n, def:  0]
  TST_W       0  [cha: y, def:  0]
  WR_T        3  [cha: y, def:  0]
  MULTI_S     0  [cha: y, def:  3]
  FP          0  [cha: y, def:  0]
  COPY        0  [cha: y, def:  0]
  TRACK_M     4  [cha: y, def:  5]
  DBT         3  [cha: y, def:  8]
  LINK_S      0  [cha: n, def:  0]
  IAC         0  [cha: y, def:  0]
  SESS_F      0  [cha: y, def:  0]
  PACK_S      0  [cha: y, def:  0]
  APL       150  [cha: y, def:150]
Protocol specific logical unit mode page:
  LUPID       0  [cha: n, def:  0]
Power condition mode page:
  IDLE        1  [cha: n, def:  1]
  STANDBY     1  [cha: n, def:  1]
  ICT       2780  [cha: n, def:2780]
  SCT       6000  [cha: n, def:6000]
Informational exceptions control mode page:
  PERF        0  [cha: n, def:  0]
  EBF         0  [cha: n, def:  0]
  EWASC       0  [cha: n, def:  0]
  DEXCPT      0  [cha: n, def:  0]
  TEST        0  [cha: n, def:  0]
  EBACKERR    0  [cha: n, def:  0]
  LOGERR      0  [cha: n, def:  0]
  MRIE        0  [cha: n, def:  0]
  INTT        0  [cha: n, def:  0]
  REPC        0  [cha: n, def:  0]
Timeout and protect (MMC) mode page:
  G3E         0  [cha: n, def:  0]
  TMOE        0  [cha: n, def:  0]
  DISP        0  [cha: n, def:  0]
  SWPP        0  [cha: n, def:  0]
  G1MT        6  [cha: n, def:  6]
  G2MT        0  [cha: n, def:  0]
CD/DVD (MM) capabilities and mechanical status (MMC) mode page:
  D_RAM_R     1  [cha: n, def:  1]
  D_R_R       1  [cha: n, def:  1]
  D_ROM_R     1  [cha: n, def:  1]
  METH2       1  [cha: n, def:  1]
  CD_RW_R     1  [cha: n, def:  1]
  CD_R_R      1  [cha: n, def:  1]
  D_RAM_W     1  [cha: n, def:  1]
  D_R_W       1  [cha: n, def:  1]
  TST_WR      1  [cha: n, def:  1]
  CD_RW_W     1  [cha: n, def:  1]
  CD_R_W      1  [cha: n, def:  1]
  BUF         1  [cha: n, def:  1]
  MULT_S      1  [cha: n, def:  1]
  M2F2        1  [cha: n, def:  1]
  M2F1        1  [cha: n, def:  1]
  DP_2        0  [cha: n, def:  0]
  DP_1        0  [cha: n, def:  0]
  COMP        0  [cha: n, def:  0]
  AUDIO_P     1  [cha: n, def:  1]
  RBC         0  [cha: n, def:  0]
  UPC         1  [cha: n, def:  1]
  ISRC        1  [cha: n, def:  1]
  C2PS        1  [cha: n, def:  1]
  RW_DC       1  [cha: n, def:  1]
  RW_S        1  [cha: n, def:  1]
  CDDA_SA     1  [cha: n, def:  1]
  CDDA_CS     1  [cha: n, def:  1]
  LMT         1  [cha: n, def:  1]
  EJECT       1  [cha: n, def:  1]
  PJ          0  [cha: n, def:  0]
  LS          0  [cha: n, def:  0]
  LOCK        1  [cha: n, def:  1]
  RWILI       1  [cha: n, def:  1]
  SCC         0  [cha: n, def:  0]
  SSS         0  [cha: n, def:  0]
  CSDP        0  [cha: n, def:  0]
  SCM         1  [cha: n, def:  1]
  SVL         1  [cha: n, def:  1]
  NVLS      256  [cha: n, def:256]
  BSS       2048  [cha: n, def:2048]
  LENGTH      1  [cha: n, def:  1]
  LSBF        0  [cha: n, def:  0]
  RCK         0  [cha: n, def:  0]
  BCKF        0  [cha: n, def:  0]
  CMRS        1  [cha: n, def:  1]
  RCS         0  [cha: y, def:  0]
  CWSS      8468  [cha: y, def:  0]

hdparm -I /dev/sr0

/dev/sr0:

ATAPI CD-ROM, with removable media
        Model Number:       TSSTcorp CDDVDW SH-S203N
        Serial Number:
        Firmware Revision:  SB01
Standards:
        Supported: CD-ROM ATAPI-3 -4 -5 -6 -7
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
Capabilities:
        LBA, IORDY(can be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=383ns  IORDY flow control=120ns

cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: TSSTcorp Model: CDDVDW SH-S203N  Rev: SB01
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: Maxtor 6L120P0   Rev: BAH4
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi6 Channel: 00 Id: 01 Lun: 00
  Vendor: ATA      Model: WDC WD600BB-00CA Rev: 17.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi8 Channel: 00 Id: 00 Lun: 00
  Vendor: WD       Model: 2500JB External  Rev: 0108
  Type:   Direct-Access                    ANSI  SCSI revision: 00

appropriate part of hwinfo

37: SCSI 00.0: 10602 CD-ROM (DVD)
  [Created at block.238]
  UDI: /org/freedesktop/Hal/devices/storage_model_CDDVDW_SH_S203N
  Unique ID: KD9E.L9GcnrcCk21
  Parent ID: CvwD.qvX3ANcTQl5
  SysFS ID: /class/block/sr0
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:05.0/host0/target0:0:0/0:0:0:0
  Hardware Class: cdrom
  Model: "TSSTcorp CDDVDW SH-S203N"
  Vendor: "TSSTcorp"
  Device: "CDDVDW SH-S203N"
  Revision: "SB01"
  Driver: "sata_nv", "sr"
  Driver Modules: "sata_nv"
  Device File: /dev/sr0 (/dev/sg0)
  Device Files: /dev/sr0, /dev/scd0, /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0, /dev/cdrom, /dev/cdrw, /dev/dvd, /dev/dvdrw
  Device Number: block 11:0 (char 21:0)
  Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL, DVDRAM
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #25 (IDE interface)
  Drive Speed: 48

dmesg | grep -B2 -i sr0


(video stuff)
Driver 'sr' needs updating - please use bus_type methods
sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 0:0:0:0: Attached scsi CD-ROM sr0
--
Driver 'st' needs updating - please use bus_type methods
usb 2-8: reset high speed USB device using ehci_hcd and address 2
end_request: I/O error, dev sr0, sector 64
Buffer I/O error on device sr0, logical block 16
Buffer I/O error on device sr0, logical block 17
end_request: I/O error, dev sr0, sector 64
Buffer I/O error on device sr0, logical block 16
end_request: I/O error, dev sr0, sector 68
Buffer I/O error on device sr0, logical block 17

The buffer problem is new information (it might have been there but I didn’t associate it) and might be related or might not, more info is better right.

This is (almost) stock 11.0. I’ve changed nothing even relating to hardware stuff.

I also installed the debug version of the kernel but as I’m mostly a novice I don’t know how to do the equivalent of running k3b with paranoia set to 3 from a the command line that presents itself after logging in. For that matter I don’t know if it would help.

Once the logs show it dying, the system doesn’t even recognize that a drive exists. No /dev/sr0 at all thus the system doesn’t auto detect a new disk.

I think this is the system log after a disk is inserted (but right now I’m trying to force another fail to see if the Buffer I/O thing comes up again, so I can’t really stop the disk that I’m ripping.

Jun 24 22:51:52 linux kernel: cdrom: sr0: mrw address space DMA selected
Jun 24 22:51:52 linux kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
Jun 24 22:51:52 linux kernel: ISO 9660 Extensions: RRIP_1991A
Jun 24 22:51:52 linux hald: mounted /dev/sr0 on behalf of uid 1000

Depending on the test to see if there are more buffer i/o issues, i’ll check a different SATA bus after making sure I have the proper log from inserting a disk.

Also, long shots occasionally pan out. I love it when they do :smiley:

I’ll keep an eye out… post when you get some more info.

Questions:

Does it work for a while, then if you let it sit idle, after a while it goes away and doesn’t come back?

The sdparm logs show that it’s set to go to IDLE state after 4min38sec (ICT: 2780 tenths of a second), and full STANDBY state after 10mins (SCT: 6000 tenths)

Those can be changed if need be.

When it ‘goes away’, does it return if you eject the tray? or put a disc in tray?

Really just wondering, is it going to sleep, disconnecting from the bus and ignoring the system… Things that make you go: hmmmm… (omg! Arsenio flashbacks! I’m old!! arrgh!!)

Can you email or private message me your /var/log/messages and /var/log/boot.msg logs? How long elapses between boot and fail?

Maybe twenty questions… Is it a mineral, vegetable or animal?

Hi,

I have exact the same problem with my HP Compaq nc6400 dvd drive.
openSUSE 11.0 - 64b.

If I want to install additional software and the installer ask for the original DVD disk, I am not able to continue. It just says pls. insert … (and the dvd is of course in the drive)

I have also installed vlc.
After reboot, the system sees the dvd in the drive, but when I try to play the dvd movie the vlc application is terminated (Without any message…)

This was working with 10.3

/Helge

I had a similar problem and posted the solution to a thread I had started here:

CD/DVD Media not Automouting - openSUSE Forums

I can see by your posts that you are running the 64 bit OS. After I reinstalled with the 32 bit version, I stopped having these problems.