OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: greffter on February 14, 2021, 01:42:29 am

Title: (solved) Can't automount a USB drive
Post by: greffter on February 14, 2021, 01:42:29 am
I can't seem to get my 4Gb USB drive to automount at load. I plan on symlinking `/var/log` and `/tmp` to this drive to save writes to my root SSD. 

Code: [Select]
root@opnsense:/ # gpart show da0
=>     40  7856048  da0  GPT  (3.7G)
       40  7856048    1  freebsd-ufs  (3.7G)

Code: [Select]
root@opnsense:/ # cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/gpt/rootfs / ufs rw,noatime 1 1
/dev/gpt/swapfs none swap sw 0 0
/dev/da0p1 /mnt/usb_drive ufs rw,noatime 2 2

Code: [Select]
root@opnsense:/ # df -a -H
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs    107G    2.3G     96G     2%    /
devfs              1.0k    1.0k      0B   100%    /dev
devfs              1.0k    1.0k      0B   100%    /var/dhcpd/dev
devfs              1.0k    1.0k      0B   100%    /var/unbound/dev

Running `mount -a` successfully mounts the drive.  Any idea why it's not mounting when I restart? 
Title: Re: Can't automount a USB drive
Post by: greffter on February 15, 2021, 10:48:23 pm
Oddly, seems to have resolved itself.  Rebooted today and the drive mounted.  I changed nothing from the config above.  anyhow, going to mark this as solved due to a ghost in the machine