<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3616&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / EFI trouble]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3616</link>
		<description><![CDATA[The most recent posts in EFI trouble.]]></description>
		<lastBuildDate>Thu, 20 Aug 2020 10:23:51 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24203#p24203</link>
			<description><![CDATA[<p>I have now tried the keys during the Power On Self Test on my ZenBook. The delete key also works...</p><div class="codebox"><pre><code>&lt;F2&gt;  BIOS screen
&lt;delete&gt; BIOS screen
&lt;escape&gt; Boot screen</code></pre></div><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 20 Aug 2020 10:23:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24203#p24203</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24173#p24173</link>
			<description><![CDATA[<p>I have just downloaded the PDF manual for my ZenBook UX305FA and on page 54 it tells me that I press &lt;F2&gt; during POST to access the BIOS. According to this document, &lt;F2&gt; has a picture of an aeroplane. (I am on a different machine currently).</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Wed, 19 Aug 2020 09:57:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24173#p24173</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24172#p24172</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>What do you mean by &quot;firmware screen&quot;? The bios?</p></div></blockquote></div><p>I was just trying to work out what that screen is called if it is using EFI rather than BIOS, but you might want to think of it as the BIOS screen.</p><div class="quotebox"><blockquote><div><p>On my 3 latest ASUS board with AMI bios I haven&#039;t got any chance to modify any settings but the boot order, if any.</p></div></blockquote></div><p>It is not always easy to find out which key to hit to get the BIOS screen to appear. My ASUS laptop will give the boot order choice if you hit (or rather keep hitting) one particular key, but if you can find the other magic key then the BIOS screen appears. The keys that may be used include :-</p><p>&lt;escape&gt;, &lt;delete&gt;, &lt;F10&gt;, &lt;F12&gt; and there may be others. I have no written documentation to tell me what to use! I will have a look on the web...</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Wed, 19 Aug 2020 09:31:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24172#p24172</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24124#p24124</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Once booted up <span class="bbc">efibootmgr -v</span> reported an error. After fiddling around for a while I ran</p><div class="codebox"><pre><code>grub-install /dev/sda</code></pre></div><p>to try and ensure that it would still boot. This was ok and does still boot via grub as expected.</p></div></blockquote></div><p>Wonder why this worked. This is CSM style, not EFI. To my knowledge you have to use something like</p><div class="codebox"><pre><code># grub-install --bootloader-id=devuan</code></pre></div><p>as I use to generate a devuan entry (no secure boot).</p></div></blockquote></div><p>The UEFI version of GRUB will just ignore the device argument and presume that the ESP is mounted under <span class="bbc">/boot/efi</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 16 Aug 2020 19:25:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24124#p24124</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24123#p24123</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Once booted up <span class="bbc">efibootmgr -v</span> reported an error. After fiddling around for a while I ran</p><div class="codebox"><pre><code>grub-install /dev/sda</code></pre></div><p>to try and ensure that it would still boot. This was ok and does still boot via grub as expected.</p></div></blockquote></div><p>Wonder why this worked. This is CSM style, not EFI. To my knowledge you have to use something like</p><div class="codebox"><pre><code># grub-install --bootloader-id=devuan</code></pre></div><p>as I use to generate a devuan entry (no secure boot). </p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>efibootmgr (with or with &quot;-v&quot;) now reports</p><div class="codebox"><pre><code>efibootmgr 
No BootOrder is set; firmware will attempt recovery</code></pre></div><p>However, as a side effect of all this, the grub entry for Xen now works and I am posting this with Chimaera as Dom0 under Xen.</p></div></blockquote></div><p>Doesn&#039;t tell me anything, don&#039;t use Xen.</p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>The directory <span class="bbc">/sys/firmware/efi/efivars/</span> exists, but is empty.</p></div></blockquote></div><p>Is the directory mounted?</p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>As everything seems to be working, it is tempting to leave it alone. But where is the fun in that!<br />It would be nice if efibootmgr agreed with the firmware screen (what is that called, it can&#039;t be the BIOS screen, can it?)</p><p>In writing this an obvious point becomes clear. If I am running Devuan under Xen, then access to EFI stuff may be impaired. Having booted on the bare metal,</p><div class="codebox"><pre><code>efibootmgr 
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0004,0002
Boot0000* debian
Boot0002* Hard Drive
Boot0004* zen</code></pre></div><div class="codebox"><pre><code>efibootmgr -v
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0004,0002
Boot0000* debianCould not parse device path: Invalid argument</code></pre></div><p>It is interesting that it couldn&#039;t parse option 0000 as that is the one that is actually booted.</p><p>Also the directory <span class="bbc">/sys/firmware/efi/efivars/</span> now contains the expected stuff.</p></div></blockquote></div><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Setting up stuff seems to be easier on the firmware screen than using efibootmgr as selecting the the parts of the path to the boot image is easier when there is a choice of options rather than entering a complex command line. The first part of the path was incomprehensible to me, but there was a choice of one (disk?) and from there the options were obvious.</p></div></blockquote></div><p>What do you mean by &quot;firmware screen&quot;? The bios? On my 3 latest ASUS board with AMI bios I haven&#039;t got any chance to modify any settings but the boot order, if any. </p><p>Confused, rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 16 Aug 2020 19:20:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24123#p24123</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=24072#p24072</link>
			<description><![CDATA[<p>I have also been having some fun with EFI.</p><p>My Asus ZenBook UX305FA is formatted with GPT partitions and boots with EFI.<br />This has been working fine for a number of years and has been upgraded and is now on Chimaera.</p><p>The only thing that I was unable to get to work was running the Xen hypervisor.<br />I have Xen running on my DOS partitioned desktop, when I want it, but it would not boot on this EFI laptop.<br />I have had it set up as a boot option via grub, but it would just hang.<br />I also tried setting it up to boot the Xen hypervisor directly with EFI, but that would just return immediately.</p><p>Having a look at getting Xen running, I used efibootmgr under Devuan to look at the EFI settings and also using the firmware screen, from American Megatrends.<br />In using the firmware screen, trying to see what was set up, I managed to swap round a couple of boot entries and then managed to swap them back!<br />Once booted up <span class="bbc">efibootmgr -v</span> reported an error. After fiddling around for a while I ran</p><div class="codebox"><pre><code>grub-install /dev/sda</code></pre></div><p>to try and ensure that it would still boot. This was ok and does still boot via grub as expected.</p><p>efibootmgr (with or with &quot;-v&quot;) now reports</p><div class="codebox"><pre><code>efibootmgr 
No BootOrder is set; firmware will attempt recovery</code></pre></div><p>However, as a side effect of all this, the grub entry for Xen now works and I am posting this with Chimaera as Dom0 under Xen.</p><p>The directory <span class="bbc">/sys/firmware/efi/efivars/</span> exists, but is empty.</p><p>As everything seems to be working, it is tempting to leave it alone. But where is the fun in that!<br />It would be nice if efibootmgr agreed with the firmware screen (what is that called, it can&#039;t be the BIOS screen, can it?)</p><p>In writing this an obvious point becomes clear. If I am running Devuan under Xen, then access to EFI stuff may be impaired. Having booted on the bare metal,</p><div class="codebox"><pre><code>efibootmgr 
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0004,0002
Boot0000* debian
Boot0002* Hard Drive
Boot0004* zen</code></pre></div><div class="codebox"><pre><code>efibootmgr -v
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0004,0002
Boot0000* debianCould not parse device path: Invalid argument</code></pre></div><p>It is interesting that it couldn&#039;t parse option 0000 as that is the one that is actually booted.</p><p>Also the directory <span class="bbc">/sys/firmware/efi/efivars/</span> now contains the expected stuff.</p><p>Setting up stuff seems to be easier on the firmware screen than using efibootmgr as selecting the the parts of the path to the boot image is easier when there is a choice of options rather than entering a complex command line. The first part of the path was incomprehensible to me, but there was a choice of one (disk?) and from there the options were obvious.</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Fri, 14 Aug 2020 15:59:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=24072#p24072</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23192#p23192</link>
			<description><![CDATA[<div class="quotebox"><cite>Tatwi wrote:</cite><blockquote><div><p>3. Run BCDEDIT</p><div class="codebox"><pre><code>bcdedit /enum firmware</code></pre></div><p>This provides a list of entries you see in your bios boot list. </p><p>4. Remove the entries you don&#039;t want using, </p><div class="codebox"><pre><code>bcdedit delete IDENTIFIER_NAME</code></pre></div><p>where IDENTIFIER_NAME is the name of the entry you no longer want.</p></div></blockquote></div><p>The efibootmgr(8) command performs the same functions, no need to load up Windows.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 02 Jul 2020 07:28:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23192#p23192</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23190#p23190</link>
			<description><![CDATA[<p>I am not sure what you mean by &quot;EFI variables&quot;, I&#039;m still living in BIOS land, stumbling through EFI on my laptop... but if you are referring to the entries made in the boot options list, those can be removed using Windows command prompt. This was not obvious to me when the BIOS of my Levovo 100e laptop refused to delete them...</p><p>1. Boot Windows or a Windows Recovery Mode Image (disk or usb).</p><p>2. Open the command prompt as admin.</p><p>3. Run BCDEDIT</p><div class="codebox"><pre><code>bcdedit /enum firmware</code></pre></div><p>This provides a list of entries you see in your bios boot list. </p><p>4. Remove the entries you don&#039;t want using, </p><div class="codebox"><pre><code>bcdedit delete IDENTIFIER_NAME</code></pre></div><p>where IDENTIFIER_NAME is the name of the entry you no longer want.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tatwi)]]></author>
			<pubDate>Thu, 02 Jul 2020 02:49:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23190#p23190</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23175#p23175</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>I would be interested where and how you found the above info</p></div></blockquote></div><p><a href="https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Configuring_the_boot_loader_3" rel="nofollow">https://wiki.archlinux.org/index.php/Dm … t_loader_3</a></p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Is there any safe way to clear the EFI variables?</p></div></blockquote></div><p>No, I don&#039;t think so.</p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>These rants also talk about that noefi as kernel parameter would stop the kernel to access the EFI variables. But that would mean the computer has to boot in BIOS mode. Am I right?</p></div></blockquote></div><p>To stop the machine accessing the EFI variables mount efivarfs read-only:</p><div class="codebox"><pre><code># /etc/fstab
efivarfs /sys/firmware/efi/efivars efivarfs ro 0 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 01 Jul 2020 19:28:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23175#p23175</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=23173#p23173</link>
			<description><![CDATA[<p>Followup on bad EFI memory:</p><p>Got two boards at home that suffer from strange EFI behaviour. Digged a bit in the internet and came across some threads that talk about that the Linux kernel tries to save some data in EFI variables when the computer crashes. I am pretty sure that happened to my hardware.</p><p>Is there any safe way to clear the EFI variables? ASUS denied it and told me to return the board.</p><p>Is there a way to prove my theory? To force ASUS to fix the lockup because that should not happen?</p><p>These rants also talk about that noefi as kernel parameter would stop the kernel to access the EFI variables. But that would mean the computer has to boot in BIOS mode. Am I right?</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 01 Jul 2020 19:08:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=23173#p23173</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22829#p22829</link>
			<description><![CDATA[<p>Again hurrah, finally got it sorted, its working now. I can boot into Beowulf from the grub in my ASCII installation, despite my bad EFI.&#160; </p><p>@HOAS: I owe you a crate of Frankonian beer. </p><p>Took me a while to sort everything. The uuids and the kernel were the easy part. I had to add <span class="bbc">insmod lvm</span> and ext2, the hardest bit was to figure out what to replace &quot;cryptroot&quot; with. There you need to enter the /dev/mapper-name for the decrypted in my case ext4 root device. </p><p>Have a nice Sunday, cheers.</p><p>rolfie</p><p>PS: I would be interested where and how you found the above info. I was searching around with the duck with keywords grub(2) custom.cfg encrypted and found references to Arch and Ubuntu wikis and a lot of rants/posts from various forums, but none was really pointing to the right thing (for me at least).</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 21 Jun 2020 13:46:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22829#p22829</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22815#p22815</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>both my ASCII and Beowulf are encrypted LVMs with unencrypted /boot partitions. I tried the UUID of the encrypted partition. When I select the new entry, it clearly states that vmlinuz isn&#039;t found. Don&#039;t know yet how to deal with this situation.</p></div></blockquote></div><p>Ah, right. Unfortunately I don&#039;t know how to deal with encrypted partitions in a GRUB configuration file.</p><p>A bit of sleuthing suggests that this <em>might</em> work:</p><div class="codebox"><pre><code>menuentry &#039;Devuan beowulf&#039; {
   search --fs-uuid boot_uuid --set=root
   linux /vmlinuz-4.19.0-9-amd64 cryptdevice=UUID=beowulf_uuid:cryptroot root=/dev/mapper/cryptroot ro quiet
   initrd /initrd.img-4.19.0-9-amd64
}</code></pre></div><p>^ Again replace <span class="bbc">beowuld_uuid</span> with the UUID of the (encrypted) root partition and replace <span class="bbc">boot_uuid</span> with the UUID of the (unencrypted) /boot partition and make sure that the names of the kernel &amp; initramfs images in /boot are corrrect (my last suggestion relied on the symlinks in the root partition that always have the same name).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 20 Jun 2020 21:53:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22815#p22815</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22814#p22814</link>
			<description><![CDATA[<p>Hurrah, after renaming grubx64.efi an additional strange entry is displayed on F8, and it actually boots Beowulf. Thanks for the slab. </p><p>Lets see if I also can get the custom cfg to work, but that a topic for tomorrow, I am too tired already. Too many typos...</p><p>Have a nice evening, rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 20 Jun 2020 21:50:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22814#p22814</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22813#p22813</link>
			<description><![CDATA[<p>You got me, just copied grubx64.efi over. Will rename it and give it another try.</p><p>Well, also prepared a custom.cfg. The menu entry is added, but: both my ASCII and Beowulf are encrypted LVMs with unencrypted /boot partitions. I tried the UUID of the encrypted partition. When I select the new entry, it clearly states that vmlinuz isn&#039;t found. Don&#039;t know yet how to deal with this situation. </p><p>Thanks for your continous input, rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sat, 20 Jun 2020 21:35:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22813#p22813</guid>
		</item>
		<item>
			<title><![CDATA[Re: EFI trouble]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22812#p22812</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Added EFI/BOOT/ to the efi partition and copied grubx64.efi from Beowulf into there</p></div></blockquote></div><p>Did you rename the grubx64.efi file to BOOTX64.EFI?</p><p>EDIT: some UEFI firmware implementations are so broken that they will only boot $ESP/EFI/Microsoft/Boot/bootmgfw.efi</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 20 Jun 2020 21:23:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22812#p22812</guid>
		</item>
	</channel>
</rss>
