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

    file consistency check - resulting errors

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    netgate-sg-1100file system che
    16 Posts 4 Posters 2.4k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by stephenw10

      @alfaro said in file consistency check - resulting errors:

      [2.4.4-RELEASE][admin@firewall01.mylocaldomain]/root: /sbin/fsck -y /

      That is not single user mode.

      To reach single user mode you need to enter boot -s at the loader (OK) prompt like so:

      Hit [Enter] to boot immediately, or any other key for command prompt.
      
      
      Type '?' for a list of commands, 'help' for more detailed help.
      OK boot -s
      

      That will then bring you to the root prompt where you can run fsck before the filesystems are mounted:

      Enter full pathname of shell or RETURN for /bin/sh: 
      # 
      
      # fsck -y /
      ** /dev/ufsid/5cdd3c209fe36da7
      ** SU+J Recovering /dev/ufsid/5cdd3c209fe36da7
      
      USE JOURNAL? yes
      
      ** Reading 11730944 byte journal from inode 4.
      
      RECOVER? yes
      
      ** Building recovery table.
      ** Resolving unreferenced inode list.
      ** Processing journal entries.
      
      WRITE CHANGES? yes
      
      ** 28 journal records in 2560 bytes for 35.00% utilization
      ** Freed 0 inodes (0 dirs) 0 blocks, and 0 frags.
      
      ***** FILE SYSTEM MARKED CLEAN *****
      

      Run that at least 3 times.

      Steve

      A S 2 Replies Last reply Reply Quote 1
      • A
        alfaro
        last edited by

        Thank you for the reply. I have a question about single user mode. I used an ssh terminal to access the device, is there a way to get to single user mode via ssh or will I have to resort to using the serial cable?

        Thanks

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

          You can only access it at the console. Most of the usual services, like SSH, are not running in single user mode.

          Steve

          A 1 Reply Last reply Reply Quote 0
          • A
            alfaro @stephenw10
            last edited by

            @stephenw10 Thank you again.

            I used the serial cable to access the console but it does not say 'loader'. It says instead: Marvell>>

            When I see: Marvell>> I type: boot -s
            but all I get back is: Marvell>> boot -s
            boot - boot default, i.e., run 'bootcmd'

            Usage:
            boot
            Marvell>>

            ====
            This where I am unable to get to the single user mode.

            Hoepfully someone will know what might be wrong here

            1 Reply Last reply Reply Quote 0
            • A
              alfaro @stephenw10
              last edited by

              @stephenw10 @stephenw10 Thank you again.

              I used the serial cable to access the console but it does not say 'loader'. It says instead: Marvell>>

              When I see: Marvell>> I type: boot -s
              but all I get back is: Marvell>> boot -s
              boot - boot default, i.e., run 'bootcmd'

              Usage:
              boot
              Marvell>>

              ====
              This where I am unable to get to the single user mode.

              Hopefully someone will know what might be wrong here!Screenshot from 2020-03-31 15-34-04.png

              1 Reply Last reply Reply Quote 0
              • C
                Cornel
                last edited by Cornel

                type boot and then you should get:
                loader>

                there you type boot -s like:
                loader> boot -s

                or something. I did it this afternoon but failed to remember what I did exactly. Had the same Marvell prompt. And the above I what I believe I did. I stumbled upon this, and that is what got me through: https://forum.netgate.com/topic/125712/netgate-sg-3100-boot-loop-ufs_dirbad/4

                A 1 Reply Last reply Reply Quote 0
                • A
                  alfaro @Cornel
                  last edited by

                  @Cornel
                  Thanks for the reply. If what you did comes back to you please let me know.

                  I tried in a few different ways bit seems like there is no documentation on this prompt which is slightly different.

                  Thanks again.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    Cornel @alfaro
                    last edited by

                    @alfaro try bootd at the Marvell prompt. Does that get you to the loader prompt?

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      alfaro @Cornel
                      last edited by

                      @Cornel I am away from it now but will try soon. Thanks

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        Cornel @alfaro
                        last edited by

                        @alfaro good luck, It took me a few reboots as well this afternoon and somehow managed to get in to single user mode. You will succeed!

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          alfaro @Cornel
                          last edited by

                          @Cornel Hello, same thing. Did a quick loop and asked to press any key to stop boot and I was unable to get to single user mode.

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            Cornel @alfaro
                            last edited by

                            @alfaro it might be that you press a key to early. You should wait for “ Hit [Enter] to boot immediately, or any other key for command prompt” this comes after: “ Hit any key to stop autoboot”.

                            Also press space, not enter.

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

                              If you reach the Marvell>> prompt, which is u-boot, you intereupted it too soon.

                              Look at my console output above. Hit space, or anything but enter, when you see:
                              Hit [Enter] to boot immediately, or any other key for command prompt.

                              Then you will be at the bootloader prompt where you can boot into single user mode.

                              Steve

                              A 1 Reply Last reply Reply Quote 1
                              • A
                                alfaro @stephenw10
                                last edited by

                                @stephenw10 Wow, thanks stephenw10. I just pulling the trigger too son. Thanks, it worked and now I have a clean file system and I can upgrade to the new version.

                                Thanks a million to the community and everyone who responded and helped.

                                1 Reply Last reply Reply Quote 1
                                • S
                                  scott38654 @stephenw10
                                  last edited by

                                  @stephenw10 thanks

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