Cannot read anymore dvd after eject and re-load
Hello
I'm trying to growisofs burn Moviestyle dvds with mixed results. I've
already used another brand of DVD (prodye) without a problem. I was
ready to dismiss the Moviestyle dvd as junk, but the tests I ran with
these DVDs shows that the problem is not so clear-cut.
First the short story:
For a dvd written with -dvd-compat
- burning goes well
- Then, I can mount and read the dvd in the writer (before ejecting
the media)
- Then I eject and reload the dvd.
- Then, I can no longer mount the dvd in the dvd-writer. I get a lot
of I/O and IDE errors in kern.log. dvd+rw-mediainfo also fails
- But I can mount the dvd in a dvd-rom drive on the same
machine. dvd+rw-mediainfo returns consistent results
Without dvd-compat, I get the same problem with the dvd-writer. On top
of that, mounting the dvd in the dvd-rom drives works but I get a lot
of IDE errors in kern.log. In this case dvd+rw-mediainfo returns
consistent results.
Since there are huge difference in IDE between 2.4 and 2.6, I've
tested the burnt dvd in 2.4.17: The same dvd will mount without error
with linux 2.4.27 in the dvd-rom drive. But I still cannot mount it in
the dvd-writer drive.
At this this point, I still don't know if:
- the Moviestyle dvds are bad
- growisofs has a bug
- My DVR-106D dvd-writer has a bug (although i've the latest official
version of the firmware)
- IDE layer in 2.6 has a bug.
Or if it's a mixed bag of bugs :-/
Here the setup of my machine:
* PIONEER DVD-RW DVR-106D on hdc
* HITACHI DVD-ROM GD-7500 on hdd
Here's the long story with much more details (and logs):
-> First here are the media info on a blank dvd:
$ dvd+rw-mediainfo /dev/hdc
INQUIRY: [PIONEER ][DVD-RW DVR-106D][1.07]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Bh, DVD+R
Current Write Speed: 4.0x1385=5540KB/s
Write Speed #0: 4.0x1385=5540KB/s
Write Speed #1: 2.4x1385=3324KB/s
Speed Descriptor#0: 00/2295103 R@1.0x1385=1385KB/s W@4.0x1385=5540KB/s
Speed Descriptor#1: 00/2295103 R@1.0x1385=1385KB/s W@2.4x1385=3324KB/s
READ DVD STRUCTURE[#0h]:
Media Book Type: A1h, DVD+R book [revision 1]
Media ID: IS01/001
Legacy lead-out at: 2295104*2KB=4700372992
READ DISC INFORMATION:
Disc status: blank
Number of Sessions: 1
State of Last Session: empty
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: blank
Track Start Address: 0*2KB
Next Writable Address: 0*2KB
Free Blocks: 2295104*2KB
Track Size: 2295104*2KB
READ CAPACITY: 1*2048=2048
-> I burn it with growisofs with dvd-compat mode
$ growisofs -Z /dev/hdc -dvd-compat -R -J <some files>
Executing 'mkisofs -R -J <some files> | builtin_dd of=/dev/hdc obs=32k seek=0'
INFO: ISO-8859-15 character encoding detected by locale settings.
Assuming ISO-8859-15 encoded filenames on source filesystem,
use -input-charset to override.
/dev/hdc: "Current Write Speed" is 4.1x1385KBps.
:-? the LUN appears to be stuck writing LBA=310h, retry in 141ms
0.23% done, estimate finish Fri May 6 18:34:30 2005
<snip>
99.81% done, estimate finish Fri May 6 16:53:09 2005
Total translation table size: 0
Total rockridge attributes bytes: 1427
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
2149110 extents written (4197 MB)
/dev/hdc: flushing cache
/dev/hdc: closing track
/dev/hdc: closing disc
-> At this point I can mount the dvd without problem:
$ mount /dvdrw
-> no error and very fast response. kern.log shows:
May 6 16:58:28 localhost kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
May 6 16:58:28 localhost kernel: ISO 9660 Extensions: RRIP_1991A
-> I eject and re-load the dvd and try to mount it again:
$ mount /dvdrw
mount: I could not determine the filesystem type, and none was specified
-> kern.log shows:
May 6 17:56:51 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
May 6 17:56:51 localhost kernel: hdc: packet command error: error=0x30 { LastFailedSense=0x03 }
May 6 17:56:51 localhost kernel: ide: failed opcode was: unknown
May 6 17:56:51 localhost kernel: ATAPI device hdc:
May 6 17:56:51 localhost kernel: Error: Medium error -- (Sense key=0x03)
May 6 17:56:51 localhost kernel: (reserved error code) -- (asc=0x57, ascq=0x00)
May 6 17:56:51 localhost kernel: The failed "Read Cd/Dvd Capacity" packet command was:
May 6 17:56:51 localhost kernel: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
May 6 17:56:51 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
May 6 17:56:51 localhost kernel: hdc: packet command error: error=0x30 { LastFailedSense=0x03 }
May 6 17:56:51 localhost kernel: ide: failed opcode was: unknown
May 6 17:56:51 localhost kernel: ATAPI device hdc:
May 6 17:56:51 localhost kernel: Error: Medium error -- (Sense key=0x03)
May 6 17:56:51 localhost kernel: (reserved error code) -- (asc=0x57, ascq=0x00)
May 6 17:56:51 localhost kernel: The failed "Read Cd/Dvd Capacity" packet command was:
May 6 17:56:51 localhost kernel: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
May 6 17:56:51 localhost kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 17:56:51 localhost kernel: hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
May 6 17:56:51 localhost kernel: ide: failed opcode was: unknown
May 6 17:56:51 localhost kernel: end_request: I/O error, dev hdc, sector 64
May 6 17:56:51 localhost kernel: Buffer I/O error on device hdc, logical block 16
May 6 17:56:51 localhost kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 17:56:51 localhost kernel: hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
May 6 17:56:51 localhost kernel: ide: failed opcode was: unknown
May 6 17:56:51 localhost kernel: end_request: I/O error, dev hdc, sector 68
-> And I get a lot of other errors like that
-> Then I try dvd+rw-mediainfo on the dvd (still in the dvd-writer drive)
$ dvd+rw-mediainfo /dev/hdc
INQUIRY: [PIONEER ][DVD-RW DVR-106D][1.07]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Bh, DVD+R
Current Write Speed: 4.0x1385=5540KB/s
Write Speed #0: 4.0x1385=5540KB/s
Write Speed #1: 2.4x1385=3324KB/s
Speed Descriptor#0: 00/2295103 R@1.0x1385=1385KB/s W@4.0x1385=5540KB/s
Speed Descriptor#1: 00/2295103 R@1.0x1385=1385KB/s W@2.4x1385=3324KB/s
:-[ READ DVD STRUCTURE#0 failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
:-[ READ DISC INFORMATION failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
-> I also try the same thing on my DVD-rom: I place the faulty dvd in
-> the dvd-rom drive (hdd)
$ mount /dvdr
-> no error and fast response. kern.log shows:
May 6 18:00:42 localhost kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
May 6 18:00:42 localhost kernel: ISO 9660 Extensions: RRIP_1991A
-> mediainfo look normal.
$ dvd+rw-mediainfo /dev/hdd
INQUIRY: [HITACHI ][DVD-ROM GD-7500 ][0007]
GET [CURRENT] CONFIGURATION:
Mounted Media: 10h, DVD-ROM
READ DVD STRUCTURE[#0h]:
Media Book Type: A1h, DVD+R book [revision 1]
Legacy lead-out at: 2149120*2KB=4401397760
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 2149120*2KB
FABRICATED TOC:
Track#1 : 14@0
Track#AA : 14@2149120
Multi-session Info: #1@0
READ CAPACITY: 2149120*2048=4401397760
-> Here are other result for a dvd written without dvd-compat read in
-> the dvd-writer drive:
$ dvd+rw-mediainfo /dev/hdc
INQUIRY: [PIONEER ][DVD-RW DVR-106D][1.07]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Bh, DVD+R
Current Write Speed: 4.0x1385=5540KB/s
Write Speed #0: 4.0x1385=5540KB/s
Write Speed #1: 2.4x1385=3324KB/s
Speed Descriptor#0: 00/2295103 R@1.0x1385=1385KB/s W@4.0x1385=5540KB/s
Speed Descriptor#1: 00/2295103 R@1.0x1385=1385KB/s W@2.4x1385=3324KB/s
:-[ READ DVD STRUCTURE#0 failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
:-[ READ DISC INFORMATION failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
-> kern.log shows:
May 6 18:23:07 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
May 6 18:23:07 localhost kernel: hdc: packet command error: error=0x30 { LastFailedSense=0x03 }
May 6 18:23:07 localhost kernel: ide: failed opcode was: unknown
May 6 18:23:07 localhost kernel: ATAPI device hdc:
May 6 18:23:07 localhost kernel: Error: Medium error -- (Sense key=0x03)
May 6 18:23:07 localhost kernel: (reserved error code) -- (asc=0x57, ascq=0x00)
May 6 18:23:07 localhost kernel: The failed "Read Cd/Dvd Capacity" packet command was:
May 6 18:23:07 localhost kernel: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
-> Then mount fails:
May 6 18:24:21 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
May 6 18:24:21 localhost kernel: hdc: packet command error: error=0x30 { LastFailedSense=0x03 }
May 6 18:24:21 localhost kernel: ide: failed opcode was: unknown
May 6 18:24:21 localhost kernel: ATAPI device hdc:
May 6 18:24:21 localhost kernel: Error: Medium error -- (Sense key=0x03)
May 6 18:24:21 localhost kernel: (reserved error code) -- (asc=0x57, ascq=0x00)
May 6 18:24:21 localhost kernel: The failed "Read Cd/Dvd Capacity" packet command was:
May 6 18:24:21 localhost kernel: "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
May 6 18:24:21 localhost kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 18:24:21 localhost kernel: hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
May 6 18:24:21 localhost kernel: ide: failed opcode was: unknown
May 6 18:24:21 localhost kernel: end_request: I/O error, dev hdc, sector 64
May 6 18:24:21 localhost kernel: printk: 156 messages suppressed.
May 6 18:24:21 localhost kernel: Buffer I/O error on device hdc, logical block 16
May 6 18:24:21 localhost kernel: hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 18:24:21 localhost kernel: hdc: media error (bad sector): error=0x30 { LastFailedSense=0x03 }
May 6 18:24:21 localhost kernel: ide: failed opcode was: unknown
-> I try to mount the dvd written without dvd-comapt in the dvd-rom
-> drive:
$ dvd+rw-mediainfo /dev/hdd
INQUIRY: [HITACHI ][DVD-ROM GD-7500 ][0007]
GET [CURRENT] CONFIGURATION:
Mounted Media: 10h, DVD-ROM
READ DVD STRUCTURE[#0h]:
Media Book Type: A1h, DVD+R book [revision 1]
Legacy lead-out at: 2295104*2KB=4700372992
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 2295104*2KB
FABRICATED TOC:
Track#1 : 14@0
Track#AA : 14@2295104
Multi-session Info: #1@0
READ CAPACITY: 2295104*2048=4700372992
$ mount /dvdr
-> lot of noise and long wait
-> finally the dvd is mounted
-> kern.log shows:
May 6 18:27:13 localhost kernel: hdd: DSC timeout
May 6 18:27:31 localhost kernel: hdd: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 18:27:31 localhost kernel: hdd: media error (bad sector): error=0x34 { AbortedCommand LastFailedSense=0x03 }
May 6 18:27:31 localhost kernel: ide: failed opcode was: unknown
May 6 18:27:31 localhost kernel: end_request: I/O error, dev hdd, sector 9180288
May 6 18:27:31 localhost kernel: printk: 156 messages suppressed.
May 6 18:27:31 localhost kernel: Buffer I/O error on device hdd, logical block 1147536
May 6 18:27:46 localhost kernel: hdd: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
May 6 18:27:46 localhost kernel: hdd: media error (bad sector): error=0x34 { AbortedCommand LastFailedSense=0x03 }
May 6 18:27:46 localhost kernel: ide: failed opcode was: unknown
May 6 18:27:46 localhost kernel: end_request: I/O error, dev hdd, sector 9180288
May 6 18:27:46 localhost kernel: Buffer I/O error on device hdd, logical block 1147536
May 6 18:27:47 localhost kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
May 6 18:27:47 localhost kernel: ISO 9660 Extensions: RRIP_1991A
-> Since the IDE driver has changed a lot between 2.4 and 2.6, I try
-> the faulty dvd (without dvd-compat) in 2.4.27
-> On linux 2.4.27 in the dvd-writer drive, I get:
# dvd+rw-mediainfo /dev/scd0
INQUIRY: [PIONEER ][DVD-RW DVR-106D][1.07]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Bh, DVD+R
Current Write Speed: 4.0x1385=5540KB/s
Write Speed #0: 4.0x1385=5540KB/s
Write Speed #1: 2.4x1385=3324KB/s
Speed Descriptor#0: 00/2295103 R@1.0x1385=1385KB/s W@4.0x1385=5540KB/s
Speed Descriptor#1: 00/2295103 R@1.0x1385=1385KB/s W@2.4x1385=3324KB/s
:-[ READ DVD STRUCTURE#0 failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
:-[ READ DISC INFORMATION failed with SK=3h/ASC=57h/ACQ=00h]: Input/output error
May 6 15:22:54 localhost kernel: sr0: CDROM (ioctl) error, command: UNKNOWN(0xad) 00 00 00 00 00 00 ff 00 04 00 00
May 6 15:22:54 localhost kernel: Current sr00:00: sense key Medium Error
May 6 15:22:54 localhost kernel: Additional sense indicates Unable to recover table-of-contents
May 6 15:22:54 localhost kernel: sr0: CDROM (ioctl) error, command: UNKNOWN(0xad) 00 00 00 00 00 00 00 00 24 00 00
May 6 15:22:54 localhost kernel: Current sr00:00: sense key Medium Error
May 6 15:22:54 localhost kernel: Additional sense indicates Unable to recover table-of-contents
May 6 15:22:54 localhost kernel: sr0: CDROM (ioctl) error, command: UNKNOWN(0x51) 00 00 00 00 00 00 00 20 00
May 6 15:22:54 localhost kernel: Current sr00:00: sense key Medium Error
May 6 15:22:54 localhost kernel: Additional sense indicates Unable to recover table-of-contents
-> mount also fails:
# mount -t iso9660 /dev/scd0 /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
May 6 15:23:54 localhost kernel: sr0: CDROM (ioctl) error, command: Read TOC 00 00 00 00 00 00 00 0c 00
May 6 15:23:54 localhost kernel: Current sr00:00: sense key Medium Error
May 6 15:23:54 localhost kernel: Additional sense indicates Unable to recover table-of-contents
May 6 15:23:54 localhost kernel: scsi1: ERROR on channel 0, id 0, lun 0, CDB: Request Sense 00 00 00 40 00
May 6 15:23:54 localhost kernel: Current sd0b:00: sense key Medium Error
May 6 15:23:54 localhost kernel: Additional sense indicates Unable to recover table-of-contents
May 6 15:23:54 localhost kernel: I/O error: dev 0b:00, sector 64
May 6 15:23:54 localhost kernel: isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16
-> With the dvd-rom, I get no error:
# mount -t iso9660 /dev/scd1 /cdrom
mount: block device /dev/scd1 is write-protected, mounting read-only
May 6 15:15:44 localhost kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
May 6 15:15:44 localhost kernel: ISO 9660 Extensions: RRIP_1991A
Feel free to contact me if you need more info.
CHeers
Reply to: