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

    How to check filesystem?

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 2 Posters 815 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.
    • A
      aaronouthier
      last edited by

      So, I have a new roommate. He’s used to commercial routers that you can just power off and on when something is amiss. I’m used to having a roommate that knows you can’t do that on these routers.

      I just caught him unplugging the router due to internet issues at 1 AM. He apparently has done this several times before. How do I run fsck on my box at boot time? I’m on an 1100.

      Failing that, where do I download the reinstall image for PfSense+?

      1 Reply Last reply Reply Quote 0
      • A
        aaronouthier
        last edited by

        For what it’s worth, the box does boot, but I’m nervous about letting it run with a potentially corrupt FS.

        1 Reply Last reply Reply Quote 0
        • bmeeksB
          bmeeks
          last edited by bmeeks

          Here is the official pfSense documentation for running a manual file system check: https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html#filesystem-check-manual. Google searches can be your friend 🙂. This is the first returned hit from a search with these terms: "pfsense repair filesystem"

          You can't directly download pfSense Plus images (and that is what any Netgate-branded appliance runs). You must request those images directly from Netgate TAC here: https://www.netgate.com/tac-support-request. Fill in the requested information (being sure to include the Netgate ID of your SG-1100), and the support group will send you an email with a link to the installer image for your box.

          1 Reply Last reply Reply Quote 0
          • A
            aaronouthier
            last edited by

            Hmm. Sorry, it was after 1 AM. I don’t do my best thinking after 9 PM.

            On the other hand, the instructions need to be updated.

            There is no option for a filesystem check in Diagnostics->reboot menu in the GUI, and fsck gives an error about unsupported filesystem or something. Sorry, not sitting in front of it right now.

            bmeeksB 1 Reply Last reply Reply Quote 0
            • bmeeksB
              bmeeks @aaronouthier
              last edited by

              @aaronouthier said in How to check filesystem?:

              Hmm. Sorry, it was after 1 AM. I don’t do my best thinking after 9 PM.

              On the other hand, the instructions need to be updated.

              There is no option for a filesystem check in Diagnostics->reboot menu in the GUI, and fsck gives an error about unsupported filesystem or something. Sorry, not sitting in front of it right now.

              The link should have taken you direct to the "Manual File System Check" section (the one a little farther down the page), but it may have dropped at the "Automatic Check" instead.

              While I would not expect it to be, is your appliance perhaps using ZFS instead of UFS? That might help explain why it has survived those "pulled the plug" events better than expected.

              A 1 Reply Last reply Reply Quote 0
              • A
                aaronouthier @bmeeks
                last edited by

                @bmeeks

                Yes! Running “mount” from an ssh prompt shows / is mounted as zfs.

                bmeeksB 1 Reply Last reply Reply Quote 0
                • bmeeksB
                  bmeeks @aaronouthier
                  last edited by bmeeks

                  @aaronouthier said in How to check filesystem?:

                  @bmeeks

                  Yes! Running “mount” from an ssh prompt shows / is mounted as zfs.

                  Okay, then fsck, or any other conventional filesystem check, is not supported.

                  ZFS is fairly resilient, so the system is likely okay. You can run the ZFS scrub command as explained at the very top of the page I linked, but that is not exactly the same as fsck on the old UFS systems.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronouthier @bmeeks
                    last edited by

                    @bmeeks
                    Good to know!

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