site

Website Content
git clone https://git.pngu.org/site
Log | Files | Refs | README

commit b97f395fec3aeebb0d1523f168341d9250dd5923
parent 8bc2e318bb5244e74b03c1aee7a08e5f81a32ca1
Author: Jack Sangdahl <jack@pngu.org>
Date:   Mon, 23 Feb 2026 10:23:27 -0700

Add GRUB notes

Diffstat:
Mcontent.html | 1+
Agrub_manual_boot.html | 38++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/content.html b/content.html @@ -39,6 +39,7 @@ <ul> <li><a href="gpg_key_git.html">GPG key signing with Git</a></li> <li><a href="ssh_agent.html">SSH agent for password-less login</a></li> + <li><a href="grub_manual_boot.html">Manually bootint from GRUB</a></li> <li><a href="wpa_supplicant.html">WPA Supplicant usage</a></li> </ul> <script src="frame.js"></script> diff --git a/grub_manual_boot.html b/grub_manual_boot.html @@ -0,0 +1,38 @@ +<!doctype html> +<html lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <title>Manually booting from GRUB</title> + <script src="header.js"></script> + </head> + <body> + <a style="text-decoration: none" href="content.html">&lt;--</a> + <h2>Manually booting from GRUB</h2> + <p><i>2026-02-23</i></p> + <hr /> + <p> + Sometimes, (at the fault of my own) GRUB falls over and fails to boot my system. Assuming this + is not a catastrophic issue and more so something like mistakenly forgetting a + <code>grub-mkconfig</code> after installing a different kernel, or the kernel complaining it + does not have the correct root partition passed to its boot parameters, not all hope is lost. + Reboot and enter GRUB's command line (pressing C) and poke through the available file systems + to find where the kernel and initramfs live: + </p> + <pre><code>grub&gt; ls +(hd0) (hd0,gpt0) (hd0,gpt1) (hd0,gpt2) +grub&gt; ls (hd0,gpt1)/ +vmlinuz-6.10 vmlinuz-6.10.old initramfs-6.10 initramfs-6.10.old +grub&gt; root=(hd0,gpt1) +grub&gt; linux /boot/vmlinuz-6.10 root=/dev/sda3 +grub&gt; initrd /boot/initramfs-6.10 +grub&gt; boot +</code></pre> + <p> + Here, <code>/dev/sda3</code> is the partition value passed to the kernel to boot. This is + where <code>/</code> lives. However, one may consider omitting GRUB entirely and booting + directly from an EFI Stub. + </p> + <script src="frame.js"></script> + </body> +</html>