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

Problems on boot - WARNING : / was non properly dismounted - /lib/libedit.so.7: invalid file format

Scheduled Pinned Locked Moved Hardware
15 Posts 6 Posters 5.5k 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.
  • T
    Tommaso Forrest
    last edited by stephenw10 Sep 24, 2019, 3:01 PM Sep 24, 2019, 6:43 AM

    After a power failure on PfSense reboot in a virtual machine, I get an error: WARNING: / was not properly dismounted and then booting the shell for single user access.
    Immediately after the return, the system replies: /lib/libedit.so.7: invalid file format.

    PsSense_20190924.png

    What can I do to access the system to use some hard disk recovery utilities? Is there any way to access the system to recover at least the PfSense configuration file?

    thanks a lot

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Sep 24, 2019, 7:59 AM

      Hi,

      Go read the manual, especially about 'fsck' (file system check).
      You should use the console access.
      Interrupt booting and execute a file system check. As said, it's dirty (was not properly dismounted)
      Run it several times.

      Still, it's possible that files like /lib/libedit.so.7 is corrupted. A re install will solve that.

      Btw : never edit power down you system by ripping of the power. Use an UPS - and use the GUI power command click command - or console menu alternative.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • V
        viktor_g Netgate
        last edited by Sep 24, 2019, 8:31 AM

        Check filesystem: https://docs.netgate.com/pfsense/en/latest/book/install/filesystem-tweaks.html#triggering-a-filesystem-check

        1 Reply Last reply Reply Quote 1
        • K
          kiokoman LAYER 8
          last edited by Sep 24, 2019, 9:20 AM

          press enter on that window and launch

          fsck -y /
          

          do it at least 5 / 6 times even if it tell you that the file system is clean
          if it does not solve the problem you can recover the config from

          /cf/conf/config.xml
          

          you can also recover it during a reinstallation of the system. before it start to install it will ask you if you want to recover the old config

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 0
          • T
            Tommaso Forrest
            last edited by Sep 24, 2019, 9:21 AM

            i tried to follow this steps :

            Connect to the console

            *Choose the menu option to reboot from the console menu (5)

            Enter F (uppercase “f”) to force a filesystem check during the boot sequence even if the drive is considered clean

            That option is not present on all firewalls as it is not compatible with certain BIOS implementations. If that option is not present:

            Reboot the firewall into single user mode by choosing option 2 from the boot menu

            Press Enter when prompted for a shell

            Enter fsck -y /

            Repeat the command at least 3 times, or until no errors are found, even if the filesystem is reported clean


            i didn't find menu option 5 and i don't know other way to interrupt the boot.

            Than i used "option 2" ( single user mode )

            If i use this option i get the same problem : i can't access to shell

            PsSense_20190924.png

            Tanks

            1 Reply Last reply Reply Quote 0
            • K
              kiokoman LAYER 8
              last edited by Sep 24, 2019, 9:22 AM

              @kiokoman said in Problems on boot - WARNING : / was non properly didmonted - /lib/libedit.so.t: invalid file format:

              do it at least 5 / 6 times even if it tell you that the file system is clean

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • T
                Tommaso Forrest
                last edited by Sep 24, 2019, 9:24 AM

                i'm using PfSense in a vitual machine ( Virtualization Station on QNAP NAS )

                1 Reply Last reply Reply Quote 0
                • K
                  kiokoman LAYER 8
                  last edited by Sep 24, 2019, 9:27 AM

                  the procedure is the same even if it were installed in a microwave :)

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                  1 Reply Last reply Reply Quote 1
                  • T
                    Tommaso Forrest
                    last edited by Sep 24, 2019, 10:10 AM

                    Anyway, i tried but alway i can't access to file system by shell : there is a way to force file sytem check by set command as boot option ?

                    V 1 Reply Last reply Sep 24, 2019, 10:12 AM Reply Quote 0
                    • V
                      viktor_g Netgate @Tommaso Forrest
                      last edited by Sep 24, 2019, 10:12 AM

                      @Tommaso-Forrest If you have fresh backup, simply reinstall it and upload backup configuration
                      If you have enough RAM for pfSense VM, it more better to use ZFS

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiokoman LAYER 8
                        last edited by kiokoman Sep 24, 2019, 10:14 AM Sep 24, 2019, 10:13 AM

                        when it boot you can select to run it as single user mode
                        when you see
                        Enter full pathname of shell or RETURN for /bin/sh:
                        you press return
                        then you can launch
                        fsck -y /

                        i think it's faster if you reinstall as suggested by viktor_g anyway

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gertjan
                          last edited by Sep 24, 2019, 10:50 AM

                          Right after the startup of your VM you see this :

                          5db8bbfd-68ac-4ce6-b6d1-ba0957481a14-image.png

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by Sep 24, 2019, 12:17 PM

                            Honestly if it's failing that early, running fsck may not be enough. It might need reinstalled. Also a slight chance it's not actually a filesystem problem but a failing disk.

                            Normally with a filesystem issue it would fail on files or directories that are regularly read/written, not system libraries. That isn't always the case, just more likely.

                            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
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by Sep 24, 2019, 3:05 PM

                              If pressing return at that prompt does not allow you to reach the shell there is probably nothing you can do from there.

                              You might be able to boot from an ISO and then escape to a shell and fsck the disk from there.

                              If you have a config backup just reinstall. It's a VM, do you have any snapshots?

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tommaso Forrest
                                last edited by Sep 24, 2019, 3:22 PM

                                Tanks ... i try to boot from CD and escape to a shell

                                Tanks

                                1 Reply Last reply Reply Quote 0
                                1 out of 15
                                • First post
                                  1/15
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received