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

General support questions
Post Reply
saucy80
Posts: 3
Joined: 2012/11/15 01:49:17

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

Post by saucy80 » 2012/11/15 02:01:58

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?

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2012/11/15 10:07:33

Are you using software RAID?

saucy80
Posts: 3
Joined: 2012/11/15 01:49:17

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

Post by saucy80 » 2012/11/15 11:45:46

[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.

YBellefeuille
Posts: 319
Joined: 2012/03/06 22:30:17
Location: Ottawa

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

Post by YBellefeuille » 2012/11/17 01:28:34

[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.

saucy80
Posts: 3
Joined: 2012/11/15 01:49:17

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

Post by saucy80 » 2012/11/17 14:56:11

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.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2012/11/18 00:36:09

Thank you for reporting back and explaining what you had found.

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

Post Reply