LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-12-2007, 06:09 PM   #1
faethon
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
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:

root (hd0,0)
kernel /vmlinuz root=/dev/hda1
initrd /initrd.img
boot


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

grub-install /dev/hda

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!
 
Old 11-12-2007, 06:22 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,102

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Try it this way
Code:
 root (hd0,0)
setup (hd0)
 
Old 11-13-2007, 04:28 AM   #3
faethon
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Try it this way
Code:
 root (hd0,0)
setup (hd0)
I've tried that as well. Unfortunately it doesn't fix the problem. Could the problem be that I've run both grub-install /dev/hda and grub-install /dev/hda1?

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)
 
Old 11-13-2007, 02:25 PM   #4
faethon
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - Newbie 3 12-11-2005 08:26 PM
How do I use GRUB to boot linux at grub prompt? Mustbox Linux - General 2 02-15-2005 01:01 PM
Clean install - grub prompt Phlow101 Linux - Newbie 8 12-13-2004 09:10 AM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - General 5 06-19-2003 06:23 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration