LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-05-2004, 05:21 AM   #1
Patrique
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: Fedora Core 1
Posts: 15

Rep: Reputation: 0
Problem with Grub configuration (updated kernel)


Hi.

At first I think you'd like to see my grub.conf file:
==============================================================
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hda3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img

title tekram
root (hd0,2)
kernel /boot/bzImage ro root=LABEL=/ hdc=ide-scsi

title Windows XP
rootnoverify (hd0,0)
chainloader +1
===============================================================

I had to compile a new kernel version because I wanted to install the tekram DC315U scsi drivers. So far everything worked fine.
Now I tried to implement the new kernel, named bzImage, which I copied into the /boot directory.
I used the same options as they are used for booting the original kernel 2.4.20-8 and changed only the name of the kernel file from vmlinuz-2.4.20-8 to bzImage.
But when I choose the tekram-option in grub at startup I get an error message, that now boot device could be found.
The original Kernel still works fine.

Is there anything wrong in my grub.conf file? (despite the fact, that I'm using WinXP as default OS
I'm going to restart now and will write down the full error message, because I don't have it in mind. I'll post it later.

thanks for any help!
 
Old 06-05-2004, 05:25 AM   #2
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
I notice you are using initrd in the other configuration. You may need to create an initrd for you new kernel.

mkinitrd -i initrd-bzImage -k bzImage

Last edited by lacerto; 06-05-2004 at 05:49 AM.
 
Old 06-05-2004, 05:27 AM   #3
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
Then add it it to your grub file of course
 
Old 06-05-2004, 05:46 AM   #4
karans
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Red Hat {9.0, 7.x , 6.x } , Mandrake 9.x
Posts: 19

Rep: Reputation: 0
Hi

Yes , you will need the initrd to boot into the newly compiled image

Karan
 
Old 06-05-2004, 08:56 AM   #5
Patrique
LQ Newbie
 
Registered: May 2004
Location: Germany
Distribution: Fedora Core 1
Posts: 15

Original Poster
Rep: Reputation: 0
Done!

You were absolutely right.

I made the init-file, implemented it into grub.conf and now everything is fine!

Thank you.
 
  


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
kernel compile - grub configuration help redduck666 Linux - Software 6 04-09-2005 04:32 PM
Kernel Panic: grub configuration issue(?) rickthemick Linux - General 3 11-17-2004 07:43 PM
How to change the GRUB configuration file with kernel 2.6.7 Bassam Linux - Software 2 06-22-2004 03:44 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 03:27 PM
Need help editing grub for updated kernel pilotgi Linux - General 3 10-05-2003 09:04 PM


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