Ask Your Question

How to reinstall grub in UEFI system?

asked 2016-02-01 19:30:51 -0500

Anshu36 gravatar image

I had install Fedora 22 64 bit with dual boot with windows 10. But, After reinstalling the windows 10, I can't able to go into Fedora.

I have not install grub in /dev/sda but, instead of that I have installed In /dev/sda2 which is FAT-32 EFI system, there was the efi file for both windows and Fedora. Now, there's missing entry for Fedora.

So, how do I reinstall grub in that EFI partition.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-02-02 21:28:40 -0500

GRUB installs to the MBR of /dev/sda on non-UEFI systems. An older version of GRUB could install to partitions, but there isn't room on partitions for grub2.

On UEFI systems, grub is installed as a file instead of being written directly to the disk. A configuration parameter in your system firmware (read:bios) points at that file so the computer will load it. has the instructions you need; it's just reinstalling a couple packages, really. There's also instructions in that book for using a live image to restore grub if Windows completely removed the files from the EFI partition, but there's a good chance that it simply reset the boot order, or created a new EFI partition.

edit flag offensive delete link more

answered 2016-02-01 20:58:25 -0500

florian gravatar image

updated 2016-02-01 21:06:30 -0500

To be very honest with you: This question has been asked and answered many many times on this website, as well as on other fedora-related forums and web pages. I assume you haven't searched the web for an answer? You could have found this article on Fedora's wiki, or this question here.

Just follow @ahmad-samir 's answer

edit flag offensive delete link more


Just look at my question again. I haven't install boot loader in sda, but installed in sda2. So, this problem is different as you think.

Anshu36 gravatar imageAnshu36 ( 2016-02-01 22:40:54 -0500 )edit

Sorry for the confusion. Can you tell us what exact commands you ran when ? So, the bootloader is still there and operational but just the Fedora entry is missing? Maybe you can also post the output of lsblk - That helps to understand your partition layout.

I think, you can still use the referenced answer. It shows you how to reinstall grub2 to sdX, and how to make a new grub config file. What's wrong with that? And if you are not able to boot Fedora, use a live media and chroot into your Fedora (see linked answer)

florian gravatar imageflorian ( 2016-02-02 09:06:51 -0500 )edit

@Anshu36, can you at least get to Fedora? you probably want to boot as LIVE from usb or disc and reinstall grub2

redpotatojae gravatar imageredpotatojae ( 2016-02-12 14:31:43 -0500 )edit

Question Tools

1 follower


Asked: 2016-02-01 19:30:51 -0500

Seen: 1,658 times

Last updated: Feb 02 '16