Page 1 of 1

[SOLVED] CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/15 02:01:58
by saucy80
I recently had to replace a hard drive that appeared ready to quit. After moving everything in /boot over and re-installing GRUB on to the new disk (along with editing fstab to point /boot to the new partitions UUID) and removing the old drive, I've seem to hit a bit of an issue.

When I reboot the machine, I get immediately dumped out to the grub menu. I don't see any errors or any additional information, it appears to go straight to the prompt from what I can tell. For reference, my base grub.conf:

[code]
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS
root (hd0,0)
kernel /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=/dev/mapper/vg_sechserv-lv_root
initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
[/code]

The thing that has me confused is that if I manually type in the root, kernel and initrd lines exactly as they are in grub.conf into the grub prompt, everything boots just fine. Am I missing something else? Some other step I needed to complete when I moved the boot file to the new drive?

Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/15 10:07:33
by TrevorH
Are you using software RAID?

Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/15 11:45:46
by saucy80
[quote]
TrevorH wrote:
Are you using software RAID?[/quote]

Nope, no software raid. I have 3 drives in the system which are all part of a volume group, save one partition which serves as boot.

Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/17 01:28:34
by YBellefeuille
[quote]The thing that has me confused is that if I manually type in the root, kernel and initrd lines exactly as they are in grub.conf into the grub prompt, everything boots just fine. [/quote]
This suggests to me that there's some hidden control character in [b]grub.conf[/b]. Try deleting the file and recreating it.

Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/17 14:56:11
by saucy80
After a few more hours of head scratching I found the problem. At some point during the move and grub re-install, it looks like an additional boot folder was created within boot (came out to be /boot/boot). Once I removed this folder and installed grub again, everything ended up the proper grub folder (/boot/grub) and I was able to reboot without issue.

I must have messed something up at some point but either way, the issue is fixed. Thanks for the help everyone.

[SOLVED] CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)

Posted: 2012/11/18 00:36:09
by AlanBartlett
Thank you for reporting back and explaining what you had found.

On your behalf and for posterity, this thread is now marked [SOLVED].