From f060ead9cd1d87478bcc22e218adaf646418fc15 Mon Sep 17 00:00:00 2001 From: scbj Date: Thu, 2 Oct 2025 10:09:36 +0200 Subject: [PATCH] (grub) added entry on grub --- grub.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 grub.md diff --git a/grub.md b/grub.md new file mode 100644 index 0000000..c06bc36 --- /dev/null +++ b/grub.md @@ -0,0 +1,25 @@ +# grub + +This file contains collected knowledge on `grub`. + + +## Table of contents + + +- [grub](#grub) + - [Table of contents](#table-of-contents) + + + +## reinstalling grub + +use the following command to (re)install grub: + +```sh +sudo grub-install --efi-directory= --target=x86_64-efi +# example +sudo grub-install --efi-directory=/boot --target=x86_64-efi /dev/nvmen1p1 +``` + +**boot-dir** is the mount point of the bootloader partition. +**boot-partition** is the device path to the partition containing the bootloader