OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • (solved) Can't automount a USB drive
« previous next »
  • Print
Pages: [1]

Author Topic: (solved) Can't automount a USB drive  (Read 1691 times)

greffter

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
    • View Profile
(solved) Can't automount a USB drive
« 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? 
« Last Edit: February 15, 2021, 10:49:23 pm by greffter »
Logged

greffter

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
    • View Profile
Re: Can't automount a USB drive
« Reply #1 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • (solved) Can't automount a USB drive
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2