Difference between revisions of "Grub2 Bootloader"
From Free Knowledge Base- The DUCK Project: information for everyone
(Created page with " /boot/grub/grub.cfg - This is the main configuration file that replaces menu.lst. Unlike menu.lst, this file cannot be edited by hand! I strongly advise against trying to tam...") |
m |
||
Line 1: | Line 1: | ||
− | + | GNU GRUB version 2 of the GNU GRand Unified Bootloader | |
− | + | GRUB version 1 (also known as "GRUB Legacy") is no longer under development and is being phased out. The GNU GRUB developers have switched their focus to GRUB 2, a complete rewrite with goals including making GNU GRUB cleaner, more robust, more portable and more powerful. | |
− | /etc/default/grub - This file contains the GRUB menu settings that are read by the GRUB scripts and written into grub.cfg. It is the customization part of the GRUB, similar to the old menu.lst, except the actual boot entries. | + | * '''/boot/grub/grub.cfg''' - This is the main configuration file that replaces menu.lst. Unlike menu.lst, this file cannot be edited by hand! I strongly advise against trying to tamper with this file, using chattr command or anything of the sort. Let it be. |
+ | |||
+ | * '''/etc/grub.d/''' - This new directory contains GRUB scripts. These scripts are building blocks from which the grub.cfg file is built. When the relevant GRUB command is executed, the scripts are read in a certain sequence and grub.cfg is created. | ||
+ | |||
+ | * '''/etc/default/grub''' - This file contains the GRUB menu settings that are read by the GRUB scripts and written into grub.cfg. It is the customization part of the GRUB, similar to the old menu.lst, except the actual boot entries. | ||
Ubuntu and its derived distros have a useful script named update-grub and you can use it to update your grub configuration file by running sudo update-grub. | Ubuntu and its derived distros have a useful script named update-grub and you can use it to update your grub configuration file by running sudo update-grub. | ||
+ | |||
+ | To find out where GRUB 2 is installed, the user can run the following commands: | ||
+ | |||
+ | sudo grub-probe -t device /boot/grub | ||
+ | |||
+ | sudo grub-probe -t fs_uuid /boot/grub | ||
+ | |||
+ | |||
+ | [[Category:Computer_Technology]] | ||
+ | [[Category:Linux]] |
Revision as of 06:53, 30 August 2019
GNU GRUB version 2 of the GNU GRand Unified Bootloader
GRUB version 1 (also known as "GRUB Legacy") is no longer under development and is being phased out. The GNU GRUB developers have switched their focus to GRUB 2, a complete rewrite with goals including making GNU GRUB cleaner, more robust, more portable and more powerful.
- /boot/grub/grub.cfg - This is the main configuration file that replaces menu.lst. Unlike menu.lst, this file cannot be edited by hand! I strongly advise against trying to tamper with this file, using chattr command or anything of the sort. Let it be.
- /etc/grub.d/ - This new directory contains GRUB scripts. These scripts are building blocks from which the grub.cfg file is built. When the relevant GRUB command is executed, the scripts are read in a certain sequence and grub.cfg is created.
- /etc/default/grub - This file contains the GRUB menu settings that are read by the GRUB scripts and written into grub.cfg. It is the customization part of the GRUB, similar to the old menu.lst, except the actual boot entries.
Ubuntu and its derived distros have a useful script named update-grub and you can use it to update your grub configuration file by running sudo update-grub.
To find out where GRUB 2 is installed, the user can run the following commands:
sudo grub-probe -t device /boot/grub
sudo grub-probe -t fs_uuid /boot/grub