mirror of https://github.com/CrimsonTome/tldr.git
grub-install, grub-mkconfig: add page (#5261)
parent
0589644d01
commit
6c37d8813c
|
@ -0,0 +1,16 @@
|
|||
# grub-mkconfig
|
||||
|
||||
> Generate a GRUB configuration file.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmkconfig.html>
|
||||
|
||||
- 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`
|
|
@ -0,0 +1,16 @@
|
|||
# grub-install
|
||||
|
||||
> Install GRUB to a device.
|
||||
> More information: <https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html>.
|
||||
|
||||
- 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}}"`
|
Loading…
Reference in New Issue