[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 882
  • Last Modified:

Centos always Boots into 'grub>' command prompt

Hello

I have a newbie linux question I am hoping someone can help me with.

I have installed Centos5 and now Centos always Boots into 'grub>' command prompt, not the normal console or gui I expected.

I'm not sure what I did to cause it to boot like this as I installed this the same as I normally do. I must have ticked something I shouldnt have.

Thanks heaps in advance
0
johnkan
Asked:
johnkan
2 Solutions
 
joolsCommented:
It sounds like it used to work....has there been any system updates?

you may be able to fix by typing the grub stuff in manually, the format for grub looks like this;
        root (hd0,0)
        kernel /vmlinuz-2.6.18-128.1.1.el5 ro root=/dev/rootvg/root rhgb quiet
        initrd /initrd-2.6.18-128.1.1.el5.img

because you may not know what kernel version you are using, if you type the first few chars then press tab, the system will list the available options, this is also applicable to the `root (hd....)` option as well...

Once you have booted try reinstalling grub on your hard disk, typically this is for the MBR rather than partition, e.g/ `grub-install /dev/sda`

you also need to make sure your /boot/grub/grub.conf file exists, note this is usually linked to /boot/grub/menu.lst.

0
 
kazimurCommented:
Have you got several hard disks? Could you change the boot order of hard disks in the BIOS?
0
 
johnkanAuthor Commented:
Thanks people.

This looks like it will need some familiarisation with grub which I'll do once I have this resolved and up and running again, so I have decided to rebuild the system and recover from a backup this time.

Thanks again.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now