LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-07-2006, 11:26 AM   #1
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
Restoring boot menu with grub shell


Greetings!

To all Linux Wizards, I am stumped. I have a laptop, 40 GB with FC5 installed. Here is
the output of df:

Quote:
11:13 AM ~ : df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 9920624 975708 8432848 11% /
/dev/hda1 77749 15841 57894 22% /boot
tmpfs 111336 0 111336 0% /dev/shm
/dev/hda5 7438480 3718744 3335788 53% /home
/dev/hda6 2482048 69568 2284364 3% /tmp
/dev/hda2 14877092 5489160 8620028 39% /usr
/dev/hda7 2482048 226884 2127048 10% /var
I have an 80GB external hard drive that I installed Ubuntu on and it wanted to install GRUB and I let it, for some silly reason. I ran 'grub-install hd0' to no avail. When the computer starts I end up in a GRUB shell and I type the following:

Quote:
root (hd0,0)
kernel /vmlinuz-2.6.15-rfr ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15-rfr.img
boot...
...that boots into FC5 with no problem. I did a little googling and found a page with directions to re-install grub so the grub boot menu shows up at boot time. Didn't work.
Here is the output from a GRUB shell:

Quote:
grub>
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub>
setup (hd0,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is n
ot fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is n
ot fatal)
Running "install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/
grub/grub.conf "... succeeded
Done.

grub>
Something obviously failed here but then something succeeded. I then type 'quit' then type 'reboot' and I am again returned to a GRUB shell. I don't want a GRUB shell, I want the menu!

I know there is someone who can tell me what I'm not doing correctly, please offer insight.

Thanks loads!
 
Old 07-07-2006, 12:31 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
I had the same problem after installing a second Linux once. Unfortunately I'm not at home to look at my notes and don't quite remember what I did to fix it. I should probably just keep my mouth shut or I'll booger things up worse. What I do remember is that the grub.conf file I wanted to use had gotten moved to /boot/boot/grub/grub.conf (by me, not the second install).

Quote:
setup (hd0,0)
installs GRUB on the first partition. To install GRUB to the MBR it's
Quote:
setup (hd0)
.

Here's the GRUB manual. I know I found the solution by reading that. Sorry I couldn't be more help.
 
Old 07-07-2006, 12:44 PM   #3
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Original Poster
Rep: Reputation: 15
Thank you Arow, I'll keep pluggin' away at it.
 
Old 07-07-2006, 03:26 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
If you are getting a GRUB shell prompt at startup, it means that GRUB is installed. I think it does this if it cannot find it's configuration file--typically /boot/grub/menu.lst

Note that GRUB only knows where to find this if you tell it when you install it. (I think) the command is "root (hdx,y) Check the GRUB manual to be sure.

First, check if you have menu.lst
 
Old 07-07-2006, 07:17 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
pixellany is right.

Grub will return to a Grub prompt if /boot/grub/menu.lst is missing or defective.

Post your /boot/grub/menu.lst if the problem persists.
 
Old 07-08-2006, 11:09 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Yep, had a chance to review my notes now that I'm at home. That was exactly what my problem was. Since I had moved things around and gotten that extra /boot in the path, GRUB couldn't find the configuration file. It needs to be at /boot/grub/grub.conf. All I did is copy the file from /boot/boot/grub to /boot/grub, make a link called menu.lst, and, voila I was rockin' and rollin'.

However, you should look at or post your grub.conf file to make sure it's OK.

BTW, in Fedora /boot/grub/menu.lst is a link to /boot/grub/grub.conf.
 
  


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
Help, Grub has taken over boot menu dude2k5 Linspire/Freespire 6 12-13-2005 05:50 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
Grub Boot Menu avatar_58 Linux - General 2 05-20-2005 11:29 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM


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

Main Menu
Advertisement
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