Correct steps to recompile kernel

platanthera platanthera at web.de
Thu May 20 10:28:19 PDT 2004


On Thursday 20 May 2004 18:39, Stephen Liu wrote:
> Hi Bill,
>
> Tks for your advice.
>
> - snip -
>
> > > # cd /usr/src/sys/i386/conf
> > > # cp GENERIC GENERIC.bak
> > > # cp GENERIC MYKERNEL
> > > # ee MYKERNEL
> > > (modifying the kernel)
> >
> > This is good ... although making a backup of GENERIC
> > is
> > somewhat redundant.
>
> Noted with thanks.  But in case of trouble where can I
> get the old kernel back.

When you install a new kernel the old one is backed up  
under /boot/kernel.old/
If you can't boot your new kernel, just press '6' in the boot loader 
menu to escape to the loader prompt, and then type

unload 
load /boot/kernel.old/kernel
boot

regards


More information about the freebsd-questions mailing list