LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-11-2008, 01:16 PM   #1
cmeyer
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
Problems with /boot/grub/grub.conf not being read properly on reboots


Using CentOS 5.2 - current with updates

I have modified several parameters in my /boot/grub/grub.conf file and these modifications are not being applied on reboot. Although I don't consider myself an expert, I am not a total newb and am sure this is deeper than a misconfiguration in the file.

Some of the modifications I have made include commenting out the following lines with #:
default=0
timeout=5
hiddenmenu

I have also deleted an entire option for an older CentOS 5 kernel (2.6.18-92.el5xen) as I am now using 2.6.18-92.1.13.el5xen.

When I reboot, I still default to the first option, I still timeout in 5 seconds and it still hides the boot menu until I press a key. If I press a key I still have 3 options (the 2 xen kernels and windows which is on a separate drive) even though I only have 2 options in my /boot/grub/grub.conf file. I have checked and both /etc/grub and /boot/grub/menu.lst are linked to /boot/grub/grub.conf and as such are identical.

I am not running a separate boot partition like I normally do. Instead I have 3 drives running software raid. The root partition is a raid 1 array (md0) which is spread across /dev/sdb and /dev/sdc and uses 30GB of my 500 GB drives. The /boot is a directory on that array. There is also a RAID 5 array (md1) spread across /dev/sdb /dev/sdc and /dev/sdd used for storage (400+GB per drive) and my swap and /var/log are located in the remaining space on /dev/sdd.

I think the reason boot isn't being read is somehow related to the fact that is a directory on my root partition which is a RAID 1 array. Any ideas? BTW - I have searched the drive (find / -name grub.conf) for another grub.conf file and can't find any other than /boot/grub/grub.conf and the symlink in /etc/ I mentioned before.

Thanks in advance!!

-Craig
 
Old 10-11-2008, 06:34 PM   #2
cmeyer
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Problem solved

Not sure about the original cause but it was fixed by reinstalling grub to the mbr of the boot drive (# grub-install /dev/hda). Now it reads the /boot/grub/grub.conf file every time on bootup even if I change things.

If anyone can identify root cause, I welcome it. Otherwise, this is resolved.

regards,

-Craig
 
  


Reply



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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Problems with GRUB, not using whats in grub.conf **FIXED silentpetey Linux - General 1 11-06-2006 09:24 AM
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
nano -w /boot/grub/grub.conf Tbagz Linux - Newbie 2 10-31-2005 06:42 PM
grub refuses to read grub.conf 0pal_t0ad Linux - Newbie 2 03-27-2005 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 PM.

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