<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>EFI on nagg.eu</title><link>https://nagg.eu/tags/efi/</link><description>Recent content in EFI on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 26 Sep 2018 12:52:55 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/efi/index.xml" rel="self" type="application/rss+xml"/><item><title>CentOS 7: failed to open \efi\centos\grubx64.efi</title><link>https://nagg.eu/centos-7-failed-to-open-eficentosgrubx64-efi/</link><pubDate>Wed, 26 Sep 2018 12:52:55 +0000</pubDate><guid>https://nagg.eu/centos-7-failed-to-open-eficentosgrubx64-efi/</guid><description>&lt;p&gt;For some reason one of my CentOS 7 boxes decided to nuke itself yesterday, when
I powered it on it prompted me with the following error: &amp;ldquo;failed to open
\efi\centos\grubx64.efi&amp;rdquo;.&lt;br&gt;
What I did to fix it is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Boot up a rescue USB, mount the required partitions and chroot.&lt;/li&gt;
&lt;li&gt;Add a DNS server:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ echo &amp;#34;nameserver *.*.*.*&amp;#34; &amp;gt;&amp;gt; /etc/resolv.conf
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Enable networking using ifconfig (in my case it was already enabled).&lt;/li&gt;
&lt;li&gt;Install some additional grub2 modules:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ yum install grub2-efi-modules
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Reinstall grub, read &amp;ldquo;/etc/fstab&amp;rdquo; or &amp;ldquo;lsblk&amp;rdquo; command to find it:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ /sbin/grub2-install /dev/boot/partition
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Reinstall grub:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ yum reinstall grub-efi shim
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Rebuild grub.cfg file:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;
$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>