I swear I had this working with earlier versions but now I've switched my desktop from Fedora to FreeBSD 11.1 and I can't get the USB sticks or my camera to mount up.
I'm following the manual:
17.4. USB Storage Devices
Contributed by Marc Fonvieille.
17.4.2. Automounting Removable Media
My /etc/auto_master looks like:
In /etc/devd.conf I have the following uncommented:
In /etc/rc.conf I have:
I have rebooted.
When I plug in a USB stick (or my old mass storage camera ) I get the usual 6 or 7 lines of messages on tty0 so I'm pretty sure that autofs is doing it's part.
I can also see the device using either
The net portion seems to work, my NFS shares are automatically being mounted in my /net folder.
Nothing gets mounted in my /media folder.
I also note that when I watch my /dev folder and insert the usb stick it appears as da1s1, but
results in
mount: /dev/da1s1: Invalid argument
One other note:
The documentation at 17.4.2. Automounting Removable Media
instructs me to run
but that is not possible in 11.1, automount returns error: "unknown directive "reload"
Which makes me suspect that this section of the handbook has fallen behind today's 11.1 updates and maybe that's why following it results in failure.
Can anyone point me in the right direction?
I'm following the manual:
17.4. USB Storage Devices
Contributed by Marc Fonvieille.
17.4.2. Automounting Removable Media
My /etc/auto_master looks like:
Code:
# $FreeBSD: releng/11.1/etc/auto_master 310007 2016-12-13 04:44:06Z dteske $
#
# Automounter master map, see auto_master(5) for details.
#
/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 -nosuid,noatime
#/- -noauto
/media -media -nosuid
In /etc/devd.conf I have the following uncommented:
Code:
notify 100 {
match "system" "GEOM";
match "subsystem" "DEV";
action "/usr/sbin/automount -c";
};
In /etc/rc.conf I have:
Code:
autofs_enable="YES"
I have rebooted.
When I plug in a USB stick (or my old mass storage camera ) I get the usual 6 or 7 lines of messages on tty0 so I'm pretty sure that autofs is doing it's part.
I can also see the device using either
usbconfig
or camcontrol devlist
The net portion seems to work, my NFS shares are automatically being mounted in my /net folder.
Nothing gets mounted in my /media folder.
I also note that when I watch my /dev folder and insert the usb stick it appears as da1s1, but
mount /dev/da1s1 /media
results in
mount: /dev/da1s1: Invalid argument
One other note:
The documentation at 17.4.2. Automounting Removable Media
instructs me to run
# [B]service automount reload[/B]
but that is not possible in 11.1, automount returns error: "unknown directive "reload"
Which makes me suspect that this section of the handbook has fallen behind today's 11.1 updates and maybe that's why following it results in failure.
Can anyone point me in the right direction?