Bug 10116 - can't read DVD after writing
Summary: can't read DVD after writing
Status: CLOSED DOCUMENTED
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jeff Garzik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 09:52 UTC by Oleg Kostyuk
Modified: 2012-05-12 01:21 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.23-gentoo-r3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg output of failure/eject/remount/success (40.63 KB, application/octet-stream)
2008-06-04 13:45 UTC, Alessandro Suardi
Details

Description Oleg Kostyuk 2008-02-26 09:52:34 UTC
Distribution:
  Gentoo

Hardware Environment:
  Asus P5LD2 m/b
  SATA AD-7173S dvd writer
  SATA AD-7170S dvd writer

Software Environment:
  current kernel is 2.6.23-gentoo-r3

Problem Description:

After burning dvd disk (both RW and R) I can't read it.



There is more detailed explanation.

After inserting fresh-burned disk into drive, i got this message in /var/log/messages:

Feb 26 19:00:29 tux ata2.01: 16 bytes trailing data



Then run:
  tux ~ # cat /dev/cdrom > /mnt/ext/4/tmp
  tux ~ # ls -l /mnt/ext/4/tmp
  -rw-r--r-- 1 root root 1073741312 2008-02-26 19:04 /mnt/ext/4/tmp
  tux ~ #

  tux ~ # dd if=/dev/cdrom of=/mnt/ext/4/tmp bs=2048
  524287+1 records in
  524287+1 records out
  1073741312 bytes (1.1 GB) copied, 190.82 s, 5.6 MB/s
  tux ~ # ls -l /mnt/ext/4/tmp
  -rw-r--r-- 1 root root 1073741312 2008-02-26 19:12 /mnt/ext/4/tmp
  tux ~ #

and got no any error messages in logs.
But:

  tux ~ # mount /mnt/cdrom; du -hs /mnt/cdrom; umount /mnt/cdrom
  3.9G    /mnt/cdrom
  tux ~ #



Then run:
  tux ~ # mount /mnt/cdrom; cat /mnt/cdrom/* >/dev/null

and got following messages:

Feb 26 19:14:15 tux UDF-fs: No VRS found
Feb 26 19:14:15 tux ISO 9660 Extensions: Microsoft Joliet Level 3
Feb 26 19:14:15 tux ISO 9660 Extensions: RRIP_1991A

Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097152, limit=2097151
Feb 26 19:17:25 tux printk: 56 messages suppressed.
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524287
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097156, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524288
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097160, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524289
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097164, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524290
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097168, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524291
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097172, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524292
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097176, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524293
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097180, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524294
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097184, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524295
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097188, limit=2097151
Feb 26 19:17:25 tux Buffer I/O error on device sr0, logical block 524296
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097192, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097196, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097200, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097204, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097208, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097212, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097216, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097220, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097224, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097228, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097232, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097236, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097240, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097244, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097248, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097252, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097256, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097260, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097264, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097268, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097272, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097276, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097280, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097284, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097288, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097292, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097296, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097300, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097304, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097308, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097312, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097316, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097320, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097324, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097328, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097332, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097336, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097340, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097344, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097348, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097352, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097356, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097360, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097364, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097368, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097372, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097376, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097380, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097384, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097388, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097392, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097396, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097400, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097404, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097408, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097412, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097416, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097420, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097424, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097428, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097432, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097436, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097152, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=2097156, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274360, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274364, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274368, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274372, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274376, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274380, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274384, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274388, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274360, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=3274364, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911720, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911724, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911728, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911732, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911736, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911740, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911744, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911748, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911720, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=4911724, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585200, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585204, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585208, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585212, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585216, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585220, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585224, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585228, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585200, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=6585204, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299920, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299924, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299928, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299932, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299936, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299940, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299944, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299948, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299920, limit=2097151
Feb 26 19:17:25 tux attempt to access beyond end of device
Feb 26 19:17:25 tux sr0: rw=0, want=7299924, limit=2097151


There is some strange things:
1) I can read successfully all dvd's on WinXP with same drives
2) I can read successfully all dvd's on Gentoo but if there was no burning before (for example, after reboot)
3) even after this errors occurred drive can successfully burn dvd's


I've checked both drives on both systems (gentoo/winxp), with both dvd's types (r/rw), both file systems (UDF and iso9660) - any combination give me same results.
Of course, "want=" part may vary, but "limit" part is always "limit=2097151".


These bugs is very similar to my one:
  http://bugzilla.kernel.org/show_bug.cgi?id=7805
  http://ubuntuforums.org/showthread.php?t=362162
  http://ubuntuforums.org/showthread.php?p=2275217
  https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/193829
  http://www.google.com/search?q=limit%3D2097151


Steps to reproduce:
  see above
Comment 1 Andrew Morton 2008-02-26 10:54:53 UTC
argh, this one again.

We made some changes to the i_size handling recently which might help here.  Can
you please test 2.6.25-rc3?

Thanks
Comment 2 Oleg Kostyuk 2008-02-26 15:01:32 UTC
Just tested vanilla-sources-2.6.25_rc3 - all works fine with DVD drive, without any errors or even warnings.
But unfortunately, I have Realtek8168 NIC, and drivers from manufacturer site (http://www.realtek.com.tw/downloads/searchView.aspx?keyword=8168) does not compile with this kernel.

I'm upset now :(
What you can propose?
Should I try other kernel, may be some 2.6.24 ?
Comment 3 Andrew Morton 2008-02-26 15:51:53 UTC
hm, OK, I'm having trouble working out how we actually fixed the DVD
problem.

regarding the 8168: it looks like the in-kernel rtl8169 driver
is supposed to support that NIC?
Comment 4 Oleg Kostyuk 2008-02-28 13:43:34 UTC
Just tested with linux-2.6.24-gentoo-r2 - DVD works just fine, without any errors or warnings.

RTL8168 works well with in-kernel rtl8169 driver.
Seems bit slowly (~63.5 Mb/s instead of ~90, as before), but it's not fatal for me.
Btw, this in-kernel driver in .23 have problems with Samba and because of this I switched to manufacturer's driver.

As for me - all problems gone for now, and I stay on 2.6.24-r2.
But note that in .23 kernel problem still unresolved.

Andrew, I think that we can close this bug, if this acceptable for you.
If not - I can try to help you debug this case in .23 under your command.

And thanks for your help :)
Comment 5 Oleg Kostyuk 2008-03-20 09:14:00 UTC
Any progress?..
How to about close this bug?...
Comment 6 Amit Gurdasani 2008-05-22 14:09:34 UTC
>argh, this one again.
>
>We made some changes to the i_size handling recently which might help here. 
>Can
>you please test 2.6.25-rc3?
>
>Thanks

I see this issue with Debian's 2.6.25-2-amd64 kernel, which is based on x86_64 arch 2.6.25.3. #7805 suggested that pktcdvd was to blame; turning off packet writing worked around the problem.

http://bugzilla.kernel.org/show_bug.cgi?id=7805

(In Debian: run sudo invoke-rc.d udftools stop to disable packet writing, and edit /etc/default/udftools and comment out the DEVICES line, so that packet writing is never enabled.)
Comment 7 Thomas Meyer 2008-05-25 13:22:11 UTC
This bug is real and valid. It's just not so easy to trigger this bug.

The cause of this bug is describe in commit
7b3d9545f9ac8b31528dd2d6d8ec8d19922917b8 (Revert "scsi: revert "[SCSI] Get rid
of scsi_cmnd->done"")

Mr. Torvalds suggest to:
"
    The proper fix for that is probably to just do something like

        bdev->bd_inode->i_size = (loff_t)get_capacity(disk)<<9;

    in fs/block_dev.c:do_open() even for the cases where we're not the
    original opener (but *not* call bd_set_size(), since that will also
    change the block size of the device).
"
Comment 8 Alessandro Suardi 2008-06-04 13:45:25 UTC
Created attachment 16399 [details]
dmesg output of failure/eject/remount/success
Comment 9 Alessandro Suardi 2008-06-04 13:47:09 UTC
I think I have just triggered this yesterday and today on my laptop, and it's slightly funny, because ejecting and remounting the DVD gets rid of the errors.

I burn DVD on my desktop (old noname K7-800 still running FC6 with a custom 2.6.25-rc6-git2 kernel) and mount them on a laptop (Dell Latitude D610 running Fedora 9, running with a custom 2.6.26-rc4-git5 kernel).

[asuardi@sandman ~]$ grep cdrom /etc/fstab
/dev/sr0  /cdrom  udf,iso9660  pamconsole,exec,noauto 0 0

What I do is:

desktop -> burn DVD-R via growisofs, no error messages, burn appears OK
laptop  -> insert disc into drive, mount -r /cdrom
laptop  -> try and access the files on the cdrom -> get I/O failures
laptop  -> watch dmesg, see stuff starting like this

ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
SELinux: initialized (dev sr0, type iso9660), uses genfs_contexts
attempt to access beyond end of device
sr0: rw=0, want=3042220, limit=2097151
Buffer I/O error on device sr0, logical block 760554
attempt to access beyond end of device
sr0: rw=0, want=3042224, limit=2097151
Buffer I/O error on device sr0, logical block 760555
attempt to access beyond end of device
sr0: rw=0, want=3042228, limit=2097151
...

for a number of logical block errors, then it switches to just
 the "attempt" and the "sr0: ..." lines.

laptop -> from a gnome-terminal, type "eject"
laptop -> re-insert DVD, mount -r /cdrom
laptop -> access files, no problem
laptop -> watch dmesg, see

UDF-fs DEBUG fs/udf/lowlevel.c:43:udf_get_last_session: XA disk: no, vol_desc_start=0
UDF-fs DEBUG fs/udf/super.c:1920:udf_fill_super: Multi-session=0
UDF-fs DEBUG fs/udf/super.c:613:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs DEBUG fs/udf/super.c:637:udf_vrs: ISO9660 Primary Volume Descriptor found
UDF-fs DEBUG fs/udf/super.c:641:udf_vrs: ISO9660 Supplementary Volume Descriptor found
UDF-fs DEBUG fs/udf/super.c:649:udf_vrs: ISO9660 Volume Descriptor Set Terminator found
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
SELinux: initialized (dev sr0, type iso9660), uses genfs_contexts

 ...and NO errors.

This happened a few minutes ago and yesterday with two different discs.

Today's full dmesg attached above.
Comment 10 Atif Amin 2010-05-09 15:20:51 UTC
Your DVD writing goes beyong the access limit. Its page structure is not closed properly according to its writing speed. 

#  SU
# gedit /etc/media/dvd/hyurert.conf


Make changing to the file where written

Allow access speed Yes

with 

Allow Access speed No

and Writing Speed    16X

isnted of 80X

Note You need to log in before you can comment on or make changes to this bug.