LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04:05 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
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, 04:55 PM   #2
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 697
Blog Entries: 1

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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, 01:32 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
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, 01:40 AM   #4
vermaden
Member
 
Registered: Jan 2006
Location: pl_PL.lodz
Distribution: FreeBSD
Posts: 406

Rep: Reputation: 89
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, 05:07 PM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 697
Blog Entries: 1

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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



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 linustalman Linux - Software 4 01-22-2011 09:42 AM
Reverting back to old kernel in CentOS ravangrid Linux - General 3 09-26-2010 10:15 AM
Reverting back to default Kernel CentOS blackfish Linux - Kernel 2 01-16-2010 11:34 AM
Reverting from a kernel upgrade devinWhalen Linux - General 5 01-05-2007 12:52 PM
Reverting YOU kernel update (suse 10) nitroid SUSE / openSUSE 1 09-14-2006 02:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration