Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Aug 2008 14:01:12 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        "Brian Miller" <bmiller@lablaw.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Auto Mount USB
Message-ID:  <20080818140112.8451549e.wmoran@potentialtech.com>
In-Reply-To: <7FB5330A2962844C9F95E25CEFA021956F4D91@labex.labnet.lablaw.org>
References:  <7FB5330A2962844C9F95E25CEFA021956F4D90@labex.labnet.lablaw.org> <20080818122638.c0635d7b.wmoran@potentialtech.com> <7FB5330A2962844C9F95E25CEFA021956F4D91@labex.labnet.lablaw.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Brian Miller" <bmiller@lablaw.org>:

> I started looking at amd and it is just what I need but it doesn't
> appear to be available? From what I have read it should be part of
> FreeBSD? I see that I can download a tar from www.am-utils.org should I
> do that or is there a "Package" available for it? Is there something
> similar to "YUM" for FreeBSD?

Actually, I found this spiffy port while looking for a good reference
to point you to: cd /usr/ports/sysutils/automounter && make install
then read man automounter for setup instructions.

Keep in mind that the reason this is less than simple is because
automatically mounting removable media is a huge security risk.  The
fact that it's so convenient that most people ignore the security
risk does not mitigate the risk in any way.

> You are correct that I was not dismounting then removing the drive. So
> that makes sense. Next question is how/can I free them up? Tried "umount
> /dev/da0s1" but it fails with "Device not configured"

umount the mountpoint, not the device.  I.e. umount /usr, not /dev/ad0s1g

-- 
Bill Moran
http://www.potentialtech.com



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