" GRUB file not read properly " Error

Status
Not open for further replies.

whim_gen

Journeyman
Hi,
First some background....
I installed RH 8.0 in my old system without a glitch during installation(text only no GUI)....
Before this I was using Vector Linux 4.3 with LILO as bootloader.
Now even after installing GRUB LILO refused to go away.
So i used fdisk /mbr using a floppy disk.

Now i tried installing GRUB from rescue mode by the usual chroot /mnt/sysimage etc (as explained in the sticky thread)
But it said some permission error and stuff.
So ,I booted from a boot disk and under root and gave the following command...
Code:
grub-install /dev/hda
.
It gave /boot/grub/stage1 not read properly.

I even checked grub.conf file .
Details are k there.

So please help me solve this.
Thanks for reading such a looong post :oops:
 

ujjwal

Padawan
Did you ensure to chroot to your linux partition before running grub-install?

The GRUB installer will look for the files it needs under /boot/grub, and store their physical address in the actual bootloader. If the installer does not find the required files, you will get the error message.

I assume that

/dev/hda1 - Redhat /boot partition (if present)
/dev/hda2 - Redhat / partition

1. Boot into your boot disk and mount the / partition (mount /dev/hda2 /mnt/lin)

2. chroot to this directory (chroot /mnt/lin), mount the /boot partition at the appropriate place (mount /dev/hda1 /boot)

3. Now run grub-install
 
OP
W

whim_gen

Journeyman
/dev/hda1 is my / partition...no seperate partition for /boot

Cud u please elaborate what u meant by "Mount /boot at appropriate place"??

Thanks in advance...
 

ujjwal

Padawan
If you don't have a seperate /boot partition, you can leave that part. I mentioned it as I thought redhat creates a seperate /boot partition by default.
 
Status
Not open for further replies.
Top Bottom