Fedora Linux Support Community & Resources Center
  #1  
Old 5th August 2007, 03:37 AM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Re-Install GRUB from within Fedora (6)

How does one go about re-installing GRUB from within Fedora? I can still boot from my current GRUB installation- barely. Part of the problem is the CD/DVD drive stopped working so I need to do it from within Fedora.

Thanks.
Reply With Quote
  #2  
Old 5th August 2007, 06:58 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Please describe the boot-up problem specifics.

You *may* need to run "grub-install" (see the man page and the 'info').
Alternatively perhaps you just need to edit /etc/grub/grub.conf
Reply With Quote
  #3  
Old 5th August 2007, 04:51 PM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Thanks for the reply.

Ok what happens is it hangs at "GRUB Loading Stage2..."

I have figured out a work around which is to put a bootable cd (any kind) in the drive. With luck, after a few tries it will boot into the Hard Drive. My BIOS is set to boot from HD and changing it around does not help.

There are 2 things I am going to try. Updating the bios (in windows, of course) and re-installing GRUB.

My computer is an Acer Aspire 1640 laptop. Centrino, 512RAM, 60GB HDD.
Reply With Quote
  #4  
Old 5th August 2007, 05:20 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
Here's the 'standard' method:

1. Boot off the 1st. Fedora CD or use the Fedora Rescue CD
2. At the boot prompt type 'linux rescue'
3. The rescue mode will find the fedora installation
4. Type 'chroot /mnt/sysimage' (without quotes)
5. Type 'grub-install /dev/hda' (to install Grub to the MBR of the 1st HD)
6. Restart and you should get the boot menu
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #5  
Old 5th August 2007, 05:31 PM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
The problem is I can't boot from a CD. If I put a bootable CD in, the computer boots from HDD.
Reply With Quote
  #6  
Old 5th August 2007, 07:17 PM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
here is grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu

title Fedora 6 (2.6.20-1.2944.fc6)
root (hd0,2)
kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2944.fc6.img

#title Fedora Core (2.6.20-1.2933.fc6)
# root (hd0,2)
# kernel /vmlinuz-2.6.20-1.2933.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
# initrd /initrd-2.6.20-1.2933.fc6.img

title Windows XP
rootnoverify (hd0,1)
chainloader +1
Reply With Quote
  #7  
Old 5th August 2007, 08:26 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
Acorn, can't you access the BIOS (might be 'del' or 'F1' or whatever key is indicated during that post message) and then switch your boot order to have the CD-RW be the first boot device? That way you could use the CD to fix things.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #8  
Old 5th August 2007, 08:35 PM
lmo Offline
Registered User
 
Join Date: Mar 2007
Posts: 1,047
2 ways to install grub from within Fedora:

1. bob's step 5.
Code:
grub-install /dev/hda
2. The way I do it
Code:
grub
grub>root (hd0,2)
grub>setup (hd0)
grub>quit
based on the "root (hd0,2)" in grub.conf which is indicating that the third partition contains the /boot partition and assuming grub is to be installed on the MBR of the first hard drive.

Question regarding bob's step 5. method: In F7 doesn't hda have to be changed to sda?
Though, in FC6, as shown should be correct.

Last edited by lmo; 5th August 2007 at 08:38 PM.
Reply With Quote
  #9  
Old 5th August 2007, 09:07 PM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,213
Absolutely right! Got to update that - still copying/pasting from my FC6 notes.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #10  
Old 5th August 2007, 10:27 PM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Ok This is a bit confusing.

If boot order = CD first ---> boot from HDD*
If boot order = HDD first ---> boot from HDD*

*Only with (any) bootable cd in. May have to try a few time with cd in, then out, then in, etc... until it boots.

I have updated my BIOS to the new (Vista-capable) version. It did not help, in fact it made my integrated graphics card lock at 64MB, so I used the old version. (now I can go up to 128 again)

Last edited by Acorn22; 5th August 2007 at 10:39 PM.
Reply With Quote
  #11  
Old 5th August 2007, 10:40 PM
Acorn22 Offline
Registered User
 
Join Date: Aug 2007
Posts: 6
Also I would like to point out that my DVD tray will not open once booted and the cd I have in there does not show up.
Reply With Quote
Reply

Tags
fedora, grub, reinstall

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure GRUB After Fedora Install Ek0nomik Installation and Live Media 4 1st October 2007 07:25 PM
Fedora 7 - No GRUB after install vybez Installation and Live Media 3 23rd August 2007 01:00 AM
Install Fedora GRUB veagles Using Fedora 2 19th May 2007 08:25 AM


Current GMT-time: 04:46 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat