LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   configuring grub (https://www.linuxquestions.org/questions/linux-newbie-8/configuring-grub-106472/)

holdenowen 10-20-2003 06:06 PM

configuring grub
 
Hi I have just installed kernel-2.4.22 and run the relevant make config, make dep, make clean and make bzImage commands and would like to know how to configure grub to include the new kernel as an option when booting.
I use RH9 and have used red hat network to take care of this in the past where the rpms do all the work with grub.

realos 10-20-2003 07:09 PM

Here is a very good article: http://www.linuxjournal.com/article.php?sid=4622

I guess you also have copied the relevant files (kernel, map etc) to /boot. What you need to do now is:

1) "update-grub"

which will create a /boot/grub/menu.lst file. Read the above mentioned article to edit hard drives in case your /boot directory is on another partition than / directory.

(hd0,0) first partition of primary master hd
(hd0,1) second partition of primanry master hd
(hd1,0) first partition of of primary slave hd

2) Create a bootable flloppy by:
2.1)
"mkdir -p /floppy/boot/grub"
"cp /usr/local/share/grub/i386-pc/stage* /floppy/boot/grub"

2.2) Write grub to mbr of the floppy
"grub-floppy"

2.3) copy the edited menu.lst to /floppy/boot/grub/menu.lst

3) rstart from floppy

If your system starts up correctly, copy the menu.lst in /boot/grub/menu.lst and install grub in mbr of hd with "grub-intall".

good luck and have a look at the article given above.

holdenowen 10-20-2003 07:32 PM

Thanks


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