GNOME Bugzilla – Bug 86114
unmounting of removable devices sometimes fails because of FAM accessing the trash folder in them
Last modified: 2004-12-22 21:47:04 UTC
Hmm. I thought I had reported this earlier already, but couldnt find such a bug anywhere. Hrmh. I have a firewire harddisk that is very useful for moving things around between machines etc. This is set as user mountable, so I can mount and umount it myself as a regular user. Thus it shows up correctly in the disks -menu in nautilus. However, there is a problem with unmounting it sometimes. Nautilus correctly tells me the device is busy and it cannot be unmounted. Looking at "lsof /mnt/fwdisk" I see a famd monitoring the /mnt/fwdisk/.Trash-tigert/" folder and this makes umount fail. To "fix" the problem I need to su to root and kill famd, umount the disk then, and restart Nautilus (to get FAM working again). Sometimes it works okay though, but I am not sure if it is simply "if you have stuff in the trash in the removable device" - it seems less straightforward. But at least if you dont write to the disk at all it will usually umount it okay. In short, this sucks for removable devices, thus setting this "major" - it is very confusing for non-unix hax0rs to figure out why the "device is busy" and how to fix it without rebooting. Also filing this in the "Trash" component since it is more related to that than to "Desktop" as there is no "removable devices" component.
Confirmed, same thing happens with my USB drive. It'll happen to all sorts of removable devices such as cameras and stuff, which Nautilus is really sweet for. ;-) I'd say major is appropriate.
It is especially annoying since I need to su root and do the kill-fam-and-nautilus if I want to unplug the drive to suspend the laptop for example.. Looks like the problem happens every time if I write to the disk (rename, delete files, copy new files etc) but does not necessarily happen if I just mount the disk and read from it without writing anything there.
*** Bug 69706 has been marked as a duplicate of this bug. ***
Is this the same as what is left of 84919, Dave?
[Search for 'luis spamming' to catch every instance of this email.] In order to better track Sun's bugs for Sun and Ximian's internal use, I've added a temporary keyword to some bugs. I apologize for the spam, and for the use of an additional keyword, but this is the best way for Sun to track 'it's' bugs without interfering with the community's own triage and bug behavior. If you have any questions or objections, please drop me a note at louie@ximian.com or email bugmaster@gnome.org for more open discussion.
Marking a duplicate of 84919. *** This bug has been marked as a duplicate of 84919 ***
Added new notes to 84919, which has been marked closed. Hope to re-open.