diff --git a/grub-mkconfig.md b/grub-mkconfig.md new file mode 100644 index 000000000..20ed3ee33 --- /dev/null +++ b/grub-mkconfig.md @@ -0,0 +1,16 @@ +# grub-mkconfig + +> Generate a GRUB configuration file. +> More information: + +- Do a dry run and print the configuration to stdout: + +`sudo grub-mkconfig` + +- Generate the configuration file: + +`sudo grub-mkconfig --output={{/boot/grub/grub.cfg}}` + +- Print the help page: + +`grub-mkconfig --help` diff --git a/pages/linux/grub-install.md b/pages/linux/grub-install.md new file mode 100644 index 000000000..9be6c8a16 --- /dev/null +++ b/pages/linux/grub-install.md @@ -0,0 +1,16 @@ +# grub-install + +> Install GRUB to a device. +> More information: . + +- Install GRUB on a BIOS system: + +`grub-install --target={{i386-pc}} {{path/to/device}}` + +- Install GRUB on an UEFI system: + +`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}` + +- Install GRUB pre-loading specific modules: + +`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"`