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

    General protection fault while in kernel mode after loader.conf tweaks

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 3 Posters 1.3k 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.
    • A Offline
      andrew4902
      last edited by

      I made some NIC tweaks in /boot/loader.conf. I then rebooted to enact the changes. The system is coming up with a general protection fault. How can I edit /boot/loader.conf to remove the tweaks now that I currently can't boot into safe mode or single user mode? I'm running 2.1.5 nanobsd.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        Hmmm… like, boot the other slice?

        1 Reply Last reply Reply Quote 0
        • A Offline
          andrew4902
          last edited by

          Thanks for the tip! I didn't know there were two slices available. I now have a working OS but how can I edit the /boot/loader.conf in the other slice?

          1 Reply Last reply Reply Quote 0
          • A Offline
            andrew4902
            last edited by

            By trial and error I figured out the correct partition containing for the config for slice #1 is /dev/da0s1a. The config for slice #2 is in /dev/da0s2a.

            By the way, the parameter that caused the GPF was hw.em.num_queues=2. I changed it back to hw.em.num_queues=1 and all is well.

            1 Reply Last reply Reply Quote 0
            • D Offline
              doktornotor Banned
              last edited by

              When all is fixed, you can also copy the working slice which you can boot from over the broken one via GUI (Diagnostics - NanoBSD).

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

                You should put your custom loader tweaks in /boot/loader.conf.local so it survives a firmware update.

                Steve

                1 Reply Last reply Reply Quote 0
                • A Offline
                  andrew4902
                  last edited by

                  Thanks for both of the tips! I have cloned my up to date slice to the other slice and moved settings to /boot/loader.conf.local.

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