<?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=3280&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Strange grub problem]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3280</link>
		<description><![CDATA[The most recent posts in Strange grub problem.]]></description>
		<lastBuildDate>Sat, 25 Jan 2020 22:38:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19704#p19704</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>This is starting to ring a bell with me about an old fdn thread that p.H handled and subsequently opened a bug report about. I&#039;ll see if I can find it again...</p></div></blockquote></div><p>Ha! found it: <a href="http://forums.debian.net/viewtopic.php?f=5&amp;t=141126&amp;hilit=925309&amp;start=0" rel="nofollow">http://forums.debian.net/viewtopic.php? … 09&amp;start=0</a></p><p>Bug report: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925309" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=925309</a></p><p>So try copying /boot/efi/EFI/devuan to /boot/efi/EFI/debian</p><p>EDIT: or perhaps use</p><div class="codebox"><pre><code># grub-install --target=x86_64-efi --bootloader-id=debian</code></pre></div></div></blockquote></div><p>Thanks for tracking that down! I have just skimmed it for now, but there is a LOT of UEFI/grub lore in there. I will peruse it tomorrow with fresh eyes - my eyes just don&#039;t work very well at the end of the day...</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 22:38:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19704#p19704</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19702#p19702</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>This is starting to ring a bell with me about an old fdn thread that p.H handled and subsequently opened a bug report about. I&#039;ll see if I can find it again...</p></div></blockquote></div><p>Ha! found it: <a href="http://forums.debian.net/viewtopic.php?f=5&amp;t=141126&amp;hilit=925309&amp;start=0" rel="nofollow">http://forums.debian.net/viewtopic.php? … 09&amp;start=0</a></p><p>Bug report: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925309" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=925309</a></p><p>So try copying /boot/efi/EFI/devuan to /boot/efi/EFI/debian</p><p>EDIT: or perhaps use</p><div class="codebox"><pre><code># grub-install --target=x86_64-efi --bootloader-id=debian</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 25 Jan 2020 22:11:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19702#p19702</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19701#p19701</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>If you think it would help, I will post the output of bootinfoscript</p></div></blockquote></div><p>No, let&#039;s leave it for now. I think it&#039;s aimed more at non-UEFI systems anyway.</p><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>the problem seems to lie with grubx64.efi...</p></div></blockquote></div><p>Indeed. This is starting to ring a bell with me about an old fdn thread that p.H handled and subsequently opened a bug report about. I&#039;ll see if I can find it again...</p></div></blockquote></div><p>Yes, I took bootinfoscript for a spin, and it did seem to be geared for legacy type systems.</p><p>I&#039;d be interested in knowing if others have encountered this. I have a workaround for now, but it&#039;s something that ought to get fixed...</p><p>Thanks for your help - really appreciate it!</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 22:04:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19701#p19701</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19700#p19700</link>
			<description><![CDATA[<div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>If you think it would help, I will post the output of bootinfoscript</p></div></blockquote></div><p>No, let&#039;s leave it for now. I think it&#039;s aimed more at non-UEFI systems anyway.</p><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>the problem seems to lie with grubx64.efi...</p></div></blockquote></div><p>Indeed. This is starting to ring a bell with me about an old fdn thread that p.H handled and subsequently opened a bug report about. I&#039;ll see if I can find it again...</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 25 Jan 2020 21:51:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19700#p19700</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19698#p19698</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>what is telling grub where to get its menu from?</p></div></blockquote></div><p>I think the information is embedded in grubx64.efi</p><p>It may be time to unleash /usr/sbin/bootinfoscript — the output will be lengthy so perhaps use <a href="https://paste.debian.net/" rel="nofollow">https://paste.debian.net/</a></p></div></blockquote></div><p>Before I release the Kraken, I mean, unleash bootinfoscript, here&#039;s an interesting observation:</p><p>I saved an image of my beowulf install with dd, then restored an image of ascii to p6. It had been on p5, so I used grub-install to fix up the EFI/devuan directory. It indeed generated a new grubx64.efi, and did not touch grub.cfg. And it booted using the grub.cfg in ascii, at p6. So, I copied that grubx64.efi to a safe place, restored beowulf. It booted using beowulf&#039;s grub.cfg! Since, presumably, the /devuan/grubx64.efi points now to p6. </p><p>I ran grub-install, rebooted, and sure enough, it booted using the grub.cfg from p5 (a buster installation). I copied the grubx64.efi that I had saved back over to /devuan, and behold, it booted using grub.cfg from p6.</p><p>It seems to me that beowulf&#039;s grub-install is not generating a proper grubx64.efi. Does no one else have this issue?</p><p>If you think it would help, I will post the output of bootinfoscript, but the problem seems to lie with grubx64.efi...</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 21:38:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19698#p19698</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19695#p19695</link>
			<description><![CDATA[<div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>what is telling grub where to get its menu from?</p></div></blockquote></div><p>I think the information is embedded in grubx64.efi</p><p>It may be time to unleash /usr/sbin/bootinfoscript — the output will be lengthy so perhaps use <a href="https://paste.debian.net/" rel="nofollow">https://paste.debian.net/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 25 Jan 2020 20:55:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19695#p19695</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19694#p19694</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>How very strange <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Is the EFI system partition definitely mounted under /boot/efi?</p><div class="codebox"><pre><code>lsblk -f</code></pre></div><p>Try changing /boot/efi/EFI/devuan/grub.cfg to this:</p><div class="codebox"><pre><code>search.fs_uuid 9685be15-8423-402b-b734-f92844748a90 root hd0,gpt6
set prefix=($root)&#039;/boot/grub&#039;
configfile $prefix/grub.cfg</code></pre></div><p>I&#039;m booting via $ESP/EFI/BOOT/bootx64.efi using GRUB but there is no grub.cfg in $ESP/EFI/BOOT/ so I&#039;m not sure if that&#039;s actually needed.</p></div></blockquote></div><p>Yes, EFI definitely mounted at /boot/efi.</p><p>Your grub change didn&#039;t change anything. I also tried </p><div class="codebox"><pre><code>configfile (hd0,gpt6)/boot/grub/grub.cfg</code></pre></div><p>that I got from an old script I had kicking around.</p><p>I am starting to believe that the grub.cfg in the EFI/(distro) isn&#039;t really being used. But then what is telling grub where to get its menu from? Yes, very strange...</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 20:45:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19694#p19694</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19693#p19693</link>
			<description><![CDATA[<p>How very strange <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Is the EFI system partition definitely mounted under /boot/efi?</p><div class="codebox"><pre><code>lsblk -f</code></pre></div><p>Try changing /boot/efi/EFI/devuan/grub.cfg to this:</p><div class="codebox"><pre><code>search.fs_uuid 9685be15-8423-402b-b734-f92844748a90 root hd0,gpt6
set prefix=($root)&#039;/boot/grub&#039;
configfile $prefix/grub.cfg</code></pre></div><p>I&#039;m booting via $ESP/EFI/BOOT/bootx64.efi using GRUB but there is no grub.cfg in $ESP/EFI/BOOT/ so I&#039;m not sure if that&#039;s actually needed.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 25 Jan 2020 20:25:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19693#p19693</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19692#p19692</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>It seems that beowulf&#039;s grub does not parse the grub.cfg file in /boot/efi/EFI/devuan</p></div></blockquote></div><p>Can we see the content of that file please.</p><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>reinstalled grub to create a new one</p></div></blockquote></div><p>How did you do that, exactly?</p><p>And can we please see the output of</p><div class="codebox"><pre><code># parted --list
efibootmgr -v
/sbin/blkid</code></pre></div><p>The <a href="https://pkginfo.devuan.org/stage/beowulf/beowulf/boot-info-script_0.77-1.html" rel="nofollow">boot-info-script</a> package (/usr/sbin/bootinfoscript) will show exactly what&#039;s going on but I can&#039;t be bothered trawling through the wall-of-output so give me a few posts to work it out for myself first. Thanks.</p></div></blockquote></div><p>The grub.cfg generated in the /devuan directory is:</p><div class="codebox"><pre><code>search.fs_uuid 9685be15-8423-402b-b734-f92844748a90 root 
set prefix=($root)&#039;/boot/grub&#039;
configfile $prefix/grub.cfg</code></pre></div><p>It is the correct UUID for the beowulf partition.</p><p>I created the /devuan directory in EFI/ the way I have been for a couple of years now:</p><div class="codebox"><pre><code>sudo grub-install --recheck --no-floppy --force</code></pre></div><p>parted --list gives:</p><div class="codebox"><pre><code>Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB   fat32        EFI System Partition          boot, esp
 2      274MB   290MB  16.8MB               Microsoft reserved partition  msftres
 3      290MB   275GB  275GB   ntfs                                       msftdata
 4      275GB   344GB  68.7GB  ntfs                                       msftdata
 5      344GB   370GB  25.8GB  ext4
 6      370GB   395GB  25.8GB  ext4</code></pre></div><p>efibootmgr -v gives:</p><div class="codebox"><pre><code># efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0005,0007,0000,0008,0002,000A,0003,0009,0004,0006,000B,000C
Boot0000* Windows Boot Manager	HD(1,GPT,ba36c9c3-856c-4a3a-bf6b-a0aaa7decb7e,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* devuan	HD(1,GPT,ba36c9c3-856c-4a3a-bf6b-a0aaa7decb7e,0x800,0x82000)/File(\EFI\DEVUAN\SHIMX64.EFI)
Boot0002* USB Floppy/CD	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0500000001)..BO
Boot0003* USB Hard Drive	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0200000001)..BO
Boot0004* ATAPI CD-ROM Drive	VenMedia(b6fef66f-1495-4584-a836-3492d1984a8d,0300000001)..BO
Boot0005* debian	HD(1,GPT,ba36c9c3-856c-4a3a-bf6b-a0aaa7decb7e,0x800,0x82000)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0006  UEFI:CD/DVD Drive	BBS(129,,0x0)
Boot0007* ubuntu	HD(1,GPT,ba36c9c3-856c-4a3a-bf6b-a0aaa7decb7e,0x800,0x82000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0008* debian	HD(1,GPT,ba36c9c3-856c-4a3a-bf6b-a0aaa7decb7e,0x800,0x82000)/File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0009* UEFI: SanDisk	PciRoot(0x0)/Pci(0x14,0x0)/USB(5,0)/HD(1,MBR,0x3bf4ec9f,0x390944,0x1f00)..BO
Boot000A* UEFI: SanDisk	PciRoot(0x0)/Pci(0x14,0x0)/USB(5,0)/CDROM(1,0x390944,0x7c00)..BO
Boot000B  UEFI:Removable Device	BBS(130,,0x0)
Boot000C  UEFI:Network Device	BBS(131,,0x0)</code></pre></div><p>Thanks for having a look...</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 19:54:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19692#p19692</guid>
		</item>
		<item>
			<title><![CDATA[Re: Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19687#p19687</link>
			<description><![CDATA[<div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>It seems that beowulf&#039;s grub does not parse the grub.cfg file in /boot/efi/EFI/devuan</p></div></blockquote></div><p>Can we see the content of that file please.</p><div class="quotebox"><cite>sgage wrote:</cite><blockquote><div><p>reinstalled grub to create a new one</p></div></blockquote></div><p>How did you do that, exactly?</p><p>And can we please see the output of</p><div class="codebox"><pre><code># parted --list
efibootmgr -v
/sbin/blkid</code></pre></div><p>The <a href="https://pkginfo.devuan.org/stage/beowulf/beowulf/boot-info-script_0.77-1.html" rel="nofollow">boot-info-script</a> package (/usr/sbin/bootinfoscript) will show exactly what&#039;s going on but I can&#039;t be bothered trawling through the wall-of-output so give me a few posts to work it out for myself first. Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 25 Jan 2020 19:10:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19687#p19687</guid>
		</item>
		<item>
			<title><![CDATA[Strange grub problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19684#p19684</link>
			<description><![CDATA[<p>I am experiencing a strange issue with grub in beowulf. It seems that beowulf&#039;s grub does not parse the grub.cfg file in /boot/efi/EFI/devuan, which is supposed to point to the grub.cfg in the /boot/grub partition of the beowulf root partition, and instead uses the /boot/grub/grub.cfg found in the first ext4 partition it encounters.</p><p>I have deleted /boot/efi/EFI/devuan and reinstalled grub to create a new one. I am definitely booting from /devuan - I bring up the BIOS boot menu and select &#039;devuan&#039;.</p><p>Update-grub indeed generates the intended grub.cfg in the beowulf /boot/grub - if I copy it to /boot/grub of the first ext4 partition, grub comes up with the beowulf boot menu, in all of its cinnabar glory.</p><p>I am booting off of an nvme SSD drive, for what that&#039;s worth. nvme0n1p1 is the EFI partition, followed by some ntfs partitions. The first ext4 partition is p5 (currently buster), and beowulf is on p6.</p><p>I do a fair amount of experimentation with distros, and this is the first time I&#039;ve encountered this. It&#039;s been going on for some weeks now. </p><p>What gives?</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sat, 25 Jan 2020 18:34:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19684#p19684</guid>
		</item>
	</channel>
</rss>
