Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    System not mounting filesystem contained in /etc/fstab on boot

    2.1 Snapshot Feedback and Problems - RETIRED
    2
    2
    1944
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Asgaroth last edited by

      Hi All,

      I'm not sure if this is pfsense 2.1 snapshot issue, but maybe you can confirm if for me. I have added a second drive to my soekris 5501 for squid cache usage but it does not appear to mount on pfsense boot. Here is what I have done thus far (from the very good tutorials found in these forums)

      [1] Installed pfSense 2.1 RC1 nano (snapshot) on on 4GB CF card
      [2] Configured pfSense per wizard
      [3] Logged in to a shell prompt and configured the second drive (ad1)
          (a) gpart create -s mbr ad1
          (b) gpart add -t freebsd ad1
          © newfs -U /dev/ad1
          (d) /etc/rc.conf_mount_rw
          (e) mkdir /squid
          (f) edit /etc/fstab and added the following line
                    /dev/ad1 /squid ufs rw,sync,noatime 1 1
          (g) /etc/rc.conf_mount_ro
          (h) mount /squid

      At this point everything looks good, I am able to see the file system, I can create/remove files etc etc.

      When I got to reboot the system, the /squid mount point is not automatically mounted. I checked that /squid exists and that the entries are listed in /etc/fstab. I cannot see any error messages anywhere either (unless I am looking in the wrong place).

      Am I doing something wrong (quite possible), or is this a bug with pfSense 2.1 RC1? I've not tried the 2.0.x versions of pfSense so I cannot say for sure that it happens there.

      Any pointers/suggestions would be greatly appreciated

      There are two major products of Berkeley, LSD and UNIX. We don't believe this to be strictly by coincidence.

      — Jeremy S. Anderson

      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        fstab on NanoBSD isn't used for mounting filesystems at boot time.

        If you want it mounted, add an earlyshellcmd to mount it, or even better, call a script that will try to mount it, run fsck if it fails, and then try again.

        Similar to what /etc/rc does for / and /cf

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post