Click to See Complete Forum and Search --> : GRUB boot loader - sits at command prompt
linux_pete
08-08-2002, 10:32 AM
I am running Linux RH 7.2 and it used to boot fine with GRUB allowing me to boot Win2K or Linux....for some reason, when my machine reboots it simply goes into the GRUB command prompt and sits there and I have no idea why and how to boot anything from here.
It used to provide me with the two boot options and I simply select the right one.
Does anyone know how to get out of this command prompt and set it up so that it boots normally again??
My GRUB is loaded in the MBR.
Any help is greatly appreciated.
Icarus
08-08-2002, 11:12 AM
Sounds like it's not loading the /boot directory so it's not finding grub.conf....
Try using the rescue from the first RH cd
at the load promt type "linux rescue"
follow the onscreen instructions to mount the drive and then chroot it.
then you can re-install Grub, see Zen and the Art of using GRUB (http://linux-sxs.org/grubtg.html)
linux_pete
08-08-2002, 12:30 PM
You've been a great help.
My root system is loaded in /mnt/sysimage
How do I re-install grub?
Dave2001
08-08-2002, 12:52 PM
The only thing you need to know at this moment it where your root partition is hda1,2,3,4,5,6 .... whatever and the name of your kernel ....
what most likly happened is that you somehow deleted or moved the file menu.lst that should be in /boot/grub then you get the command prompt .
In order to boot you have to issue
root (hd0,2) if your root partition is /dev/hda3 ( 0 stands for first harddisk and the 2 for the third partition )
then you do a
kernel (hd0,2)/kernel ( assuming that your kernel resides in / )
and in the end just say
boot
Then try to find your menu.lst and put it back into place .
David
bpotts
08-13-2002, 04:01 AM
Anybody know the offical command to install grub to the MBR? This is NOT for a duel boot PC. I have /boot (hda1) active and it has grub in there, but it won't boot to it. I'm thinking that maybe I have to install grub in the MBR which I wouldn't think I would have to do as long as /boot is the first partition on the drive and has grub in IT. Any info would be appreciated.
Basically:
Do I need to put grub in the MBR if /boot already has grub and this is a single disk/OS system?
If so, then what is the command to install grub in MBR??
Thanks in advance,
Brad
Dave2001
08-13-2002, 01:16 PM
The official command to install grub in the boot sector of your first harddisk is
grub-install /dev/hda
David
bpotts
08-13-2002, 11:52 PM
Cool...thanks everybody!
Brad