Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th June 2012, 09:51 AM
interzoneuk Offline
Registered User
 
Join Date: Jan 2005
Posts: 26
linuxfirefox
How to reinstall grub/UEFI on a UEFI install ? Equivalent of chroot, grub-install ?

Hi.

This related to my last post, however this is a specific

UEFI is driving me slighly crazy, but i'm determined to get it to work correctly.

It is fine if I just install 1 UEFI OS, however when I add multiple OS's this is went the issue starts...

I tried to install a 2nd Fedora first as UEFI (that prevented me getting to the original install), then in non UEFI mode - that installed correctly but wiped out UEFI - i.e if I now choose Fedora from my bios's UEFI menu it restarts straight away...

To recover a system with a broken bootloader on a non UEFI install I would do something like....

Quote:

mount /dev/sda5 /mnt/sda5
mount /dev/sda3 /mnt/sda5/boot
mount -t proc none /mnt/sda5/proc
mount --rbind /dev /mnt/sda5/dev

chroot /mnt/sda5
grub-install /dev/sda
What is the Equivalent with UEFI.

I.e - how can I rescue my UEFI install?

Any help would be welcomed.

Last edited by interzoneuk; 25th June 2012 at 10:05 AM.
Reply With Quote
  #2  
Old 25th June 2012, 08:06 PM
srs5694 Offline
Registered User
 
Join Date: Jan 2011
Location: Woonsocket, RI
Posts: 377
linuxfirefox
Re: How to reinstall grub/UEFI on a UEFI install ? Equivalent of chroot, grub-install

With GRUB 2, I'm pretty sure that you can use "grub-install" without any options to do the job; however, Fedora uses a heavily modified GRUB Legacy on EFI systems. (Its developers believe that GRUB 2 isn't yet reliable enough on EFI. I agree with them.) I don't happen to have an installation handy with GRUB Legacy set up, so I'm not sure if its EFI version uses grub-install. The package file I just checked doesn't include it; it just places the boot loader binary where it belongs. EFI boot loader installation is much simpler than it is under BIOS; all you need to do is to copy files to the ESP. In the case of GRUB Legacy, the file is called grub.efi, and it normally goes in the EFI/redhat directory on the ESP, which is normally mounted at /boot/efi. Thus, it normally goes in /boot/efi/EFI/redhat in the Linux filesystem. It should have a configuration file called grub.conf in the same place. If this file is missing or damaged, your best bet is to re-install the grub-efi package.

That said, it sounds like your firmware may be attempting to boot in BIOS mode rather than in EFI mode because it's found BIOS boot code in the MBR. To fix this, you must wipe out that code. You can do this with dd:

Code:
dd if=/dev/zero of=/dev/sda bs=440 count=1
Type this as root. Be sure to get the bs= and count= options right, or you might end up damaging your partition table or even data in your partitions.

You may want to check my Web page on EFI boot loaders. It may help you understand what's going on and how to manage your boot loaders. It's really much better than the BIOS system once you understand how it works, with the caveat that some EFI implementations are badly designed and create unnecessary problems.
Reply With Quote
Reply

Tags
chroot, equivalent, grub or uefi, grubinstall, install, reinstall, uefi

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
UEFI install hangs after initrd Fewmets Installation and Live Media 19 9th June 2012 05:22 AM
Instaled FC17 in UEFI/EFI ? mode - how to chainload grub on another partition. interzoneuk Using Fedora 10 8th June 2012 10:35 AM
How I Turned Off UEFI and Got Fedora to Install joncr Installation and Live Media 3 5th June 2012 09:52 PM
Install UEFI Fedora 14 Without DVD Adhi Installation and Live Media 5 23rd April 2011 04:55 AM
Fedora 10 and x64 UEFI Install techguy378 Installation and Live Media 0 1st December 2008 09:49 AM


Current GMT-time: 15:12 (Friday, 24-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