automount documentation
Graham Perrin
grahamperrin at gmail.com
Fri Feb 12 19:16:37 UTC 2021
On 12/02/2021 08:04, Jacques Foucry wrote:
> Le jeudi 11 févr. 2021 à 21:08:48 (-0800), Kevin Oberman à écrit:
> Hello,
>
>> Is there documentation somewhereon setting up automount/automountd? The
>> only one I found is an old Forums post on a rather old version of automount
>> from when it was a port.. Beyond that, the man pages are useful, but not
>> really what I was hoping for. I searched and found no mention of automount
>> in the Handbook at all.
>>
>> I'm pretty sure that I had a tutorial a year ago when I tried setting up
>> automount, but I really didn't need it then. Now it would be extremely
>> handy.
>
> Have seen this: https://vermaden.wordpress.com/2018/10/11/freebsd-desktop-part-17-automount-removable-media/
>
I recently edited my /etc/rc.conf to include these lines:
# enable autofs(8), sysutils/automount or sysutils/dsbmd -- no more than one
#
<https://vermaden.wordpress.com/2018/10/11/freebsd-desktop-part-17-automount-removable-media/comment-page-1/#comment-18391>
autofs_enable="NO"
# <https://freeshell.de/~mk/projects/dsbmd.html>
dsbmd_enable="NO"
I'm currently experimenting with sysutils/automount (not to be confused
with the automount feature that's integral to FreeBSD) on FreeBSD
14.0-CURRENT. As far as I can tell it works, but it's not entirely
compatible with the Removable Devices feature of KDE Plasma.
In the example below, a Dolphin window to the file system opened
automatically shortly after connecting the USB drive:
% tail -f -n 0 /var/log/messages
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: ugen0.8: <Verbatim STORE N
GO> at usbus0
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1 on uhub1
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1: <Verbatim STORE N GO,
class 0/0, rev 2.00/1.00, addr 7> on usbus0
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1: SCSI over Bulk-Only;
quirks = 0xc100
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1:4:1: Attached to scbus4
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1
scbus4 target 0 lun 0
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: <Verbatim STORE N GO
5.00> Removable Direct Access SCSI device
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: Serial Number
070B29D2DF235960
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: 40.000MB/s transfers
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: 3815MB (7814304 512 byte
sectors)
Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: quirks=0x2<NO_6_BYTE>
^C
% lsblk da1
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
da1 2:33 3.7G GPT - -
<FREE> -:- 47K - - -
da1p1 2:34 3.7G ms-basic-data gpt/Basic /media/da1p1
<FREE> -:- 1.5M - - -
% pkg info --list sysutils/automount
automount-1.7.2:
/usr/local/etc/automount.conf.sample
/usr/local/etc/devd/automount_devd.conf
/usr/local/sbin/automount
/usr/local/share/licenses/automount-1.7.2/BSD2CLAUSE
/usr/local/share/licenses/automount-1.7.2/LICENSE
/usr/local/share/licenses/automount-1.7.2/catalog.mk
% cat /usr/local/etc/automount.conf
USERUMOUNT=YES
ATIME=NO
REMOVEDIRS=YES
FM="dolphin"
USER=grahamperrin
%
More information about the freebsd-questions
mailing list