[prev in list] [next in list] [prev in thread] [next in thread] 

List:       novalug
Subject:    Re: [novalug] Kernel recompilation
From:       David Lerner <dslerner () ieee ! org>
Date:       2002-06-27 1:37:47
[Download RAW message or body]

Tim,

There are three ways to get Grub to boot a new kernel.

First, you may edit /boot/grub/menu.lst to add a new boot entry. The 
format will match that of previous kernels, but the name of the 
kernel image, and possibly the initrd file will be different. On Red 
Hat systems, /boot/grub/menu.lst is a symbolic link to 
/boot/grub/grub.conf. There is no need to run any command after 
editing the ascii file (as with Lilo) because the ascii file itself 
is read by the stage2 Grub loader. There is no need to do anything 
if you have overwritted a kernel that was already listed in 
menu.lst. This may happen if you are unsatisfied with a new kernel 
and simply replace it with a recompiled version.

There are two other ways to boot with a new kernel that you may use 
if you have forgotten to change menu.lst or if you just want to test 
the new kernel as quickly as possible.

You can simply highlight your old Linux on the grub menu screen, 
press e to edit that entry and then highlight the kernel line and 
press e to edit that line. The editing is the same as editing a 
command line in the bash shell. Press enter when you are finished 
edith the line. You can delete a line (such as initrd) by 
highlighting it and pressing d. Finally press b to boot the edited 
configuration.

Finally, you can enter the command mode from the Grub menu by 
pressing c. Here you can type in root, kernel, and initrd entries. 
The boot command will then allow you to boot with the configuration 
that you have just entered. You will need to read the Grub 
documentation to be able to use the command mode. This documentation 
will be presentered if you enter the command "info grub" at the Bash 
command line. Abbreviated information is available at the Grub 
prompt by entering the help command.

A Grub boot floppy may be used as a rescue disk that can boot 
Windows, Linux, Free BSD, and other operating systems that are not 
otherwise bootable. You will be able to do this if you go through 
the Grub documentation and do a bit of experimenting to see how 
things work.

Dave

Tim Bogart wrote:
> All,
> 
> I have never recompiled a kernel on a system that uses grub before.  Is it 
> much different than recompiling a system that uses lilo?  What are the 
> differences?
> 
> TIA,
> 
> Tim B.

_______________________________________________
novalug mailing list
novalug@tux.org
http://www.tux.org/mailman/listinfo/novalug
for subscribe/unsubscribe see web page
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic