[Bug 557565] New: mounting dvd disc in auto mode is killing the drive
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c0 Summary: mounting dvd disc in auto mode is killing the drive Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bluedzins@wp.pl QAContact: qa@suse.de Found By: --- Blocker: --- When trying to get logs for this report (also for noisy working of the drive): https://bugzilla.novell.com/show_bug.cgi?id=537056 I noticed another issue with the drive and how Opensuse handles it. Let's say I have disc with ISO9960 format. When I mount it in such mode (iso9660) disc is mounted immediately and no noise is made. However when I mount it in auto mode opensuse probes the disc in such way, that a lot of noise is made (like the drive was falling apart) it takes a long time to mount it, and it sounds like the disc is corrupted. Very, very similar report (now fixed issue) was with mounting UDF discs: https://bugzilla.novell.com/show_bug.cgi?id=467174 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c Maciej Pilichowski <bluedzins@wp.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c1 Maciej Pilichowski <bluedzins@wp.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical --- Comment #1 from Maciej Pilichowski <bluedzins@wp.pl> 2009-11-28 07:35:34 UTC --- I tested 11.2 -- it is even worse than 11.1 and while testing I realize how bad this issue is. The problem is that opensuse uses automounting. I personally switch to manual mounting, so I didn't spot this before: 1) when you insert a disc, there is a lot of noise during automount 2) strange, but automounting after some struggle fails (disc is not mounted) 3) the user has to know how to mount it, so she/he mounts it manually 4) it works, but probing makes a lot of noise again, and in 11.2 it lasts... 3 minutes and 38 seconds (yes, probing itself) Again, for comparison, when you know in advance this is iso9660 mounting is silent and it is done just after you hint [enter]. I am upgrading the importance, because such long probing is not without effect on mechanism in drive. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c2 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jack@novell.com, | |jeffm@novell.com, | |teheo@novell.com Info Provider| |bluedzins@wp.pl --- Comment #2 from Jeff Mahoney <jeffm@novell.com> 2009-12-01 22:11:27 UTC --- Is this somehow different than your report at bnc#537056 ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c3 Maciej Pilichowski <bluedzins@wp.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|bluedzins@wp.pl | --- Comment #3 from Maciej Pilichowski <bluedzins@wp.pl> 2009-12-02 06:12:05 UTC --- Those are two different reports, about the same issue though -- the cracking noise of the drive. I doubt fixing probing for automount can fix anything related to copying data -- previously I reported noise when mounting UDF discs (this report is about ISO9660), it was fixed, and the other issues remain intact. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |537056 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c4 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |hvogel@novell.com Info Provider| |bluedzins@wp.pl --- Comment #4 from Jan Kara <jack@novell.com> 2009-12-03 13:31:03 UTC --- Hmm, I doubt this is really a kernel problem. I'd rather think that it is a result of userspace library performing the media probing and trying to read various things from disk. If I'm right, the library is libblkid, a part of util_linux. Adding it's maintainer to CC. Maciej, to verify this, could you stop automounting and try whether running blkid(1) on your drive also makes those strange noises? Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c5 Maciej Pilichowski <bluedzins@wp.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|bluedzins@wp.pl | --- Comment #5 from Maciej Pilichowski <bluedzins@wp.pl> 2009-12-03 15:17:47 UTC --- Automount off, after executing: blkid /dev/sr0 I got the the same cracking noise, _but_ the noise lasted around 10-15 seconds. On second consecutive run, no noise. I changed the disc. No noise. I changed the disc back. No noise. Then I executed mount (with -t auto) --> cracking noise (for long time). I changed another disc. blkid without noise, mounting with cracking noise. Btw. when I say blikd didn't cause any noise it might be important the answer was immediate (just after hitting enter). Only the first time I had to wait a little. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c6 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |hvogel@novell.com --- Comment #6 from Jan Kara <jack@novell.com> 2009-12-03 15:28:15 UTC --- Thanks for testing. So it obviously works a bit differently than I thought ;). Anyway, Henne, any thoughts what exactly is the difference and how to avoid that long mounting times with -t auto? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c7 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium CC| |kasievers@novell.com Info Provider|hvogel@novell.com |kasievers@novell.com AssignedTo|kernel-maintainers@forge.pr |jeffm@novell.com |ovo.novell.com | --- Comment #7 from Jeff Mahoney <jeffm@novell.com> 2009-12-17 21:50:00 UTC --- The difference is that blkid uses a cache and mount -t auto doesn't. It uses the cache if you're trying to find a device by UUID or label, since it avoids scanning all the devices. The code is actually there to use the cache for looking up information by devname, but it's disabled. My guess is that the reason for doing so is that the cache doesn't do any real verification. It times out after 200 seconds, but the only other method it uses to see if the information is valid is if the timestamp on the device file has changed. A media change event doesn't cause the timestamp to be updated. Kay, what do you think about having udev touch the device file when there's a media change event? It would cause the cache to expire immediately so there wouldn't be a race there. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c8 --- Comment #8 from Kay Sievers <kasievers@novell.com> 2009-12-18 07:01:45 UTC --- With race, you mean the direct repeated blkid calls without re-validation after media change? They should not happen with mount(8). blkid(8) and mount(8) use the same library/cache file. But mount(8) uses it only as a hint and always forces a verify of the result of the libblkid call, so there should be no race here, only in the "debugging tool" blkid(8), when called in cache lookup mode, which is the default behavior. Udev also always calls blkid(8) on every media change detection, but bypasses any logic which uses any cache file or scanning of other devices, and will therefore always cause a direct read of the device directly with the first open() of the device node after a media change. It's likely the probing for the filesystem type itself, which causes the noisy seeks on the drive. We also try to find the name(label) of the inserted media which involve seeks. I don't think there is an obvious fix for the media scanning/seeking, which seems to make an unusual sound on this specific drive. If it helps, sure, udev could be made to update the timestamp of the device node on media change, but that would not change the issue mentioned here, right? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c9 --- Comment #9 from Kay Sievers <kasievers@novell.com> 2009-12-18 20:52:31 UTC --- Note: upstream udev will now update the mtime of nodes and links with every event the kernel sends, and udev handles/updates the state of the device. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c10 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|kasievers@novell.com | --- Comment #10 from Jeff Mahoney <jeffm@novell.com> 2009-12-23 15:35:17 UTC --- Yeah the idea was that if udev calls blkid on every media change event then perhaps mount could use the cache as well so long as it was properly invalidated in the case of quick media changes. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c11 --- Comment #11 from Kay Sievers <kasievers@novell.com> 2009-12-23 16:44:02 UTC --- We can not really be entirely sure that something polls the drive for media changes. If polling in HAL/udisks is disabled the cache will not be up-to-date. There is also the poll-interval where the data is not updated for a few seconds. The cache today, is the udev database/symlinks. The blkid-built-in cache is not useful anymore. Mount/libblkid uses the udev information, but it forces a re-validate of the retrieved data to be sure it passes the right filesystem-type to the kernel. This safety check was added because mounting the wrong type may cause the kernel to destroy data. It happily accepts, mounts, writes and destroys an actual non-FAT filesystem, if asked to mount it as FAT. It succeeds here if there are only a few FAT sectors left from an old formatting. We see such left-over signatures pretty frequently, and only recently the common filesystem tools got fixed to wipe old signatures before re-formatting. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557565 http://bugzilla.novell.com/show_bug.cgi?id=557565#c12 --- Comment #12 from Jeff Mahoney <jeffm@novell.com> 2009-12-23 16:54:26 UTC --- Ok, that's the explanation for not using the cache that I was hunting for. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=557565 https://bugzilla.novell.com/show_bug.cgi?id=557565#c13 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #13 from Jeff Mahoney <jeffm@novell.com> 2011-01-17 16:43:59 UTC --- openSUSE 11.1 is out of maintenance. If you are able to reproduce this with openSUSE 11.3 or (preferred) openSUSE Factory, please re-open. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com