LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to change the GRUB configuration file with kernel 2.6.7 (http://www.linuxquestions.org/questions/linux-software-2/how-to-change-the-grub-configuration-file-with-kernel-2-6-7-a-196269/)

Bassam 06-22-2004 01:43 AM

How to change the GRUB configuration file with kernel 2.6.7
 
Hi Guys,
I upgraded my linux system to kernel 2.6.7 successfully, but I don't know how to update my GRUB configuration file so I can boot up the kernel 2.6.7.

So can you support and direct me with my inquiry?

Thanks for the help
Bassam

wrongman 06-22-2004 02:36 AM

you have to add something like this to /boot/grub/menu.lst

Code:

title          Debian GNU/Linux, kernel 2.6.7-1-k7
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.7-1-k7 root=/dev/hda1 ro
initrd          /boot/initrd.img-2.6.7-1-k7
savedefault
boot

note that vmlinux-2.6.7-1-k7 it's the image of MY kernel, look in /boot to see your kernel's name
and also, /dev/hda1 is MY partition where is mounted root, to know which is yours look in /etc/fstab

then you have to reinstall grub with a "grub-install /dev/YOURHD" (if you want it in the mbr)

hw-tph 06-22-2004 02:44 AM

After you have executed make modules_install from the Linux source directory - most likely /usr/src/linux - and copied the kernel image file to /boot, open up the grub config file in your favourite text editor. The config file is usually /boot/grub/menu.lst or /boot/grub/grub.conf. A simple entry for a kernel image could look like this:
Code:

title                My own 2.6.7 kernel
root                (hd0,0)
kernel                (hd0,0)/2.6.7-myown root=/dev/hda1

That's the simplest kind of entry. Some people (and distributions) prefer using initrd kernels, in that case you'll need another line in the grub entry.

Also refer to your distribution's documentation, it could provide valuable information on how things are expected to work on your distribution.


Håkan


All times are GMT -5. The time now is 11:38 AM.