How To: Reinstall Grub Boot Loader (FC6)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How To: Reinstall Grub Boot Loader (FC6)

    How to Reinstall FC6 Grub Boot Loader;
    [Eg this is required if a Windows XP reinstallation overwrote/disabled your FC6 Linux boot partition]

    ***disclaimer; advice offered with no warranty***

    1. Insert FC6 DVD
    2. Reboot PC
    3. type 'linux rescue' when prompted
    4. Accept standard options [Eg English]
    5. select your Linux partition used during the original FC6 installation when Grub was originally installed (Eg SDA2)
    6. when prompted, select allow write access [ie, NOT read only]
    7. type 'chroot /mnt/sysimage' [as suggested by linux rescue]
    8. type 'grub-install /dev/sda' [assuming you wish to use the Primary boot sector of sda - you will wish to use this if you installed it here during the original FC6 installation]
    9. restart PC
    10. Grub should load, and your previous grub settings [before you reinstalled Windows XP] should have remained

    Richard

  2. #2
    Join Date
    May 2006
    Location
    Caracas, Venezuela
    Posts
    1,886
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you are in the command line, try to type:

    /sbin/fdisk -l

    to see what partitions an drives are recognized by linux.
    Pietro Pesci Feltri

    PowerBook 15" G4 and
    MacBook Pro 17" Intel Core 2 Duo
    Intel I5 Desktop

  3. #3
    rickhg12hs Guest

    Reinstall dual boot F7 Grub?

    I've had a dual boot Vista/FC6 and now F7 laptop running for about 6 months with no problems. I used EasyBCD to extend the Vista boot loader to chainload GRUB on another partition. It's worked without incident for a long time.

    Now, Vista still works normally (well, as it does), but after selecting my F7 option (from the Vista boot loader), the screen goes blank then "GRUB read error" appears in the upper left corner ... and that's it. A 3-finger reboot is required, no Fedora.

    I've read a number of posts and it seems that the error is caused by STAGE1 not being able to properly load STAGE2. The Rescue CD has no problem mounting the partition and everything looks like it's there (including everything in /boot and /boot/grub)... just can't seem to boot it. 8-(

    My F7 partition is /dev/sda5 or (hd0,4) in GRUB-speak. From grub I've tried:

    root (hd0,4)
    setup (hd0,4)

    It seemed to complete normally, but the same "GRUB read error" message appears on boot.

    Quote Originally Posted by richardbaxter
    How to Reinstall FC6 Grub Boot Loader;

    8. type 'grub-install /dev/sda' [assuming you wish to use the Primary boot sector of sda - you will wish to use this if you installed it here during the original FC6 installation]
    Is there a reason/way to try grub-install if I don't want to mess with the drives MBR? Will it do something that my grub commands above have not?

    Since I get the "GRUB read error" message, does that mean the Vista boot loader has properly chained and GRUB began running? I.e., Vista hasn't hosed the F7 GRUB, right?

    What should I try next? And, yes the Vista must stay (anything that doesn't kill you only makes you stronger). 8-)

    Thanks for any consideration.

  4. #4
    Join Date
    Aug 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To: Reinstall Grub Boot Loader (FC6)

    NB this methodology appears to work for both EL5 and EL6 also.

    ...

    Quote Originally Posted by rickhg12hs
    I've had a dual boot Vista/FC6 and now F7 laptop running for about 6 months with no problems. I used EasyBCD to extend the Vista boot loader to chainload GRUB on another partition. It's worked without incident for a long time.
    I would not recommend using the Windows Boot Manager to start anything other than Windows. I personally install Grub as my primary boot manger (on the primary boot sector).

    Ideally, Windows is installed first, and then Linux (eg EL5/EL6) is installed (with grub) - which generally overwrites the Windows boot sequence. Grub automatically detects the Windows partition and adds to grub.conf the necessary command to load it.

    However, if Windows is installed after Linux, grub can be extended to load the windows partition (eg XP, Win7) by manually adding the necessary command to grub.conf.

    Added are some examples of grub.conf windows boot commands below. "PARTITIONINDEX" in these examples should be set to the partition index of Windows. This should generally be "0" if Windows was installed first*. You should use the command "/sbin/fdisk -l" (referenced by ppesci) to determine/confirm the partition index of Windows (or the Windows Boot Manager). Note, there is no blank line between the line "title..." and the line "root...".

    title Windows XP
    root (hd0,PARTITIONINDEX)
    savedefault
    makeactive
    chainloader +1

    title Windows 7
    rootnoverify (hd0,PARTITIONINDEX)
    chainloader +1

    * Note again; you shouldn't have to modify grub.conf at all if Windows was installed before Linux. However exceptions do exist. An example of an exception would be if you RE-installed Windows and Windows changed the partition in which it needed to initialise its boot sequence/manager. These things happen, from experience - particularly on laptops with pre-installed copies of Windows.
    Last edited by richardbaxter; 5th September 2011 at 06:36 PM. Reason: No edit made - edit automatically applied - cannot double post (two independent replies)

  5. #5
    Join Date
    Aug 2011
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How To: Reinstall Grub Boot Loader (FC6)

    Thank you for this tips.

Similar Threads

  1. Rebuilding the Grub Boot Loader on Master Boot Record (MBR) w Fedora Linux
    By Vector in forum Guides & Solutions (Not For Questions)
    Replies: 6
    Last Post: 1st August 2009, 08:39 AM
  2. Fedora9 boot - alternate boot loader Bing + grub
    By jadube in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 24th May 2008, 03:01 AM
  3. Grub boot loader issues? (stupid grub!)
    By Cooldan1 in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 30th July 2007, 02:10 AM
  4. Howto reinstall Grub(boot loader)
    By khunmyo in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 10th March 2007, 10:00 AM
  5. GRUB boot loader r windows boot loader?
    By Rebels Mascot in forum Using Fedora
    Replies: 4
    Last Post: 12th May 2005, 03:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •