I noticed that sometimes filesystem get mounted, but don't appear in the FM. To locate the problem, I created the following script:
#!/bin/sh -e
touch $HOME/$(basename $1)
and pointed automount.conf to it:
FM=/home/bacon/test.sh
MNT_GROUP=operator
MNT_MODE=775
It appears as if it it not always being invoked by automount. The test medium is a FreeBSD install thumb drive. The output below shows the three partitions mounted by automount (cd1, da0s1, and da0s2a), but cd1 is missing from the files created by the script. Sometimes the script is invoked for all three mounts, sometimes for only two of them. Which one is missed appears to be random. Other times, I might see only cd1 and da0s2a created, for example.
FreeBSD moray.acadix bacon ~ 1011: ls
Biostar/ Downloads/ Prog/ da0s1
Books/ Grad-school-biosci/ Save/ da0s2a
Coral@ Microsyn/ VirtualBox VMs/
Desktop/ Movies/ scripts/
Documents/ New-pics/ test.sh*
FreeBSD moray.acadix bacon ~ 1012: df
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 447G 132G 279G 32% /
devfs 1.0K 1.0K 0B 100% /dev
fdescfs 1.0K 1.0K 0B 100% /dev/fd
procfs 4.0K 4.0K 0B 100% /proc
linprocfs 4.0K 4.0K 0B 100% /compat/linux/proc
tmpfs 9.7G 4.0K 9.7G 0% /compat/linux/dev/shm
linsysfs 4.0K 4.0K 0B 100% /compat/linux/sys
devfs 1.0K 1.0K 0B 100% /compat/linux/dev
fdescfs 1.0K 1.0K 0B 100% /compat/linux/dev/fd
map -hosts 0B 0B 0B 100% /net
/dev/cd1 6.7M 6.7M 0B 100% /media/cd1
/dev/da0s1 32M 875K 31M 3% /media/da0s1
/dev/da0s2a 1.1G 1.0G -15M 102% /media/da0s2a
I noticed that sometimes filesystem get mounted, but don't appear in the FM. To locate the problem, I created the following script:
and pointed automount.conf to it:
It appears as if it it not always being invoked by automount. The test medium is a FreeBSD install thumb drive. The output below shows the three partitions mounted by automount (cd1, da0s1, and da0s2a), but cd1 is missing from the files created by the script. Sometimes the script is invoked for all three mounts, sometimes for only two of them. Which one is missed appears to be random. Other times, I might see only cd1 and da0s2a created, for example.