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

    Cannot boot pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.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.
    • F
      Flegy
      last edited by Flegy

      I was editing/boot/loader.conf and /etc/sysctl.conf and now pfSense no longer want to boot. How can I access files to remove all changes or some way to make a default file?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Flegy
        last edited by

        @flegy

        Boot into single user mode, mount partitions disk if needed, access the partition that contains the boot folder and edit the file.

        Howtos : see pfSense documentation, like (but limited to) Troubleshooting in Single User Mode.

        Take a look at this : they don't say it, but you never have to edit the loader.conf file directly.
        You use the loader.conf.local file.

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

        F 1 Reply Last reply Reply Quote 0
        • F
          Flegy @Gertjan
          last edited by Flegy

          @gertjan here is what shows me when I enter a single user. Looks as it enters panic mode.

          027a38b8-61ec-4867-9b44-831e7d71c772-image.png

          F 1 Reply Last reply Reply Quote 0
          • F
            Flegy @Flegy
            last edited by

            Is the only solution is to reinstall pfSense and did all configurations again?

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan
              last edited by

              @flegy said in Cannot boot pfSense:

              Is the only solution is to reinstall pfSense

              It's another solution.

              Your image shows info cd0 == cd rom drive (there was no cd in the drive)
              some "bce" message (bce is a NIC, no bootcode could be network started ? )
              ...
              and then : can't mount devfs (a device file system) out of the middle of no where - you've omitted the messages eralier where the drive can't get 'read' (oslt)

              Don't bother about the config, that's why pfSense exists !! no need to take hours to dump many giga bytes of files : it's a mere 'couple' of mega bytes' xml (text !) file. It takes a couple of seconds to make it, even if you use an ancient 386 device. But you already knew that I guess.
              If that was to long for you, there is the Auto Config backup service from Netgate !! Free of use. Your latest config system is always send to them.
              ... If you've set that up .....

              If not, just re install pfSense froms scratch.
              If the drive is found ...
              And there was a 'previous' pfense partition found .....
              (the last 2 need a none broke drive of course)
              then it will propose you to retrieve the 'previous' config ;)

              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
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                What values did you add? Something that references that non-existent init?

                pfSense doesn't use the FreeBSD init system. As mentioned you should use /boot/loader.conf.local for any custom loader variables.
                Custom sysctls should be added in the GUI in Sys > Adv > System Tunables.

                If you need to re-install, and don't have a config backup, the installer can attempt to recover your existing config before wiping the drive.
                https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#recover-config-xml-from-existing-installation

                Steve

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