<?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=4385&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] update_grub]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4385</link>
		<description><![CDATA[The most recent posts in [SOLVED] update_grub.]]></description>
		<lastBuildDate>Mon, 28 Jun 2021 09:57:47 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30453#p30453</link>
			<description><![CDATA[<p>If you want to keep Devuan booting into the latest kernel version without having to remember to update the bootloader configuration from MX then you can add this stanza to the end of the file at <strong>/etc/grub.d/40_custom</strong> in MX (replace <span class="bbc">$actual_uuid</span> with the actual UUID of the Devuan root partition):</p><div class="codebox"><pre><code>menuentry &#039;Devuan&#039; {
   search --fs-uuid --set=root $actual_uuid
   linux /vmlinuz root=UUID=$actual_uuid ro quiet
   initrd /initrd.img
}</code></pre></div><p>^ That boots the kernel &amp; initramfs symlinks in the root partition that always point to the latest versions.</p><p>Run <span class="bbc">update-grub</span> after saving the file to add the new menuentry. To remove the auto-generated menuentry for Devuan either uninstall the os-prober package or add this line to <strong>/etc/default/grub</strong> (in MX):</p><div class="codebox"><pre><code>GRUB_OS_PROBER_SKIP_LIST=$actual_uuid</code></pre></div><p>Then run <span class="bbc">update-grub</span> again to update the menu.</p><p>It might be worth considering switching to Devuan for GRUB because their version supports Secure Boot whereas MX&#039;s does not. See my Secure Boot guide on the MX forums for more on this.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 28 Jun 2021 09:57:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30453#p30453</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30436#p30436</link>
			<description><![CDATA[<p>A big thank you, Head_on_a_Stick. Problem solved and I have made a donation to Devuan.</p><p>When you wrote, &quot;If that is the case and you can&#039;t see these entries when you start the machine then the Devuan system is not in &quot;control&quot; of GRUB, &quot;, I logged into my MX operating system to update-grub and the command also updated my Devuan system. I had wrongly thought that the update-grub command was no longer in use but the problem was that I was trying to use it in the terminal of the operating system that did not control boot. </p><p>My system is working great again.</p>]]></description>
			<author><![CDATA[dummy@example.com (teaman)]]></author>
			<pubDate>Sun, 27 Jun 2021 11:37:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30436#p30436</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30433#p30433</link>
			<description><![CDATA[<p>To Head_on_a_Stick</p><p>I have been looking at and trying your suggestions:</p><p># /usr/sbin/update-grub</p><p>/usr/sbin/update-grub: 3: exec: grub-mkconfig: not found</p><p>and then:</p><p># dpkg-reconfigure grub-efi-amd64</p><p>bash: dpkg-reconfigure: command not found</p><p>I have now checked&#160; /boot/grub/grub.cfg and it does not have the other entries except 4.19.0-16-amd64, however&#160; 4.19.0-10-amd64&#039;&#160; is the one always loaded. <br />The others, noted below, are not shown in grub.cfg although they have been installed:</p><p>linux-image-4.19.0-11-amd64<br />linux-image-4.19.0-12-amd64<br />linux-image-4.19.0-13-amd64<br />linux-image-4.19.0-14-amd64<br />linux-image-4.19.0-17-amd64<br />linux-image-4.19.0-9-amd64<br />linux-image-amd64</p><p>If I could boot into 4.19.0-16-amd64 it would be a start ...</p><p>Your advice is to use the command &#039;set&#039; but first I&#160; will have to research what the command actually is and how to use it.</p><p># cat /boot/grub/grub.cfg</p><p>&#160; &#160; menuentry &#039;Devuan GNU/Linux, with Linux 4.19.0-16-amd64 (recovery mode)&#039; --class devuan --class gnu-linux --class gnu --class os $menuentry_id_option &#039;gnulinux-4.19.0-16-amd64-recovery-6fa66213-220c-4c2e-9656-04163dae7831&#039; {<br />&#160; &#160; &#160; &#160; load_video<br />&#160; &#160; &#160; &#160; insmod gzio<br />&#160; &#160; &#160; &#160; if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br />&#160; &#160; &#160; &#160; insmod part_gpt<br />&#160; &#160; &#160; &#160; insmod ext2<br />&#160; &#160; &#160; &#160; set root=&#039;hd0,gpt4&#039;<br />&#160; &#160; &#160; &#160; if [ x$feature_platform_search_hint = xy ]; then<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4&#160; 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; else<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; fi<br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading Linux 4.19.0-16-amd64 ...&#039;<br />&#160; &#160; &#160; &#160; linux&#160; &#160; /boot/vmlinuz-4.19.0-16-amd64 root=UUID=6fa66213-220c-4c2e-9656-04163dae7831 ro single <br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading initial ramdisk ...&#039;<br />&#160; &#160; &#160; &#160; initrd&#160; &#160; /boot/initrd.img-4.19.0-16-amd64<br />&#160; &#160; }<br />&#160; &#160; menuentry &#039;Devuan GNU/Linux, with Linux 4.19.0-10-amd64&#039; --class devuan --class gnu-linux --class gnu --class os $menuentry_id_option &#039;gnulinux-4.19.0-10-amd64-advanced-6fa66213-220c-4c2e-9656-04163dae7831&#039; {<br />&#160; &#160; &#160; &#160; load_video<br />&#160; &#160; &#160; &#160; insmod gzio<br />&#160; &#160; &#160; &#160; if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br />&#160; &#160; &#160; &#160; insmod part_gpt<br />&#160; &#160; &#160; &#160; insmod ext2<br />&#160; &#160; &#160; &#160; set root=&#039;hd0,gpt4&#039;<br />&#160; &#160; &#160; &#160; if [ x$feature_platform_search_hint = xy ]; then<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4&#160; 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; else<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; fi<br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading Linux 4.19.0-10-amd64 ...&#039;<br />&#160; &#160; &#160; &#160; linux&#160; &#160; /boot/vmlinuz-4.19.0-10-amd64 root=UUID=6fa66213-220c-4c2e-9656-04163dae7831 ro&#160; quiet<br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading initial ramdisk ...&#039;<br />&#160; &#160; &#160; &#160; initrd&#160; &#160; /boot/initrd.img-4.19.0-10-amd64<br />&#160; &#160; }<br />&#160; &#160; menuentry &#039;Devuan GNU/Linux, with Linux 4.19.0-10-amd64 (recovery mode)&#039; --class devuan --class gnu-linux --class gnu --class os $menuentry_id_option &#039;gnulinux-4.19.0-10-amd64-recovery-6fa66213-220c-4c2e-9656-04163dae7831&#039; {<br />&#160; &#160; &#160; &#160; load_video<br />&#160; &#160; &#160; &#160; insmod gzio<br />&#160; &#160; &#160; &#160; if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi<br />&#160; &#160; &#160; &#160; insmod part_gpt<br />&#160; &#160; &#160; &#160; insmod ext2<br />&#160; &#160; &#160; &#160; set root=&#039;hd0,gpt4&#039;<br />&#160; &#160; &#160; &#160; if [ x$feature_platform_search_hint = xy ]; then<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4&#160; 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; else<br />&#160; &#160; &#160; &#160;&#160; &#160;search --no-floppy --fs-uuid --set=root 6fa66213-220c-4c2e-9656-04163dae7831<br />&#160; &#160; &#160; &#160; fi<br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading Linux 4.19.0-10-amd64 ...&#039;<br />&#160; &#160; &#160; &#160; linux&#160; &#160; /boot/vmlinuz-4.19.0-10-amd64 root=UUID=6fa66213-220c-4c2e-9656-04163dae7831 ro single <br />&#160; &#160; &#160; &#160; echo&#160; &#160; &#039;Loading initial ramdisk ...&#039;<br />&#160; &#160; &#160; &#160; initrd&#160; &#160; /boot/initrd.img-4.19.0-10-amd64</p><p>Reading your reply again, I see that you write:<br />&quot;If that is the case and you can&#039;t see these entries when you start the machine then the Devuan system is not in &quot;control&quot; of GRUB. &quot;</p><p>This throws light on the matter - although I use Devuan as my main system, I am triple booting and occasionally use MX 19.4 patito feo (19.4 ) and Void. <br />MX 19.4 patito feo (19.4 ) is also Debian based and my boot control may be there. However, I believe that the command update-grub no longer works in any and every Debian system but I will boot into&#160; MX and give it a try.</p><p>Thanks for your detailed reply.</p>]]></description>
			<author><![CDATA[dummy@example.com (teaman)]]></author>
			<pubDate>Sat, 26 Jun 2021 19:45:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30433#p30433</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30431#p30431</link>
			<description><![CDATA[<div class="quotebox"><cite>teaman wrote:</cite><blockquote><div><p>I cannot re-install grub because there is no command in my Devuan system to re-install grub:</p><p># grub-install /dev/sda1 is &quot;command not found.&quot;<br /># grub-mkconfig -o /boot/grub/grub.cfg is &quot;command not found.&quot;</p></div></blockquote></div><p>Both of those commands are under /usr/sbin/, was that in PATH when you tried them? Did you try the full path? If you used plain <span class="bbc">su</span> to obtain a root prompt then PATH will not include /usr/sbin/.</p><p>But you should use <span class="bbc">dpkg-reconfigure</span> instead because then your configuration choices will be stored in the debconf database.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Jun 2021 19:25:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30431#p30431</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30430#p30430</link>
			<description><![CDATA[<p>To dice<br />Thanks for your reply. <br />I reboot my system every night.</p><p>I cannot re-install grub because there is no command in my Devuan system to re-install grub:</p><p># grub-install /dev/sda1 is &quot;command not found.&quot;<br /># grub-mkconfig -o /boot/grub/grub.cfg is &quot;command not found.&quot;</p><p>So is this problem only on my system? I thought it might be a common Devuan problem ...<br />Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (teaman)]]></author>
			<pubDate>Sat, 26 Jun 2021 18:59:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30430#p30430</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30418#p30418</link>
			<description><![CDATA[<div class="quotebox"><cite>teaman wrote:</cite><blockquote><div><p>on the command line &#039;upgrade-grub&#039; is not recognised</p></div></blockquote></div><p>That command is under /usr/sbin/ so you should check if that directory is included in your user&#039;s PATH when you attempt to call the command. Or just call the full path. See also <a href="https://files.devuan.org/devuan_beowulf/Release_notes.txt" rel="nofollow">https://files.devuan.org/devuan_beowulf … _notes.txt</a> (&quot;Changes in su&quot;).</p><p>EDIT: hold on, the command is actually <span class="bbc">/usr/sbin/update-grub</span>; <span class="bbc">upgrade-grub</span> doesn&#039;t exist (AFAIK).</p><p>But that command is run automatically when the kernel is upgraded so you shouldn&#039;t have to run it manually. Check /boot/grub/grub.cfg to confirm that the Devuan system has menu entries for all of your kernel versions. If that is the case and you can&#039;t see these entries when you start the machine then the Devuan system is not in &quot;control&quot; of GRUB. Use the <span class="bbc">set</span> command from the GRUB command line to find where it is looking for the configuration file.</p><p>If this is a UEFI system then the <span class="bbc">efibootmgr</span> command can show the boot entries and their respective priorities.</p><p>As dice notes reinstalling GRUB from Devuan is probably the quickest way to fix this. To do that for a UEFI system use</p><div class="codebox"><pre><code># dpkg-reconfigure grub-efi-amd64 # or grub-efi-ia32 for 32-bit</code></pre></div><p>For a non-UEFI system use</p><div class="codebox"><pre><code># dpkg-reconfigure grub-pc</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 26 Jun 2021 16:53:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30418#p30418</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30410#p30410</link>
			<description><![CDATA[<p>Have you tried reinstalling grub? Do you reboot your machine often?</p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Fri, 25 Jun 2021 14:10:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30410#p30410</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] update_grub]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30408#p30408</link>
			<description><![CDATA[<p>Greetings Devuan users</p><p>My Devuan system does not upgrade the kernel and on the command line &#039;upgrade-grub&#039; is not recognised.<br />I presume that I cannot keep the same kernel forever without harming the system so can anyone advise on how to upgrade the Devuan kernel?</p><p>When I use &#039;apt-get update &amp;&amp; apt-get dist-upgrade&#039; a new kernel is installed but as I cannot update grub-efi on my uefi system, the old kernel linux-image-4.19.0-10-amd64 remains the one in use, although newer kernels are constantly being installed.</p><p>How do others here overcome the problem of update-grub not being recognised?</p><p>Today when I updated and upgraded, linux-image-4.19.0-17-amd64 was downloaded and installed but my system does not access it.<br />My system continues to use&#160; Linux 4.19.0-10-amd64 which has been the kernel for a year or two.</p><p>At the moment, this inability to update is not causing any problems but it surely cannot go on forever. Any advice? </p><p>$ uname -sr<br />Linux 4.19.0-10-amd64</p><p># dpkg -l | grep linux-image | awk &#039;{print$2}&#039;</p><p>linux-image-4.19.0-10-amd64<br />linux-image-4.19.0-11-amd64<br />linux-image-4.19.0-12-amd64<br />linux-image-4.19.0-13-amd64<br />linux-image-4.19.0-14-amd64<br />linux-image-4.19.0-16-amd64<br />linux-image-4.19.0-17-amd64<br />linux-image-4.19.0-9-amd64<br />linux-image-amd64</p><p>When the new kernel linux-image-4.19.0-17-amd64 was downloading today, the verbose command line informed that it was being linked to linux-image-amd64 although as Linux 4.19.0-10-amd64 remains the kernel in use, this linking does not seem helpful.</p><p>The obvious way is for me to remove all the kernels one by one except for the last two, but I am loathe to do this as I think that there may be a reason for Devuan sticking to the old kernel linux-image-4.19.0-10-amd64. Forgive my ignorance for not taking this path as I was a bit worried about breaking my system and losing my files if I cannot boot into Devuan. In the old days, linux commands on the command line just used to work, Oh bring back update-grub!</p><p>Over the last year, whilst linux-image-4.19.0-10-amd64 has been in use, I have removed several kernels prior to this using the purge command e.g. &#039;apt remove --purge linux-image-4.19.0-8-amd64&#039; and could remove the current system kernel using that command. Would this be recommended?</p><p>Thanks in advance for any comments to explain this matter which is puzzling me.</p>]]></description>
			<author><![CDATA[dummy@example.com (teaman)]]></author>
			<pubDate>Fri, 25 Jun 2021 11:43:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30408#p30408</guid>
		</item>
	</channel>
</rss>
