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

    Errors on fsck ... how to correct? Manual not helpful

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    13 Posts 3 Posters 3.6k 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.
    • J
      Jax @bmeeks
      last edited by Jax

      @bmeeks After finding the manual was wrong about this:

      GUI

      Navigate to Diagnostics > Reboot
      
      Set Reboot Method to Reboot with Filesystem Check
      
      Click fa-wrench Submit
      

      (No such option to "Set Reboot Method" in the GUI) I turned to general FreeBSD help and chose to trigger an fsck via a kernel var in /boot/loader.conf.

      I will try opt 5 from the Console next, thank you.

      J 1 Reply Last reply Reply Quote 0
      • J
        Jax @Jax
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • J
          Jax @bmeeks
          last edited by

          @bmeeks Tried 6 times with an F reboot from console and still fsck shows errors. What now?

          J 1 Reply Last reply Reply Quote 0
          • J
            Jax @Jax
            last edited by

            This after 7 "F" reboots:;

            [2.4.5-RELEASE][root@pfSense.localdomain]/root: fsck
            ** /dev/ufsid/5ed6cabbfa4b9f89 (NO WRITE)
            ** SU+J Recovering /dev/ufsid/5ed6cabbfa4b9f89
            
            USE JOURNAL? no
            
            ** Skipping journal, falling through to full fsck
            
            SETTING DIRTY FLAG IN READ_ONLY MODE
            
            UNEXPECTED SOFT UPDATE INCONSISTENCY
            ** Last Mounted on /
            ** Root file system
            ** Phase 1 - Check Blocks and Sizes
            INCORRECT BLOCK COUNT I=1385 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=1459 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=1516 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=46148 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=46490 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=58235 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=58315 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=95672 (24 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=95673 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98456 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98459 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98461 (24 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98479 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98480 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98483 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98484 (136 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98487 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=98489 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=141112 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=141113 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183304 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183305 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183306 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183307 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183308 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183321 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183333 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183335 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183337 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183339 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183352 (16 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183357 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183369 (8 should be 0)
            CORRECT? no
            
            INCORRECT BLOCK COUNT I=183376 (8 should be 0)
            CORRECT? no
            
            ** Phase 2 - Check Pathnames
            ** Phase 3 - Check Connectivity
            ** Phase 4 - Check Reference Counts
            UNREF FILE I=95665  OWNER=root MODE=100666
            SIZE=0 MTIME=Jan 16 21:37 2021 
            CLEAR? no
            
            UNREF FILE  I=95675  OWNER=root MODE=100600
            SIZE=0 MTIME=Jan 16 21:03 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            UNREF FILE  I=98464  OWNER=root MODE=100644
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            LINK COUNT FILE I=98482  OWNER=unbound MODE=100644
            SIZE=758 MTIME=Jan 16 21:38 2021  COUNT 2 SHOULD BE 1
            ADJUST? no
            
            LINK COUNT DIR I=183296  OWNER=root MODE=40755
            SIZE=512 MTIME=Jan 16 21:38 2021  COUNT 5 SHOULD BE 2
            ADJUST? no
            
            UNREF FILE  I=183322  OWNER=dhcpd MODE=100644
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            UNREF FILE  I=183335  OWNER=root MODE=100644
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            UNREF FILE  I=183339  OWNER=root MODE=100644
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            UNREF FILE  I=183354  OWNER=root MODE=100644
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            ZERO LENGTH DIR I=183357  OWNER=root MODE=40755
            SIZE=0 MTIME=Jan 16 21:38 2021 
            CLEAR? no
            
            UNREF FILE  I=183358  OWNER=root MODE=140666
            SIZE=0 MTIME=Jan 16 21:38 2021 
            RECONNECT? no
            
            
            CLEAR? no
            
            ZERO LENGTH DIR I=183369  OWNER=root MODE=40750
            SIZE=0 MTIME=Jan 16 21:38 2021 
            CLEAR? no
            
            ZERO LENGTH DIR I=183376  OWNER=root MODE=40750
            SIZE=0 MTIME=Jan 16 21:38 2021 
            CLEAR? no
            
            ** Phase 5 - Check Cyl groups
            FREE BLK COUNT(S) WRONG IN SUPERBLK
            SALVAGE? no
            
            SUMMARY INFORMATION BAD
            SALVAGE? no
            
            BLK(S) MISSING IN BIT MAPS
            SALVAGE? no
            
            25284 files, 286147 used, 1553541 free (197 frags, 194168 blocks, 0.0% fragmentation)
            
            
            J 1 Reply Last reply Reply Quote 0
            • J
              Jax @Jax
              last edited by

              I've never seen anything like this with a BSD.
              If repeated fsck at boot can't fix storage, this is totally bogus.
              Perhaps storage is defective, or the build of FreeBSD is bad.
              Thinking of contacting Netgate for an RMA.

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

                @jax said in Errors on fsck ... how to correct? Manual not helpful:

                I've never seen anything like this with a BSD.
                If repeated fsck at boot can't fix storage, this is totally bogus.
                Perhaps storage is defective, or the build of FreeBSD is bad.
                Thinking of contacting Netgate for an RMA.

                Yes, since this is a Netgate appliance they should be able to help you with the hardware. I understand they respond to tickets very quickly, even after hours. There is a link on their website for opening a support ticket. I understand that hardware support (especially for under warranty products) does not require a paid support contract.

                J 1 Reply Last reply Reply Quote 1
                • J
                  Jax @bmeeks
                  last edited by

                  @bmeeks Okay, I had my head in a dark place :)
                  fsckon FreeBSD is invalid even in read-only mode running on a mounted partition.
                  At least I learned how to install pfSense from USB stick in trying to "debug" my non-problem!
                  Thanks for the help!

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

                    For reference you would want to boot to single user mode so root is not mounted and then run:
                    fsck -y /

                    To avoid having to manually answer yes to all those questions.

                    And then, crucially, repeat that at least three times. The fsck command can incorrectly report clean on the first pass.

                    Steve

                    J 1 Reply Last reply Reply Quote 1
                    • J
                      Jax @stephenw10
                      last edited by

                      @stephenw10 Thank you. Do you recommend doing this for "good luck"? I'm not sure I ever had a problem. I was taking the output of fsck in read-only mode as valid indicating there were fs errors, but apparently on modern FreeBSD fsck on a mounted partition simply doesn't work.

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

                        It doesn't hurt to do it but it shouldn't be necessary unless you have seen a power failure that might potentially have damaged the filesystem. Even then it shouldn't be because fsck gets run at every boot anyway so most issues just get corrected.

                        Steve

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jax @stephenw10
                          last edited by

                          @stephenw10 Thanks, I ran a few times for good luck. No issues. HappyHappyHappyJoyJoyJoy :)

                          Thanks for help.

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