LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-22-2004, 02:43 AM   #1
Bassam
Member
 
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
Bassam
 
Old 06-22-2004, 03:36 AM   #2
wrongman
Member
 
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

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)

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

Rep: Reputation: 57
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
 
  


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


All times are GMT -5. The time now is 03:45 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration