5 Posts

July 25th, 2007 12:00

This is a symptom that GRUB cannot find the next stage boot code
(stage 1.5 or stage 2). Unfortunately it might not be easy to
show you how to fix it. Typically you want to boot from a CD or
DVD media and enter 'text' at the boot prompt (or rescue mode).
If you use text mode, wait until it asks for the Language, then
hit Ctrl-Alt-F2 to get a BASH prompt. Then it's the tricky part:

1) Find out where the /boot partition locates.
2) Rerun the GRUB to re-install MBR code.

Say, if I use 'fdisk -l' and find that /boot is in /dev/hda1
and / is in /dev/hda2. This is what I usually do

mkdir /foo
mount /dev/hda2 /foo
/foo/sbin/grub

This will put you in the GRUB prompt. Then you do

GRUB> root (hd0,0)
GRUB> setup (hd0)

(Notice that GRUB> is the prompt, not the string you enter.)
Here (hd0,0) correspond to /dev/hda1, your /boot partition.
'setup (hd0)' should write to the MBR of the fist hard drive.
If GRUB indicates that it has succeeded. Then you can

umount /foo

and then reboot. Good luck!

3 Posts

July 25th, 2007 15:00

Interesting why GRUB cannot find the next stages.

I have following part. table:

/dev/hda1 30GB NTFS
/dev/hda2 150GB NTFS
/dev/hda3 100MB /boot
...

Is that an issues that /boot starts 180GB from the beginning and I should move to the front the /boot ? Does GRUB has such a limitations ? I did not find anything on the web.

Thanks for the tip,I suppose I understood it. It's not clear why the GRUB lost the MBR.

Thanks,
Juraj

5 Posts

July 25th, 2007 16:00

Hmm... where is your Linux partition? You have three
partitions -- two NTFSs and one /boot (linux). GRUB
should be able to find the stuffs in /boot even if it
is beyond the first 1240 cylinders. How about show
me the output of 'fdisk -l' and contents to grub.conf?

3 Posts

July 25th, 2007 16:00

Quickly: I'm on the way home, where my PC is. The / is in the Extended partition. I'll show you the fdisk -l and grub.conf later.

My suspicions are that I have either disabled the LBA, or there is an issue with BIOS or I did some stupid mistake somewhere.

By the way: The way you recommended to me to re-write the MBR via GRUB is the same as to use grub-install /dev/hda ?

9 Posts

October 13th, 2007 17:00

Yes, the most ideal way to resolve this issue is to boot into the linux rescue and pass this command  grub--instlall /dev/hda or whatever your disk is....this should solve the issue or else simply reinstall the whole thing again if possible!!
 
Hope this helps!!
No Events found!

Top