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

    Nano / ro rw sometimes?

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 2.9k 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.
    • perikoP
      periko
      last edited by

      Hi people.

      I have running pfsense 2.0.1 on some clients, there I run squid(NO CACHE), I had seen some behaviour  that maybe I still don't understand and maybe someone here can give more info and learn more from this great OS.

      I had seen that sometimes went pfsense reboot the partitions are mounted like this:

      /dev/ufs/pfsense0 on / (ufs, local, noatime, synchronous)
      devfs on /dev (devfs, local)
      /dev/md0 on /tmp (ufs, local)
      /dev/md1 on /var (ufs, local)
      /dev/ufs/cf on /cf (ufs, local, noatime, synchronous)
      devfs on /var/dhcpd/dev (devfs, local)
      / ==> rw

      Others

      /dev/ufs/pfsense0 on / (ufs, local, noatime, read-only, synchronous)
      devfs on /dev (devfs, local)
      /dev/md0 on /tmp (ufs, local)
      /dev/md1 on /var (ufs, local)
      /dev/ufs/cf on /cf (ufs, local, noatime, read-only, synchronous)
      devfs on /var/dhcpd/dev (devfs, local)
      / ==> ro

      This are different machines, the problem for me is that in those boxes I have squid+sarg working beautiful, but some times went I need to restart the systems, is something that doesn't happen normally, the system(s) mount / with ro and don't let sarg save the reports.

      I would like to understand why this happen, I will appreciated this a lot.

      pfsense 2.0.1 nano on alix/neoware.

      Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
      www.bajaopensolutions.com
      https://www.facebook.com/BajaOpenSolutions
      Quieres aprender PfSense, visita mi canal de youtube:
      https://www.youtube.com/c/PedroMorenoBOS

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        The nanobsd image is supposed to mount / as read only. It is remounted RW when required.
        Where are you checking the mount status? It can make a difference.

        Steve

        1 Reply Last reply Reply Quote 0
        • perikoP
          periko
          last edited by

          Hi stephenw10.

          Console.

          How does he decide went to do this?

          Thanks!!!

          Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
          www.bajaopensolutions.com
          https://www.facebook.com/BajaOpenSolutions
          Quieres aprender PfSense, visita mi canal de youtube:
          https://www.youtube.com/c/PedroMorenoBOS

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            / and /cf are remounted RW whenever pfSense has to write out its config file or a package requires it. The package system allows this to happen.  RRD data is periodically written also.
            From the console should show RO unless the card is being written. Checking from the GUI command screen will remount it first.

            Steve

            1 Reply Last reply Reply Quote 0
            • perikoP
              periko
              last edited by

              I need to work more with my box, I nomally need to let sarg write his reports in /usr/local/www/..
                Here is where a detect this small behaviour, thanks  stephenw10.

              Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
              www.bajaopensolutions.com
              https://www.facebook.com/BajaOpenSolutions
              Quieres aprender PfSense, visita mi canal de youtube:
              https://www.youtube.com/c/PedroMorenoBOS

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                This could be an issue with the sarg package rather than the nano image. I don't use it so I can't comment. Perhaps start a new thread in packages.

                Steve

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

                  There has been quite a bit of cleanup in that code in 2.1 as well, it's possible there is an issue with 2.0.x yet.

                  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
                  • perikoP
                    periko
                    last edited by

                    Just to add, I setup sarg by hand not using the packages from pfsense, because the package creator told that all the options where available for Full install not nano and I setup sarg on nano before he build the package.
                      Not a big deal, now I know a little more from pfsense and know how to fix this small setting ;D
                      Thanks for your help guys  :)

                    Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
                    www.bajaopensolutions.com
                    https://www.facebook.com/BajaOpenSolutions
                    Quieres aprender PfSense, visita mi canal de youtube:
                    https://www.youtube.com/c/PedroMorenoBOS

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by

                      There were some conditions when squid(2) and squid3 could leave the filesystem in RW on nanobsd. I fixed these up a week or 2 ago. If you have reinstalled squid or squid3 recently then you should have got these fixes, even on 2.0.1. Now squid/squid3 should always leave the "/" and "/cf" filesystems in RO on nanobsd after finishing its installation/configuration/startup. This is a good thing for nanobsd.
                      If anyone was relying on the previous (undesirable, accidental) RW behaviour, then they will notice that they can no longer write to places like "/usr". In that case, on-the-run/temp files need to go in "/var" somewhere. When something really needs to be saved and survive reboot, then it needs calls to conf_mount_rw() and then conf_mount_ro().
                      I am not a Sarg user just yet, so I am not familiar with what it is doing with saving reports on nanobsd.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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