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?
[SOLVED] CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)
Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)
Are you using software RAID?
Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)
[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.
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.
-
- Posts: 319
- Joined: 2012/03/06 22:30:17
- Location: Ottawa
Re: CentOS 6.3 Boot issue (menu.lst/grub.conf ignored?)
[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.
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?)
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.
I must have messed something up at some point but either way, the issue is fixed. Thanks for the help everyone.
- 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?)
Thank you for reporting back and explaining what you had found.
On your behalf and for posterity, this thread is now marked [SOLVED].
On your behalf and for posterity, this thread is now marked [SOLVED].