LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 04: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 04:49 AM.
 
Old 06-05-2004, 04: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, 04: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, 07: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 AM.

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