LinuxQuestions.org
Review your favorite Linux distribution.
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 07-07-2005, 07:34 PM   #1
philnk
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Rep: Reputation: 0
GRUB boot with 2 kernels installed


I just installed a second kernel onto Fedora 3 (latest linux kernel). How do I setup Grub to give me an option of booting to either kernel?
 
Old 07-07-2005, 07:45 PM   #2
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
http://www.redhat.com/docs/manuals/l...ootloader.html

hope that helps. im too lazy to write out specific directions. i was able to do it quite easily after taking a look at the info pages for grub.
 
Old 07-07-2005, 07:47 PM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
When you installed a second kernel, you copied the bzImage to /boot/vmlinuz.kernel_version or similar. You have also created an initrd image using the mkinitrd command.

Now all you have to do is edit the /boot/grub/grub.conf file accordingly. Take the lines that are in the file already, copy them and change accordingly: (example below)

title GNU/Linux Fedora Core 1 (2.4.22-1.2174.nptl)
root (hd0,4)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb
initrd /initrd-2.4.22-1.2174.nptl.img

This is similar to what you might have. Now to change it you would only have to copy it and make it look something like this:

title GNU/Linux Fedora Core 1 (2.6 custom made)
root (hd0,4)
kernel /vmlinuz-2.6 ro root=LABEL=/ hdc=ide-scsi apm=off acpi=on rhgb
initrd /initrd-2.6.img

Where vmlniuz-2.6 would be the actuall name you named your new kernel while copying the bzImage file to the boot directory. And initrd-2.6.img would be the name you specified as the initrd image file.
 
  


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
Just installed dual-boot, dont get GRUB jmorris8 Linux - Newbie 4 09-27-2005 04:50 AM
GRUB dual boot with two diff kernels fails at boot mosquito_dk Linux - Software 3 09-06-2004 09:18 AM
Installed Grub/lilo to A:, cannot boot into linux. MadSkillzMan Linux - Newbie 3 07-21-2004 02:24 AM
Configure grub (dual boot) with 2 OP installed already fere Linux - Newbie 2 06-07-2004 10:58 PM
Installed Fedora, which installed Grub - how to boot to Knoppix? squall14716 Linux - General 3 03-15-2004 03:11 PM

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

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