• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Nov 15, 2022, 11:53 AM Nov 15, 2022, 11:51 AM

    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?

    G 1 Reply Last reply Nov 15, 2022, 12:04 PM Reply Quote 0
    • G
      Gertjan @Flegy
      last edited by Nov 15, 2022, 12:04 PM

      @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 Nov 15, 2022, 12:13 PM Reply Quote 0
      • F
        Flegy @Gertjan
        last edited by Flegy Nov 15, 2022, 12:14 PM Nov 15, 2022, 12:13 PM

        @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 Nov 15, 2022, 1:06 PM Reply Quote 0
        • F
          Flegy @Flegy
          last edited by Nov 15, 2022, 1:06 PM

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

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan
            last edited by Nov 15, 2022, 3:00 PM

            @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
            • S
              stephenw10 Netgate Administrator
              last edited by Nov 15, 2022, 9:22 PM

              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
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received