Multiple choice technology web technology

When do you need to rerun the grub-install command?

  1. After every boot

  2. After every modification of the grub configuration file.

  3. After installing a new kernel with a new name in /boot

  4. Only the first time after installing GRUB

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The 'grub-install' command is used to install the GRUB bootloader code onto the MBR or boot sector of a drive. Once installed, GRUB reads its configuration from /boot/grub/grub.cfg at boot time. Therefore, you only need to run the install command once; subsequent configuration or kernel changes only require updating the config file, not reinstalling the bootloader.