Date: Mon, 9 May 2005 11:11:47 -1000 From: Clifton Royston <cliftonr@tikitechnologies.com> To: Brent <mrb@bmyster.com> Cc: questions@freebsd.org Subject: Re: revert to old kernel help ? Message-ID: <20050509211147.GF2626@tikitechnologies.com> In-Reply-To: <20050509134413.M37350@bmyster.com> References: <20050509134413.M37350@bmyster.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 09, 2005 at 09:50:52AM -0400, Brent wrote: > Hello, im running Freebsd 4.10 , When i first setup this box i re-compiled > the kernel for firewalling and such...which worked great ...i then tried to > tighten the box down even further...by compileing ICMP_BANDLIM which caused > problems for my webserver. Anywho ...is there a way i can tell my Freebsd box > when it power cycles to boot the old kernel automatically ? At this point im > having to tell it manually to load kernel.old > > any help is greatly appreciated Your last previous kernel and module set should normally be saved as the file /kernel.old and the directory /modules.old/ on your root file system. If you haven't gone through multiple build cycles, you can do this, or the equivalent steps: # cd / # ln kernel kernel.bad && mv kernel.old kernel # mv modules modules.bad && mv modules.old modules Then reboot: # shutdown -r now 'Reboot into restored kernel' If you went through multiple build cycles with the new parameters, then you're torqued; you'll need to go through a fresh build cycle with a corrected kernel config. This is why it's a good idea to back up a known good copy of your kernel and modules before you start tinkering. Doesn't hurt to always keep a GENERIC kernel around too. -- Clifton -- Clifton Royston -- cliftonr@tikitechnologies.com Tiki Technologies Lead Programmer/Software Architect "I'm gonna tell my son to grow up pretty as the grass is green And whip-smart as the English Channel's wide..." -- 'Whip-Smart', Liz Phair
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050509211147.GF2626>