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

General support questions

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

Postby 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: Select all
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


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?
saucy80
 
Posts: 3
Joined: 2012/11/15 01:49:17

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

Postby TrevorH » 2012/11/15 10:07:33

Are you using software RAID?
User avatar
TrevorH
Forum Moderator
 
Posts: 9116
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Postby saucy80 » 2012/11/15 11:45:46

TrevorH wrote:
Are you using software RAID?


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.
saucy80
 
Posts: 3
Joined: 2012/11/15 01:49:17

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

Postby YBellefeuille » 2012/11/17 01:28:34

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.

This suggests to me that there's some hidden control character in grub.conf. Try deleting the file and recreating it.
YBellefeuille
 
Posts: 312
Joined: 2012/03/06 22:30:17
Location: Ottawa

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

Postby 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.
saucy80
 
Posts: 3
Joined: 2012/11/15 01:49:17

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

Postby 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].
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests