LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 09-25-2012, 05:05 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 347

Rep: Reputation: 31
FreeBSD: reverting to previous kernel


Hi all,

I built a custom kernel on my FreeBSD 8.2-RELEASE server and it failed to boot. I'd like to revert to the previous kernel.

I see the following directories in /boot:

Code:
kernel
kernel.OK
kernel.old
kernel.old1
If I simply copy kernel.OK to kernel will this be sufficient?

For the sake of clarity: I have figured out how to reboot the old kernel; now I would like to make the reversion permanent.

Thanks.
 
Old 09-25-2012, 05:55 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 135

Rep: Reputation: 36
It should, assuming kernel.old is the previous one. Check this out for a bit more details:
http://www.freebsd.org/doc/en_US.ISO...g-trouble.html
not much help now , but in the future I would save the kernel originally installed under a name you know means something to you.

Regards
John
 
Old 09-26-2012, 02:32 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 347

Original Poster
Rep: Reputation: 31
Thanks. I actually checked the Handbook before posting here, but missed that bit.

Perhaps you will know the answer to a relate question. The kernel config file I was using didn't boot, so I went back to GENERIC. The modules igb and bce returned compile errors, so I commented them out. However, I don't know what module failed here:
Code:
/usr/src/sys/modules/netgraph/atm/uni/../../../../contrib/ngatm/netnatm/sig/sig_party.c: In function 'uni_sig_party':
/usr/src/sys/modules/netgraph/atm/uni/../../../../contrib/ngatm/netnatm/sig/sig_party.c:916: internal compiler error: in symbol_marked_for_renaming, at tree-into-ssa.c:548
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph/atm/uni.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph/atm.
*** Error code 1

Stop in /usr/src/sys/modules/netgraph.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1
I can't find either "netnatm", "netgraph", "atm", or "ngatmin" in GENERIC. Any ideas?
 
Old 09-26-2012, 02:40 AM   #4
vermaden
Member
 
Registered: Jan 2006
Location: pl_PL.lodz
Distribution: FreeBSD
Posts: 397

Rep: Reputation: 81
Quote:
Originally Posted by Kropotkin View Post
Hi all,

I built a custom kernel on my FreeBSD 8.2-RELEASE server and it failed to boot. I'd like to revert to the previous kernel.
Everytime You want to try a new kernel just type nextboot -k NEWKERNEL. This way if it does not boot, You system will boot the old working kernel on the next boot.

Quote:
Originally Posted by Kropotkin View Post
I see the following directories in /boot:

Code:
kernel
kernel.OK
kernel.old
kernel.old1
If I simply copy kernel.OK to kernel will this be sufficient?

For the sake of clarity: I have figured out how to reboot the old kernel; now I would like to make the reversion permanent.
This would do:
Code:
cd /boot
mv kernel faulty
mv kernel.OK kernel
Also when building new kernel do it like that:
Code:
# make buildworld kernel KODIR=/boot/NEWONE
This way You will not 'mess' the old one to /boot/kernel.old directory.

... about Your conpilation error, try with this one:
Code:
# make buildworld kernel KODIR=/boot/NEWONE
Sometimes make buildworld is mandatory for make kernel | make buildkernel steps.
 
Old 09-26-2012, 06:07 PM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 135

Rep: Reputation: 36
Quote:
Originally Posted by Kropotkin View Post
I can't find either "netnatm", "netgraph", "atm", or "ngatmin" in GENERIC. Any ideas?
Sure you are on GENERIC (uname -a) ? Maybe check /boot/loader.conf and /etc/rc.conf, try to comment out similar entries and see if that helps.

John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gedit keeps reverting to a previous session after reboot LinusStallman Linux - Software 4 01-22-2011 10:42 AM
Reverting back to old kernel in CentOS ravangrid Linux - General 3 09-26-2010 11:15 AM
Reverting back to default Kernel CentOS blackfish Linux - Kernel 2 01-16-2010 12:34 PM
Reverting from a kernel upgrade devinWhalen Linux - General 5 01-05-2007 01:52 PM
Reverting YOU kernel update (suse 10) nitroid Suse/Novell 1 09-14-2006 03:36 AM


All times are GMT -5. The time now is 11:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration