Other autofs, not properly working.

rigoletto@

Developer
Hi,

I am trying to use autofs to mount usb devices. I am using a FAT32 formated pendrive to test it.

The problems I am experiencing are:
  1. the device is not mounted at first time after boot unless running #automount -c
  2. after that it is mounted but it does not display what is inside it.
  3. however, if I do not uncomment the /media line on /etc/auto_master it shows the files inside the device. But also have two extra devices on /media what do not "exist".
/etc/rc.conf
Code:
...
autofs_enable="YES"
...

/etc/devd.conf
Code:
# Discard autofs caches, useful for the -media special map.
notify 100 {
    match "system" "GEOM";
    match "subsystem" "DEV";
    action "/usr/sbin/automount -c";
};

/etc/auto_master
Code:
/net        -hosts        -nobrowse,nosuid,intr
# When using the -media special map, make sure to edit devd.conf(5)
# to move the call to "automount -c" out of the comments section.
/media        -media        -nosui

So, what is wrong or missing?

11.0-RELEASE-p1

EDIT: the user is in the operator group.

Thank you!
 
Top