mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-24 16:30:04 -07:00
86 lines
3.9 KiB
Plaintext
86 lines
3.9 KiB
Plaintext
grub
|
|
________________________________________________________________________________
|
|
|
|
GNU GRUB (short for GNU GRand Unified Bootloader, commonly referred to as GRUB)
|
|
is a boot loader package from the GNU Project. GRUB is the reference
|
|
implementation of the Free Software Foundation's Multiboot Specification, which
|
|
provides a user the choice to boot one of multiple operating systems installed
|
|
on a computer or select a specific kernel configuration available on a
|
|
particular operating system's partitions. [0]
|
|
|
|
Upstream: https://www.gnu.org/software/grub/
|
|
|
|
|
|
[000] Index
|
|
________________________________________________________________________________
|
|
|
|
* Installation ........................................................... [001]
|
|
* Setup .................................................................. [002]
|
|
* BIOS ................................................................... [003]
|
|
* UEFI ................................................................... [004]
|
|
* Usage .................................................................. [005]
|
|
* References ............................................................. [006]
|
|
|
|
|
|
[001] Installation
|
|
________________________________________________________________________________
|
|
|
|
+------------------------------------------------------------------------------+
|
|
| |
|
|
| $ kiss b grub |
|
|
| |
|
|
+------------------------------------------------------------------------------+
|
|
|
|
If using UEFI, efibootmgr is also required.
|
|
|
|
+------------------------------------------------------------------------------+
|
|
| |
|
|
| $ kiss b efibootmgr |
|
|
| |
|
|
+------------------------------------------------------------------------------+
|
|
|
|
|
|
[002] Setup
|
|
________________________________________________________________________________
|
|
|
|
Ensure that all required partitions are mounted.
|
|
|
|
|
|
--[003] BIOS -------------------------------------------------------------------
|
|
|
|
Replace '/dev/sdX' with the disk (not partition) where Grub will be installed.
|
|
|
|
+----------------------------------------------------------------------------+
|
|
| |
|
|
| $ grub-install --target=i386-pc /dev/sdX |
|
|
| $ grub-mkconfig -o /boot/grub/grub.cfg |
|
|
| |
|
|
+----------------------------------------------------------------------------+
|
|
|
|
|
|
--[004] UEFI -------------------------------------------------------------------
|
|
|
|
Replace 'esp' with the EFI mount point (typically /boot).
|
|
|
|
+----------------------------------------------------------------------------+
|
|
| |
|
|
| $ grub-install --target=x86_64-efi \ |
|
|
| --efi-directory=esp \ |
|
|
| --bootloader-id=GRUB |
|
|
| $ grub-mkconfig -o /boot/grub/grub.cfg |
|
|
| |
|
|
+----------------------------------------------------------------------------+
|
|
|
|
|
|
[005] Usage
|
|
________________________________________________________________________________
|
|
|
|
Refer to the manual pages and command help output.
|
|
|
|
|
|
[006] References
|
|
________________________________________________________________________________
|
|
|
|
[0] https://en.wikipedia.org/wiki/GNU_GRUB
|
|
|