Bug 11385 - cannot mount dvd
Summary: cannot mount dvd
Status: REJECTED INVALID
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Tejun Heo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 12:26 UTC by weilo
Modified: 2008-08-30 02:59 UTC (History)
0 users

See Also:
Kernel Version: 2.6.25.14-108.fc9.i686
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description weilo 2008-08-20 12:26:34 UTC
Latest working kernel version:2.4.22
Earliest failing kernel version:kernel 2.6.25.14-108.fc9.i686
Distribution:Fedora 9
Hardware Environment: Pentium III-1GHz
                      384meg RAM
                      Toshiba SD-C2402 dvdrom(can only work on DVD-R and CD,
not DVD+R in specification)

Software Environment: KDE, haldaemon-automount(auto detect hardware?)
Problem Description:

can only mount CD, cannot mount DVD-R (fedora core 1 kernel 2.4.22-1.2199.nptl
can mount both) disable haldaemon and use mount command cannot mount either.

--------------------------------------
mount CD result on /var/log/messages
--------------------------------------
Aug 18 07:47:54 localhost kernel: end_request: I/O error, dev sr0, sector 0
Aug 18 07:47:54 localhost kernel: Buffer I/O error on device sr0, logical block
0
Aug 18 07:53:09 localhost kernel: end_request: I/O error, dev sr0, sector
747008
Aug 18 07:53:09 localhost kernel: Buffer I/O error on device sr0, logical block
93376
Aug 18 07:53:09 localhost kernel: end_request: I/O error, dev sr0, sector
747008
Aug 18 07:53:09 localhost kernel: Buffer I/O error on device sr0, logical block
93376
------------ repeat about 10 times --------------
Aug 18 07:53:19 localhost hald: mounted /dev/sr0 on behalf of uid 500

--------------------------------------
mount DVD-R result on /var/log/messages
--------------------------------------
Aug 18 07:44:39 localhost kernel: sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
Aug 18 07:44:39 localhost kernel: sr 1:0:0:0: [sr0] Sense Key : Medium Error
[current] 
Aug 18 07:44:39 localhost kernel: sr 1:0:0:0: [sr0] Add. Sense: Random
positioning error
Aug 18 07:44:39 localhost kernel: end_request: I/O error, dev sr0, sector
9193856
Aug 18 07:44:39 localhost kernel: Buffer I/O error on device sr0, logical block
1149232
Aug 18 07:45:07 localhost kernel: sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
Aug 18 07:45:07 localhost kernel: sr 1:0:0:0: [sr0] Sense Key : Medium Error
[current] 
Aug 18 07:45:07 localhost kernel: sr 1:0:0:0: [sr0] Add. Sense: Random
positioning error
Aug 18 07:45:07 localhost kernel: end_request: I/O error, dev sr0, sector
9193968
Aug 18 07:45:07 localhost kernel: Buffer I/O error on device sr0, logical block
1149246
--------- repeat forever with different sector and logical block No.--------

Steps to reproduce: insert DVD into dvdrom drive
Comment 1 Tejun Heo 2008-08-20 20:02:45 UTC
Can you please try different, preferably pressed DVDs?  The drive is reporting medium error which is the drive's way to tell the kernel that it just can't read data off the media reliably.
Comment 2 weilo 2008-08-21 07:54:54 UTC
what do you mean by "pressed DVDs"? the dvdrom can only work on DVD-R, and most commercial DVDs are DVD+R. All the DVDs I tried are burned by myself into DVD-R, that include Fedora 6, 8 and 9(use k3b to burn from downloaded iso), and a dvd movie, and fedora core 1(on the same machine) can mount them, so it should not be hardware problem.

what kind of change I should make to try to use ide-cd and see if that work? since fedora 1 use that and working.
Comment 3 weilo 2008-08-23 12:36:34 UTC
more of the problem of udev than driver, kill the following process(more than once) after mount command will be able to mount

6971 ?        D<     0:00 /lib/udev/scsi_id --export --whitelisted -d /dev/.tmp-11-0

close it?
Comment 4 Tejun Heo 2008-08-29 04:10:08 UTC
Pressed as opposed to recorded.  Pressed media usually have better read characteristics than recorded ones.  Hmm... that's strange.  Media error goes away if you kill scsi_id?  Is it reproducible?
Comment 5 weilo 2008-08-29 14:36:04 UTC
I can only reproduce vol_id but scsi_id
 5283 ?        D<     0:00 /lib/udev/vol_id --export /dev/.tmp-11-0

killing vol_id does stop media error, my bash_history does show I killed both 6971 and 5283, but cannot bring up scsi_id now. next time when I reinstall the whole system I will take a look. 

I disabled the /etc/udev/rules.d/60-cdrom_id.rules, now the dolphin(auto popup) is mounting ok, but mount command still has error.
Comment 6 Tejun Heo 2008-08-30 02:59:44 UTC
Okay, please post when you find out more.  Thanks.

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