Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-22-2004, 01:43 AM   #1
Registered: Mar 2003
Location: Malaysia
Posts: 63

Rep: Reputation: 15
Question 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
Old 06-22-2004, 02:36 AM   #2
Registered: May 2004
Location: Italy
Distribution: Debian Unstable 64bit
Posts: 99

Rep: Reputation: 15
you have to add something like this to /boot/grub/menu.lst

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
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)

Last edited by wrongman; 06-22-2004 at 02:37 AM.
Old 06-22-2004, 02:44 AM   #3
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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:
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.



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
Change boot order in grub.conf file lmcilwain Fedora 3 07-12-2006 12:33 AM
Grub configuration file Buruma Linux - Newbie 10 06-20-2005 09:29 PM
kernel compile - grub configuration help redduck666 Linux - Software 6 04-09-2005 03:32 PM
Where to find the GRUB configuration script file? piggysmile Red Hat 2 10-09-2004 03:15 PM
grub bootloader : saving a new configuration file? lynnsbomb Mandriva 3 02-03-2004 04:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration