You know, I was just working on a custom mounting solution because none of the others worked for me.
automount just mounts devices and they can't be read or just some jankiness, like adding stuff like this
Code:
/media -media -nosuid,-m=770,-L=en_US.UTF-8
to auto_master, but it still doesn't work properly.
sysutils/automount just never gets locale correct so my documents are useless.
Even after configuring the automount.conf file.
And here we go again with the nightmare of AUTOFS'
-media
special map. I've never managed to make it work neither in BSD nor in Linux, to the point I came to miss the old days of Berkley's
amd(8), which is by the way still available (
sysutils/am-utils), albeit deprecrated (I guess NetBSD is the only one to keep using it, as all other Linux distros, BSDs and OpenIndiana are with AUTOFS). There are some who claim it works, for me it doesn't, no matter what (guess I'm missing something). In Linux, as long as your DE or File Manager takes care of it, everything's fine, but in FreeBSD you need to completely rely on
autofs(5), and it's configuration file:
/etc/auto_master.
The awesome man page available
auto_master(5) helps one to understand how mount points and maps (direct , indirect,special) work(useful also for Linux usage). I read it carefully countless times, and created tons of maps with custom properties and mountpoints, always respecting the given syntax: the map is created and mounted as expected, but devices somehow keep to be mounted under /media.
So far there's only a gross workaround I managed to find: comment all lines inside
/etc/auto_master, so that no mountpoint, nor map is specified or loaded (=as if file were blank). Devices will be then mounted inside
/media, but without the
-media
map loaded first on the folder, which for me turns in devices being mounted read-only. Now change ownership and permissions of
/media
folder:
Code:
chown -R username:wheel /media
chmod 0774 /media
Job done, devices are automounted read/write, works also with FUSE
As for problems with files being displayed, I think you should load
msdos_iconv.ko