Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to boot from grub> prompt

Status
Not open for further replies.

StickyBit

Technical User
Jan 4, 2002
264
CA
Folks,

I ran the following command to clean up my old oracle environment:

rm -rf /etc/oraInstal.log /etc/oratab /tmp/orainstall $oracle_base/*

After I rebooted the server I get as far as the grub> prompt what does this mean?

Should I just restore the box?

Stickybit.
 
I don't know anything about Oracle, so my question is, what is (was) the value of the $oracle_base variable?

Try this...
root (hd0,1)
kernel /vmlinuz-2.4.18-19 ro root=/dev/hda5
boot

Replace the /vmlinuz-... with the version of your kernel. Your specifying the kernel image here (aka bzImage). The root (hd0,1) command specifies where your /boot partition is, while the root= options specifies where the / partition is.


If you do get this up, edit the /etc/grub.conf file with the commands you used and then run a grub-install afterwards just to be safe.


ChrisP
 
My guess is that $oracle_base was empty at the time when you executed the command, since GRUB can't find it's configuration files. Try booting with a rescue CD/floppy and see if you have anything left. //Daniel
 
fluid11

can you give me the commands for Redhat 8.0
I dont know the linux kernel version

my boot sector is in /dev/hdc1
root is in /dev/hdc2
and I have a swap in /dev/hdc1

I have been trying to install redhat 8.0 and it crashed midway, now everytime I try to install I get stuck with the grub prompt.

Thanks
 
If it crashed midway, you probably won't be able to boot. I would retry the installation. Did you try installing in text-mode, rather than through the GUI?

If you want to try to boot anyway, I believe that a stock RH80 installation uses the 2.4.18-14 kernel. Are you sure its /dev/hdc, because hdc is your IDE secondary master drive, which is normally a CDROM? I had to look these commands up, but it looks like it should look something like this for /dev/hdc assuming that / is mounted at hdc2 and you have a /boot partition at hdc1...

root (hd2,1)
kernel /vmlinuz-2.4.18-14 ro root=/dev/hdc2
boot





ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top