Configuring grub

"Dermot Paikkos" <[email protected]> Fri, 12 Sep 2008 15:03:19 +0100
Newsgroups org.kernel.vger.linux-admin
Message-ID <L5DAE23984F1043cfB2590D770EC43285.1221228193.earth.sciencephoto.co.uk@MHS>
Hi,

I have hit a problem. My HP server rebooted after installing some 
updates and gave me a red screen Illegal OpCode error. After doing some 
hunting around, the best answer I found was on a thread on a mailing 
list that said that the error was due to the the BIOS trying to find a 
correct boot image and failing.

I can boot the system from the OS CD (CentOS) and chroot so that my 
existing root system is installed. What I can't seem to do is get grub 
to re-install the boot loader into the MBR. In an effort to make it do 
so I booted the server with a MS dos floppy and did fdisk /mbr. That has 
remoced the red screen message but I still can't get grub to configure 
my MBR correctly and I am left with a missing operating system message 
from the server.


Here's what I've tried

>grub

grub>device (hd0) /dev/cciss/c0d0	# Compaq device names
grub>root (hd0,0)
grub>setup (hd0,0)

I get a number of messages

Checking if /boot/stage1 exists...(no)
Checking if /grub/state1 exists...(yes)
Checking if /grube2fs_stage1_5 exists...(yes)
Running embed /grub/e2fs_stage1_5 (hd0,0) failed (this is not fatal)
Running embed /grub/e2fs_stage1_5 (hd0,0) failed (this is not fatal)
Running install /grub/stage1 (hd,0) /grub/stage2 p /grub/grub.conf 
succeeded
Done.

It always reads as if it's ended successfully but nothing changes and I 
can't get the boot loader into the MBR.

Can anyone spot where I might be going wrong?
Thanx in advance,
Dp.