<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.williams-net.org/index.php?action=history&amp;feed=atom&amp;title=Repair_GRUB_Installation</id>
	<title>Repair GRUB Installation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.williams-net.org/index.php?action=history&amp;feed=atom&amp;title=Repair_GRUB_Installation"/>
	<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Repair_GRUB_Installation&amp;action=history"/>
	<updated>2026-06-01T03:04:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Repair_GRUB_Installation&amp;diff=719&amp;oldid=prev</id>
		<title>DrEdWilliams: /* Reinstall GRUB */</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Repair_GRUB_Installation&amp;diff=719&amp;oldid=prev"/>
		<updated>2025-05-17T18:57:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Reinstall GRUB&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:57, 17 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the repair tool can&amp;#039;t salvage your configuration, you will need to reinstall GRUB.  This does require a live ISO image of the same distribution as is on the main system drive.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the repair tool can&amp;#039;t salvage your configuration, you will need to reinstall GRUB.  This does require a live ISO image of the same distribution as is on the main system drive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The trick here is that you have to fool the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;live system &lt;/del&gt;into thinking it is working on the OS image on the system drive &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;using the &#039;change root&#039; utility&lt;/del&gt;, but with the multitude of faux filesystem in a current Linux system, you need to make sure enough of them are available &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;when you chroot to &lt;/del&gt;the main disk image:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The trick here is that you have to fool the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GRUB installer &lt;/ins&gt;into thinking it is working on the OS image on the system drive, but with the multitude of faux filesystem in a current Linux system, you need to make sure enough of them are available &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in &lt;/ins&gt;the main disk image:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo mount /dev/sda1 /mnt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo mount /dev/sda1 /mnt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo umount /mnt/dev &amp;amp;&amp;amp;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo umount /mnt/dev &amp;amp;&amp;amp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo umount /mnt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo umount /mnt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Of course, substitute the correct device name for your main system drive ...&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DrEdWilliams</name></author>
	</entry>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Repair_GRUB_Installation&amp;diff=718&amp;oldid=prev</id>
		<title>DrEdWilliams: Created page with &quot;Unlike most other problems where you have a (mostly) functioning Linux system to work with, if your GRUB install gets trashed you are almost literally toast.  == How it happens == It doesn&#039;t really take much to mess with your GRUB configuration.  Fortunately, it lives in an infrequently accessed part of your filesystem (/boot) and survives by obscurity.  The biggest risk of corruption is actually when applying an update to the GRUB software -- if that gets interrupted an...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Repair_GRUB_Installation&amp;diff=718&amp;oldid=prev"/>
		<updated>2025-05-17T18:53:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Unlike most other problems where you have a (mostly) functioning Linux system to work with, if your GRUB install gets trashed you are almost literally toast.  == How it happens == It doesn&amp;#039;t really take much to mess with your GRUB configuration.  Fortunately, it lives in an infrequently accessed part of your filesystem (/boot) and survives by obscurity.  The biggest risk of corruption is actually when applying an update to the GRUB software -- if that gets interrupted an...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Unlike most other problems where you have a (mostly) functioning Linux system to work with, if your GRUB install gets trashed you are almost literally toast.&lt;br /&gt;
&lt;br /&gt;
== How it happens ==&lt;br /&gt;
It doesn&amp;#039;t really take much to mess with your GRUB configuration.  Fortunately, it lives in an infrequently accessed part of your filesystem (/boot) and survives by obscurity.  The biggest risk of corruption is actually when applying an update to the GRUB software -- if that gets interrupted and you don&amp;#039;t have a chance to re-run the update (i.e. the system freezes) you are in trouble.&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
As mentioned above, if you can&amp;#039;t boot, you don&amp;#039;t have the usual suite of tools to help you fix the problem -- but most major distributions offer &amp;quot;live&amp;quot; CD/DVD ISOs that allow you to &amp;#039;try before you buy&amp;#039;.  This can provide enough of a workable system to allow you to bootstrap your way to a solution.  Simply download a recent ISO image of a live system and put it somewhere you can boot from.  Note that Ubuntu related distribution ISOs (including kubuntu) operate in this mode by default -- you boot from the ISO and it gives you an option to install from the live system.  Other OS distributions have separate &amp;#039;live&amp;#039; ISOs.&lt;br /&gt;
&lt;br /&gt;
For ubuntu related distributions, there is also a dedicated rescue disk:&lt;br /&gt;
&lt;br /&gt;
 https://sourceforge.net/projects/boot-repair-cd/files/boot-repair-disk-64bit.iso/download&lt;br /&gt;
&lt;br /&gt;
It is the same toolset described below, but in a form that is automatically run at boot time.&lt;br /&gt;
&lt;br /&gt;
== Fixing It ==&lt;br /&gt;
The process summarized below is from this web page:&lt;br /&gt;
&lt;br /&gt;
 https://phoenixnap.com/kb/grub-rescue&lt;br /&gt;
&lt;br /&gt;
That page describes the process for restoring a GRUB configuration from the GRUB command line if you don&amp;#039;t have a live ISO image available; it does require a significant level of knowledge about the system being restored ... which may not be available.&lt;br /&gt;
&lt;br /&gt;
Also on that page is the rather simple process using his boot-repair tool (free) to rescue a ubuntu system.  There is a lot of context on that page, but the gist is here.  Once you get the live image booted, open a terminal and issue these commands:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:yannubuntu/boot-repair&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt install boot-repair -y&lt;br /&gt;
 sudo boot-repair&lt;br /&gt;
&lt;br /&gt;
The application will show a status dialog with a bunch of activities, then give you a big dialog with an option to implement the recommended changes ... if you have anything other than a single-disk simple configuration, click on the &amp;#039;Advanced Options&amp;#039; link to look at what it wants to do.  Make sure the location of your deployment is correct; it assumes the first disk with a reasonably valid configuration is what you want (not always the case).  Make any changes and then hit the &amp;#039;Apply&amp;#039; button.  Cross your fingers ... and you will hopefully get the success dialog.  Then you reboot back into your normal configuration.&lt;br /&gt;
&lt;br /&gt;
== Reinstall GRUB ==&lt;br /&gt;
If the repair tool can&amp;#039;t salvage your configuration, you will need to reinstall GRUB.  This does require a live ISO image of the same distribution as is on the main system drive.&lt;br /&gt;
&lt;br /&gt;
The trick here is that you have to fool the live system into thinking it is working on the OS image on the system drive using the &amp;#039;change root&amp;#039; utility, but with the multitude of faux filesystem in a current Linux system, you need to make sure enough of them are available when you chroot to the main disk image:&lt;br /&gt;
&lt;br /&gt;
 sudo mount /dev/sda1 /mnt&lt;br /&gt;
 sudo mount --bind /dev /mnt/dev &amp;amp;&amp;amp;&lt;br /&gt;
 sudo mount --bind /dev/pts /mnt/dev/pts &amp;amp;&amp;amp;&lt;br /&gt;
 sudo mount --bind /proc /mnt/proc &amp;amp;&amp;amp;&lt;br /&gt;
 sudo mount --bind /sys /mnt/sys&lt;br /&gt;
&lt;br /&gt;
Now you can do the installation of the new grub configuration:&lt;br /&gt;
&lt;br /&gt;
 sudo grub-install -root-directory=/mnt/ /dev/sda&lt;br /&gt;
&lt;br /&gt;
If that succeeds, then you need to clean things up:&lt;br /&gt;
&lt;br /&gt;
 sudo umount /mnt/sys &amp;amp;&amp;amp;&lt;br /&gt;
 sudo umount /mnt/proc &amp;amp;&amp;amp;&lt;br /&gt;
 sudo umount /mnt/dev/pts &amp;amp;&amp;amp;&lt;br /&gt;
 sudo umount /mnt/dev &amp;amp;&amp;amp;&lt;br /&gt;
 sudo umount /mnt&lt;/div&gt;</summary>
		<author><name>DrEdWilliams</name></author>
	</entry>
</feed>