[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't umount automounted drives



On Wed, 2 Feb 2011 21:20:42 -0700
Dave Thayer <debian1103320.dmthayer@recursor.net> wrote:

> On Tue, Feb 01, 2011 at 08:28:17PM -0800, briand@aracnet.com wrote:
> > Hello all,
> > 
> > I've got udev and automount working very nicely, EXCEPT,
> > regular users can't umount the mounted device.
> > 
> 
> If you're talking about aotofs/automount, isn't the point that the
> filesystem is umounted without user interaction?  IOW, cd or open a
> file under the mountpoint, and the FS mounts. Close the file or cd out
> and the FS should umount itself after the timeout set in
> /etc/auto.master.

it's only unmounted after a timeout.  so for example if I simply copy a
bunch of files to a flash drive, it will not umount after the copy
completes.  for one thing the data may not get written because it's
sitting in io buffers.

you can't just yank the flash drive until the buffer is flushed.

so the best thing to do, I think, is to umount and wait for the
flashing light to stop, or busy wheel to go away, etc..

using the flush option for the mount command helps a lot.


Brian


Reply to: