LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-05-2003, 01:41 PM   #1
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE 12.2 64 bit
Posts: 488

Rep: Reputation: 32
Need help editing grub for updated kernel


I followed the instructions here to upgrade the kernel on my SUSE 8.1 install. The instructions are written assuming LILO is the boot loader so I'm not sure if the part about editing LILO would apply to grub.

I think I have successfully updated the kernel but grub isn't showing an option to boot into the new one. Here are the lines I added to grub:

image = /boot/bzImage-2.4.22
root = /dev/hdb1
label = new_kernel
read-only

Here are the lines from /boot/grub/menu.lst that apply:

title /dev/hdb1_linux
kernel (hd1,0)/boot/vmlinuz root=/dev/hdb1 hdc=ide-scsi vga=791
initrd (hd1,0)/boot/initrd

If this is correct, how to I append these lines to grub so it will give me the option to boot into the updated kernel?

I tried adding the image, root, label, read-only lines after the initrd line but the old kernel wouldn't boot that way.
 
Old 10-05-2003, 04:20 PM   #2
Mirrorball
Member
 
Registered: May 2003
Location: Brazil
Distribution: Gentoo
Posts: 81

Rep: Reputation: 15
Those lines are for LILO.
Replace vmlinuz with bzImage-2.4.22 and it should boot, I guess.
 
Old 10-05-2003, 07:15 PM   #3
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE 12.2 64 bit
Posts: 488

Original Poster
Rep: Reputation: 32
Quote:
Replace vmlinuz with bzImage-2.4.22 and it should boot, I guess.
I already tried that. I've tried several things already so I'm not sure what error I got with that one. It was either "File not found" or "Kernel panic: unable to mount root fs."
 
Old 10-05-2003, 08:04 PM   #4
Mirrorball
Member
 
Registered: May 2003
Location: Brazil
Distribution: Gentoo
Posts: 81

Rep: Reputation: 15
Are you sure your root partition is /dev/hdb1? Isn't that your boot partition?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Editing hoe Linux - General 2 11-07-2004 06:45 PM
Problem with Grub configuration (updated kernel) Patrique Linux - Software 4 06-05-2004 07:56 AM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM
Kernel panic after editing grub bruno buys Linux - Newbie 2 12-02-2003 09:43 AM
Grub: Editing Kryptow Linux - Newbie 4 09-05-2002 01:47 AM


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