Click to See Complete Forum and Search --> : FreeBSD: Messed up the kernel, not booting.


ricstr
08-19-2003, 01:36 AM
I need advice, I have just recompiled the kernel on my FreeBSD-5.1 system. I took out default system console support and enabled vt220 console just to see what it was like. Now the system shows the boot loader at start-up and then nothing after that.

I could re-install everything but i would rather not as it would take too much time.

Any suggestions as to how i could this system up and running quick.

Thanks.

Alex Cavnar, aka alc6379
08-19-2003, 08:14 AM
Use the old kernel, or the GENERIC one.

When it boots and says "Press enter to boot, or any other key for options", hit a key other than <Enter>. You will be brought to a command line where you can change options or boot other kernels.

Simply type unload. It will unload the old kernel. Then, type either load kernel.old or load kernel.GENERIC . After that, type boot to proceed on your merry way.

Once you've booted, you can trash your old kernel. As root :

rm /kernel ; cp /kernel.old /kernel


...And there ya go!