I'm on Debian unstable. I'm not familiar with Ubuntu, so I don't know whether it's configured to simply use hotplug, or whether it's using automount. If you've got Gnome 2.8 (which I haven't - yet), then it's probably using automount.

I installed automount (autofs), so that the USB drive would be unmounted a couple of seconds after I stopped looking at it (i.e. cd'ed out of it, or closed the relevant Nautilus window). In this way, it's unmounted before I physically detach it, and the buffers will be flushed. Well, that's the theory. Jim helped me get it working at the fix-up night, but I noticed last night that the drive was never unmounting.

I just want to know what I'm doing wrong with lsof. Even when I'm looking at the USB drive with Nautilus, I can't see any mention of the usb drive in the lsof output. Consequently, I don't know how to find what's keeping the drive mounted.

Rik Tindall wrote:
Douglas Royds wrote:

I plugged my USB drive in and viewed its contents using Nautilus. When I closed the Nautilus window, the drive remained mounted indefinitely.

Can someone remind me how to find out what's keeping it mounted?

I tried lsof, but couldn't find any reference to the usb drive at all, even when I was viewing it with Nautilus.


Sorry if it's too simplistic, but what does unplugging the USB drive do? And which distro please?

On Ubuntu Nautilus, I found that my USB camera auto-mounted and -unmounted flawlessly, plus desktop "sd0" icon popping up and disappearing.

Is there some purpose for keeping unmounted storage attached to the system?

hth,
rik



=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================



Reply via email to