Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-29-2004, 03:29 PM   #1
LQ Newbie
Registered: Feb 2004
Location: Tulsa, OK USA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0


I'm wanting to re-compile my kernel, and keep the original one as well since I don't usually get it right the first time. I've been using a very informative kernel guide at digitalhermit however, I've gotten to this part and am confused:

$cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
$cp /boot/
$ln -s /boot/ /boot/

I know the original kernel will still be there, and the LILO entry won't be changed except for a new image choice, but won't the step above replace the symbolic link of the original kernel, and mess things up? I'm just having trouble trying to figure out how I can have both the old kernel and the new kernel as choices when it seems there's only room for one If you could help me, I would greatly appreciate it. Thanks.

Old 03-01-2004, 11:53 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi. isn't all too important when you're just running programs. Just re-link /boot/ to the which is from the kernel you're running when you switch kernels.

I'm always forgetting to relink when I change kernel (between 2.4 and 2.6), and I've never had any problems.

Old 03-02-2004, 12:27 AM   #3
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Heres a novel idea.... Keep everything seperate.....

mkdir /boot/MyNewSpiffyKernel
cp arch/i386/boot/bzImage /boot/MyNewSpiffyKernel/bzImage
cp /boot/MyNewSpiffyKernel/

screw the symlink... It's not important. It'll read from an original just fine. Then just append your bootloader so it has the right path....
Old 03-02-2004, 12:49 AM   #4
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I'm not exactly sure about 2.4 kernel, but I know for 2.6 /boot/<kernel version> gets used if present, therefore you don't need to have a symlink /boot/ linking to current running kernel. If memory serves that is true for 2.4 as well, can someone verify that?
But then again as ilikejam mentioned its not critical to have in /boot.
Old 03-02-2004, 06:48 PM   #5
Registered: Nov 2003
Distribution: slackware 14
Posts: 542

Rep: Reputation: 33 is a file used by the kernel "to map" the system.
It is used by klogd that passes those parameters to syslogd in order to produce the log messages at boot.
klogd looks in / /boot /usr/src/linux-x.x.x to find out a proper file (not shure in this order). You can rename the produced by the new kernel compilation to, for instance, and it will automatically recognized at boot since it has versioning features.
If wrong it doesn't affect kernel booting, but if it doesn't match the proper kernel you'll be noticed a wrong is in use.
No problems if you're not interested to log messages. is used by some emulation software as well.
Hope this helps


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
Compilling a new kernel, and modules mimithebrain Linux - General 2 10-22-2005 06:07 PM
Compile kernel: iaMMai Linux - Newbie 9 05-19-2005 09:05 AM
Custom Kernel and tmoorman Linux - Software 6 10-23-2003 05:12 PM
Custom kernel and tmoorman Mandriva 1 10-22-2003 09:11 PM
Kernel images and Dark_Helmet Linux - Newbie 4 02-03-2003 11:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 PM.

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