USB disk driveautomount?

David Kelly dkelly at HiWAAY.net
Thu May 15 17:00:46 PDT 2003


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 at hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.


More information about the freebsd-questions mailing list