a760 [Solved] FYI: Kernel crash and no old kernel available - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 12:50
eyebone eyebone is offline
Member
 
Join Date: Dec 2009
Posts: 148
Thanks: 22
Thanked 5 Times in 2 Posts
Lightbulb FYI: Kernel crash and no old kernel available

hej folks,

after several years using freebsd i had my first(lucky me ehh??) kernel which wasn't booting my system(kernel traps in a loop). no problem i thought, as i knew kernel.old should be created on every new kernelinstall via:

Code:
cd /usr/src; make installkernel KERNCONF=mykernel
but, kernel.old is not created on the destination folder if you use

Code:
cd /usr/src; make installkernel KERNCONF=mykernel DESTDIR=/mnt/bootdevice
in this case the kernel at bootdevice is just overwritten. just to let you know, to create a backup of your working kernel before overwritting it

(maybe this is common knowledge or i misunderstood something, please enlighten me in this case )

best regards,
Reply With Quote
  #2  
Old April 26th, 2010, 17:44
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 703 Times in 579 Posts
Default

This is why you should always install to a new directory (use KODIR=/boot/kernel.new and not DESTDIR), and use nextboot to tell the loader to use the new kernel for 1 reboot only.

If that kernel fails for any reason, just reboot, and the loader will use /boot/kernel as per normal.

If the new kernel works, then just # mv /boot/kernel /boot/kernel.old; mv /boot/kernel.new /boot/kernel.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
The Following User Says Thank You to phoenix For This Useful Post:
eyebone (April 27th, 2010)
  #3  
Old April 27th, 2010, 11:26
eyebone eyebone is offline
Member
 
Join Date: Dec 2009
Posts: 148
Thanks: 22
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by phoenix View Post
This is why you should always install to a new directory (use KODIR=/boot/kernel.new and not DESTDIR), and use nextboot to tell the loader to use the new kernel for 1 reboot only.
nice, i never recognized KODIR and nextboot, thx phoenix
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get source for kernel, world to match currently running kernel? Time2IPL Installing & Upgrading 4 March 3rd, 2010 18:28
7.1 amd 64 on HP DV8000Z... Error: "/boot/kernel/kernel text=0x78eea0 dgologanov Installing & Upgrading 0 April 26th, 2009 04:18
Building kernel modules without kernel source code holycow General 5 April 2nd, 2009 09:18
Is the cciss kernel module available in the installation kernel & other general Q's osx-addict Installing & Upgrading 2 March 2nd, 2009 18:14
[Solved] Kernel crash on 7.1-RELEASE-p3 with drm ? olivier FreeBSD Development 5 February 26th, 2009 19:53


All times are GMT +1. The time now is 10:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0