[SOLVED] Grub Boot Loader installation

General support questions including new installations
Post Reply
rjvdhiman
Posts: 2
Joined: 2010/07/29 20:59:09
Location: Luton, UK
Contact:

[SOLVED] Grub Boot Loader installation

Post by rjvdhiman » 2010/08/28 14:53:12

Hi,

As part of troubleshooting practice I have installed centos 4.8 without the bootloader. After that I installed the boot loader by using rescue mode in the following manner:

chroot /mnt/sysimage

# grub-install (hd0,0) root=/boot /dev/sda

Now I can get the grub prompt when i reboot the machine.

grub>

and then tried couple of more commands to boot the system but everytime I am getting the kernal panic error. I run the following command on grub prompt:

grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub> kernel /vmlinux-2.6.9-89.EL root=/dev/sda

grub> boot


after running these command I am getting kernal panic errors and not able to load the OS.

Can anyone help me out here !

Thank you !

rjvdhiman
Posts: 2
Joined: 2010/07/29 20:59:09
Location: Luton, UK
Contact:

Re: Grub Boot Loader installation

Post by rjvdhiman » 2010/08/28 15:18:06

I have figured it out !!

Actually the configuration file was missing. So after installing grub I had to create the grub configuration file manualy.


:-)

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] Grub Boot Loader installation

Post by pschaff » 2010/08/28 18:12:46

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]


Thanks for posting your own solution. Marking the topic [SOLVED] for posterity.

Post Reply

Return to “CentOS 4 - General Support”