LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2008, 08:16 PM   #1
Erik99
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Question grub using the wrong grub.conf file


I am having an issue where the grub.conf file that my MBR sees is seemingly different than any grub.conf file that is on my Linux system (CentOS 5). The OS was installed by someone else who is unavailable. I beleive there is a small Dell partition and a small Windows partition that holds the Windows that came with the machine. It wasn't set up for dual boot so I'm not sure why that partition was kept. Anyway, whenever I download a newer kernel or manually edit my local grub.conf file nothing seems to change with the actual grub that is in use.

Anybody know what could be happening here or how I can fix it? I am a newbie when it comes to grub.
 
Old 02-20-2008, 08:47 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
go down load super grub i keep it handy the grub looks for the menu.1st file and follows it;s instructions. you would think not alway not sure but alot of times I have had to type in the kernel and the hard drive if you installed on a lets say another hard drive and grubb put the boot loader on the hd0,0 =hda1 or= sda1 but you put the install on hd1,0 hdb1 or sdb1 it did not know this default is hd0,0 hda1 sda1.
you need to tell this to grub before you loaded it. I know how are you suposed to knoe down load and burn the super grub do a manual linux load it will find your kernel and load it next time make the boot floppy ok so you do not have this proble boot floppy boot cdrom what ever. good luck my friend here is some examples for diferent hard drive when propted you can edit the comand or type c and then type in a comand.
title linux (hda1)
root (hd0,0)
kernel /boot/vmlinuz-huge-smp-2.6.21.5-smp


title linux-2.6.23.12 (hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23.12
boot

title linux-2..6.23.12-smp (hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23.12-smp
then hard drive 1 partition 2

title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdb1 ro vga=normal
# Linux bootable partition config ends.
hope this helps.
 
Old 02-20-2008, 09:34 PM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Just reinstall Grub from your Linux system. http://www.gnu.org/software/grub/man...-natively.html
 
  


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
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
No Grub.Conf File in 6.10? carlosinfl Ubuntu 6 02-21-2007 07:20 PM
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 04:04 AM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
No grub.conf file dhawal Linux - Enterprise 3 10-22-2005 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 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
Open Source Consulting | Domain Registration