Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2003 19:00:42 -0500
From:      David Kelly <dkelly@HiWAAY.net>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   Re: USB disk driveautomount?
Message-ID:  <200305151900.42736.dkelly@HiWAAY.net>
In-Reply-To: <200305160132.24938.ajacoutot@lphp.org>
References:  <200305152312.h4FNCes22153@thunder.trej.net> <200305160132.24938.ajacoutot@lphp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 15 May 2003 06:32 pm, Antoine Jacoutot wrote:
> On Friday 16 May 2003 01:12, Joachim Dagerot wrote:
> > I'm would like to create som automatic things that simply empties
> > the camera by moving out all files from it. But for being able to
> > do such a thing I need som kind of automounting for the usb-disk.
> > How can that be achieved?
>
> Take a look at usbd.conf, I think you can do that using it.

No doubt you *could* automount there, but I don't think you really want 
to for lack of a proper way to auto-umount. Once the media is removed 
it is too late to try to umount cleanly.

A CF card with camera images? Use /usr/ports/emulators/mtools which 
reads/writes MSDOS filesystems much the same as tar handles tapes, 
without mounting. The instant the mtools command (such as mdir, mcopy, 
mcd, etc...) completes the media is free and clean to remove. Also 
recommended (by me) for floppies.

-- 
David Kelly N4HHE, dkelly@hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305151900.42736.dkelly>