kern.geom.part.mbr.enforce_chs: 0
-
What's the best way to fix this on a new install v2.6 so it can boot? It needs a number other than zero. I am at a friend's helping to setup his pfSense on a Lenovo M92.
-
Found this thread: https://forum.netgate.com/topic/110353/impossible-to-install-to-a-4k-aligned-partition-for-ssd/17
Still appear no easy way
-
You're just trying to set that sysctl?
-
@stephenw10 said in kern.geom.part.mbr.enforce_chs: 0:
You're just trying to set that sysctl?
Yes if I can after the install so I can get it to boot.
-
If it's actually a sysctl then add it in System Tunables.
If it needs to be set before boot try adding it to /boot/loader.conf.local
-
@stephenw10 said in kern.geom.part.mbr.enforce_chs: 0:
If it's actually a sysctl then add it in System Tunables.
If it needs to be set before boot try adding it to /boot/loader.conf.local
It would need to set after the install is complete and launch shell before reboot. From here: https://github.com/helloSystem/ISO/issues/200 it seems it have something about install from or to USB. So, If I cannot edit /boot/loader.conf.local since I'll be at the chroot, then I might try burning a DVD.
-
You can create that file in the prompt after installing.
I can't see anywhere suggesting setting that to some other value though in any of those linked threads.
Steve
-
@stephenw10 said in kern.geom.part.mbr.enforce_chs: 0:
You can create that file in the prompt after installing.
I can't see anywhere suggesting setting that to some other value though in any of those linked threads.
Steve
So, how do I create a file? I tried /boot/loader.conf.local and no file found. Also I tried /boot/loader.conf but permission denied because I am not a user yet.
-
You can just
touch /boot/loader.conf.local
to create it. Then useee
to edit it.Or append something to it directly:
echo 'kern.geom.part.mbr.enforce_chs=1' >> /boot/loader.conf.local
Or whatever value you want. I'm not sure that can be loaded there though. Try it.
Steve
-
@stephenw10 Didn't work, it seems it has to be done before the install. So, I try installing by iso/DVD.
-
@stephenw10 I managed to fix the problem, but it seemed haphazardly. I tried installing pfSense 2.6 by DVD only to realize that the previous memstick method did install the firewall OS despite no OS found rebooting the computer. Then, booting from the DVD would start and hung on synchronizing user. So, I made sure that the bios were set to legacy mode and CAS was disabled then booted the computer. This time it hung on CSM; so, I powered off the computer and reboot again and select single user mode and created the file as you had instructed:
echo 'kern.geom.part.mbr.enforce_chs=1' >> /boot/loader.conf.localIt then completed the boot up, and I could restore backup configuration. We'll upgrade to version 22..5 when my friend return from vacation. Thank you Steve.