Open files on ejected media cause automount of new media to break
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Open a file on a cdrom, perhaps as simply as changing the working directory of a shell to a location in /media/cdrom, then eject the disc. The filesystem is forcibly unmounted, so it no longer appears in df, mount, or /proc/mounts, though it appears to still actually be sort of mounted since you can run stat . from the shell. The kernel begins complaining filling /var/log/kern.log with messages like:
VFS: busy inodes on changed media or resized disk sr0
At this point the drive has vanished from view in nautilus. It no longer appears on the places menu or in the computer folder. If you insert a different disc it also will not show up in nautilus and you can not mount it through the gui until whichever processes that still have file descriptors open on files on the ejected media are closed.
Changed in linux (Ubuntu): | |
status: | New → Triaged |
Note that I first noticed this because I had been playing music on a dvd+rw with Rhythmbox and long after I had stopped listening to musc, I hit the eject button on the drive and put the livecd in the drive to try and make a bootable usb flash stick with the boot disk creator, but apparently Rhythmbox still had open file descriptors on the dvd+rw so the livecd would not show up. Playing music on a cd/dvd then trying to switch to other media without forcing Rhythmbox to close seems a fairly likely scenario for the average user, especially since clicking the close window button on Rhythmbox normally only hides it, keeping it running but visible only in the system tray.