Differences
This shows you the differences between two versions of the page.
linux_wiki:modify_the_system_bootloader [2016/03/03 23:12] billdozor |
linux_wiki:modify_the_system_bootloader [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Modify The System Bootloader ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | Managing Grub2; the system boot loader. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Grub2 Structure ===== | ||
- | |||
- | **Grub2 files:** | ||
- | * / | ||
- | * / | ||
- | * / | ||
- | |||
- | **Grub2 symlinks** | ||
- | * / | ||
- | * / | ||
- | |||
- | ---- | ||
- | |||
- | ===== Grub2 Commands ===== | ||
- | |||
- | **View the active kernel that is default for system boot** | ||
- | <code bash> | ||
- | grub2-editenv list | ||
- | |||
- | saved_entry=CentOS Linux (3.10.0-327.3.1.el7.x86_64) 7 (Core) | ||
- | </ | ||
- | |||
- | \\ | ||
- | **View list of kernels displayed on grub menu** | ||
- | <code bash> | ||
- | grep ^menuentry / | ||
- | |||
- | menuentry ' | ||
- | menuentry ' | ||
- | menuentry ' | ||
- | </ | ||
- | |||
- | \\ | ||
- | **Set default kernel for grub system boot (permanent)** | ||
- | <code bash> | ||
- | grub2-set-default ' | ||
- | </ | ||
- | * Note: Copy/paste including the single quotes from the "grep ^menuentry" | ||
- | |||
- | \\ | ||
- | **Changing Grub2 settings** | ||
- | - Edit grub2 variables< | ||
- | - After making changes, re-generate the grub2 menu< | ||
- | |||
- | ---- | ||