Grub install always gives me grub prompt?
After a misconfiguration of a newly installed linux kernel, my Debian Etch server stopped booting due to a grub problem. After booting using a live CD I fixed the grub (so I thought) by fixing the menu.lst and installing grub. However, I always get the grub> boot. I can boot into linux using the following commands at the grub prompt:
kernel /vmlinuz root=/dev/hda1
works perfectly. So I would think that calling
setup (hd0) (hd0,0) after the above commands would work, but it doesn't? I always get the grub prompt after boot again.
When booted in linux (using the commands above) I run
But this also doesn't work, it still gives me the grub prompt??
Could it be that I have accidentally ran grub-install /dev/hda1 instead of grub-install /dev/hda? And how should I recover?
Any help appreciated!
Try it this way
Where exactly are the different stages of grub installed? Are these all on the MBR?
And how should I completely remove the grub loader? fdisk /MBR fixes the MBR, but what about the grub stage on /dev/hda1 (or is this the same)?
Btw, I have only one harddrive in the system, with two partitions, a linux partition (dev/hda1) and a swap partition (/dev/hda2)
I've solved the problem.
Turned out that my stage files were broken. I downloaded the latest grub sources and rebuild the stage files (stage1, e2fs_stage1.5, stage2) and put them into my grub folder. Reinstalled grub and now all is swell again!
Thread may be closed.
|All times are GMT -5. The time now is 07:23 AM.|