General protection fault while in kernel mode after loader.conf tweaks
-
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.
-
Hmmm… like, boot the other slice?
-
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?
-
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.
-
When all is fixed, you can also copy the working slice which you can boot from over the broken one via GUI (Diagnostics - NanoBSD).
-
You should put your custom loader tweaks in /boot/loader.conf.local so it survives a firmware update.
Steve
-
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.