[opensuse] Device notifier sort of broken?
Put this in the Suse forums, but no joy, so thought I would try here... Have installed 11.2 and basically pretty impressed, but... a few little problems starting to show. The current one is device notifier (or an associate), which will not allow any device to be unplugged once it has been inserted. If I insert a CD/DVD, or plug in any USB drive, and immediately try and unplug, I always get the message "Could not unmount the device. One or more files on this device are open within an application" (or similar). I get no output from : john@boss:/> fuser -m /dev/sdd1 john@boss:/> OR john@boss:/> lsof /dev/sdd1 john@boss:/> and, yes, it does work if I list other drives, and it is the correct device.... :-) But,can unmount at the command line: john@boss:/> umount -v /dev/sdd1 john@boss:/> Looks like the device notifier may be broke...? How to fix? Thanks, John. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John Bennett wrote:
If I insert a CD/DVD, or plug in any USB drive, and immediately try and unplug <snip>
Looks like the device notifier may be broke...? How to fix?
this is not meant to be funny: have you tried a little patience? or, i wonder if you are using 'old school' techniques to manually mount USB or CD/DVDs? you do know that that is all now automatic (on modern hardware, are you running an antique?)...just put it in and WAIT a SECOND or three and let it run its routines to detect, label, mount, and announce it is ready to work/play.. THEN, if you unplug/remove it, it _should_ detect that (maybe not in the next nanosecond) and run its routines to free the device/port, etc..and be ready for another plug-in.. now, if you plug in something and unplug it (as you wrote) "immediately" it might get 'confused'...does that mean "the device notifier may be broke" or maybe should you say "i can plug in and remove any device fast enough to confuse the current automatic features...when will it get faster?".. the answer: Soon, probably. DenverD -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
DenverD said the following on 11/25/2009 07:54 AM:
this is not meant to be funny: have you tried a little patience?
or, i wonder if you are using 'old school' techniques to manually mount USB or CD/DVDs? you do know that that is all now automatic (on modern hardware, are you running an antique?)...just put it in and WAIT a SECOND or three and let it run its routines to detect, label, mount, and announce it is ready to work/play..
THEN, if you unplug/remove it, it _should_ detect that (maybe not in the next nanosecond) and run its routines to free the device/port, etc..and be ready for another plug-in..
How long, one asks, how long does one have to wait? Well, it all depends. If the machine was in a rapid spin-loop at the kernel, inspecting the CD-ROM and USB ports then it would be virtually instantaneous, but you wouldn't be getting any other work done :-) So a process wakes up every few seconds and checks. Well roughly, depending on other things like load and scheduling. I see in my process tree (trimmed to fit for readability) root hald-addon-input: Listening on /dev/input/event7 /dev/input/event6 /dev/input/event8 /dev/input/event4 /dev/input/event5 /dev/input/event0 /dev/input/event9 root hald-addon-storage: polling /dev/sdc (every 2 sec) root hald-addon-storage: polling /dev/sdb (every 2 sec) 105 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket root hald-addon-storage: polling /dev/sr0 (every 2 sec) So it looks like in this case its every two seconds. Where is that set? I don't know. I also don't know why sometimes its 16 seconds and why sometimes its "disabled' and why the ACPID listener isn't root or what that significance is. Maybe someone can tell me. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/25/2009 4:09 AM, John Bennett wrote:
If I insert a CD/DVD, or plug in any USB drive, and immediately try and unplug, I always get the message "Could not unmount the device. One or more files on this device are open within an application" (or similar).
I'm not sure what you mean by "immediately try and unplug", but it sounds like a Bad Idea.(tm). You should be able to click on the Device Notifier in the Panel use the Eject icon thereon to eject the drive. Works all the time for me that way. Even on thumb drives, this is the only safe way. This Eject icon may refuse to release the device if it is in use. If you mount a disk and then open it with Kong or Dolphin you have to close the file manager before it will free the device, or at least navigate away from looking at that device. Even with no file open, having file manager looking at a directory on the device, or having a shell having its "pwd" in that device will keep it locked. (But I suspect you knew this much already). However, If you have Beagle or some other background indexer running it might grab the device and give the same symptoms. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, Nov 26, 2009 at 6:03 AM, John Andersen <jsamyth@gmail.com> wrote:
On 11/25/2009 4:09 AM, John Bennett wrote:
If I insert a CD/DVD, or plug in any USB drive, and immediately try and unplug, I always get the message "Could not unmount the device. One or more files on this device are open within an application" (or similar).
Hi all, Thanks for the replies. Yes, I have been using the device notifier for at least for 12 months and know how it is supposed to work... Immediately was probably the wrong term, by immediately, I meant that no other 'stuff' was done in the interim... Plug a device in - give it 15 seconds or so to detect (which it does - perfectly) probably then click the device in device notifier to mount/open a dolphin or similar window - wait - close the ensuing window, having done NOTHING else - ie no processes running on the drive (caused by me, anyway), make sure NO other windows have popped up for anything, THEN click the device notifier to unmount the device - and the ensuing: "Could not unmount the device. One or more files on this device are open within an application" So, yes, I think I have given it a chance. This used to always work for me on 11.1.... Thanks, John. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anton Aylward
-
DenverD
-
John Andersen
-
John Bennett