LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-12-2009, 02:21 PM   #1
JonesD1
LQ Newbie
 
Registered: May 2009
Posts: 15

Rep: Reputation: 0
Where is my bzImage


I installed Debian Lenny, as a complete system.
The system is working fine.

Then I downloaded and compiled the latest Linux kernel version 2.6.30.3 in order to replace my older Linux-2.6.26-2-686.

happily I managed to build the bzImage.

For the next README file step, I need to find my older bzImage, and to replace it with the new one, for the grub boot loader.

My question is why can't I find another bzImage file in my system?
If the name is not mandatory (probably that's the case), what should I search for?

Thank you.
 
Old 08-12-2009, 03:17 PM   #2
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
Check your grub.conf file for the actual name of the kernel file. Different distros may name them differently. But, on most distros I've seen, the kernel should reside in /boot and the grub.conf should reside in /boot/grub.

Also, don't replace the kernel until you know if it works. Until then, create a second entry into the grub.conf file for the new kernel and boot using that. So, if it fails, you can go back to the old kernel to fix the problem.

Another problem is: If Debian is like Gentoo, the /boot directory is not mounted by default (if it is its own partition). So, you would have to do "mount /boot" first.
 
Old 08-13-2009, 06:16 AM   #3
jeromeNP7
Member
 
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
bzImage is just a temporary name. I do not know of any reasonable Linux distribution that uses bzImage as the filename for the built kernel.

Linux

Last edited by jeromeNP7; 09-04-2009 at 09:27 PM.
 
Old 08-13-2009, 07:24 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
You'll need to do something like this, from wherever your bzImage is:
Code:
cp bzImage /boot/vmlinuz-2.6.30.3-i686
Then write a suitable entry in /boot/grub/menu.lst.
There is probably a "Debian way" of building and installing a new kernel.

Last edited by brianL; 08-13-2009 at 07:38 AM.
 
Old 08-13-2009, 10:27 AM   #5
JonesD1
LQ Newbie
 
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you guys.

With your help I found out that the Debian way of storing default grub configuration file is in /boot/grub/menu.lst exactly as the man page on grub declares.

I need to add my new image as another option. I am not going to change the default though.

Now just need to change it carefully, because it contains lots of frightening warnings...

Thanks again.
 
  


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
bzImage oliviapesayco Linux - Newbie 3 06-20-2007 09:36 PM
HELP bzImage NTK Debian 2 08-25-2006 07:01 AM
bzImage!!! BattleAxe_19 Linux - General 2 12-22-2003 09:57 AM
bzImage.. help unmada Linux - Software 2 06-13-2002 11:59 PM
bzimage jnsc Linux From Scratch 13 04-16-2002 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 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