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

    Nfs fstab mount fails, succeeds manually; mount point deleted on reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 6.1k Views
    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.
    • C
      clarknova
      last edited by

      2.0-BETA4 (i386)
      built on Mon Oct 25 15:00:24 EDT 2010
      FreeBSD 8.1-RELEASE-p1
      Platform nanobsd (2g)

      This works:

      /etc/rc.conf_mount_rw
      mkdir /var/squid
      mount -t nfs 192.168.255.253 /var/squid
      
      

      However, when I reboot, /var/squid no longer exists. I do not have the squid package installed, so will the directory survive a reboot once I install the package? I don't understand why it's disappearing. Is there a better place to create my mount point, seeing that I can move the squid cache directory?

      Next problem, I put the following into /etc/fstab:

      
      192.168.255.253:/mnt/squid /var/squid nfs defaults 1 1
      
      

      but this is ineffective both at boot (maybe because the parent directory is deleted), and when trying to manually mount it thus:

      mount /var/squid
      fstab: /etc/fstab:4: Inappropriate file type or format
      fstab: /etc/fstab:4: Inappropriate file type or format
      mount: /var/squid: unknown special file or file system
      
      

      And likewise:

      mount -a
      
      fstab: /etc/fstab:4: Inappropriate file type or format
      
      

      Help?

      db

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

        Well /var and /tmp on nanobsd are RAM disks. Their contents are lost when power is removed.

        For something to stay constant and visible from both nanobsd OS slices you could put it in /conf/

        As for the fstab contents, you probably just have something that isn't quite formatted right. Where you have "defaults" you should have "rw"

        You probably really want this:

        192.168.255.253:/mnt/squid /conf/squid nfs rw 0 0
        

        Though I am no nfs expert, so someone else might have better info.

        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
        • C
          clarknova
          last edited by

          Thanks, I will continue playing with this. I think embedded + nfsquid is a cool way to go.

          db

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

            Keep in mind, too, that when you do a firmware update it will switch to the alternate slice and use a fresh fstab file, so your changes will be left behind on the old slice.

            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
            • L
              lol
              last edited by

              Hi,
              @jimp:

              Well /var and /tmp on nanobsd are RAM disks. Their contents are lost when power is removed.

              For something to stay constant and visible from both nanobsd OS slices you could put it in /conf/

              …

              Where is the file exactly (/conf/) ?

              A free pastbin without advertising…
              French Debian Community's Wiki

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

                On NanoBSD there are three slices:

                pfsense0 - The first OS slice
                pfsense1 - The second OS slice
                conf - The configuration slice

                When you do firmware updates, it upgrades whichever OS slice is not in use and then switches to it. The conf slice is used all the time, so it's constant. If you want something to stay between firmware updates, it should be under /conf/ - just be aware there is not much space there to work with. That doesn't matter for a mountpoint though, they don't take any space really (it's just an empty directory).

                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
                • L
                  lol
                  last edited by

                  Thanks a lot Jimp.
                  It's very interesting, and it will be very usefull.

                  I'm going to try playing with it…  ;)

                  A free pastbin without advertising…
                  French Debian Community's Wiki

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.