Difference between revisions of "GRUB/Restore the GRUB Bootloader"

Structurally changed
(Additional Information)
(Structurally changed)
Line 112: Line 112:


==Updating grub==
==Updating grub==
Sometimes there is also an update for the GRUB package itself. So far, the grub package is updated, but the new GRUB Version is not automatically installed in the boot area.
Sometimes there is an update for the GRUB package itself. So far, the grub package is updated, but the new GRUB Version is not automatically installed in the boot area.


You can do this manually following the instructions above. Or you can install the Grub Maintainer Script ''install-grub''. It should work flawless for the majority of people, but SecureBoot, ZFS and fancy encryptions are not supported yet.
You can do this manually following the instructions above. Or you can install the Grub Maintainer Script ''install-grub''. It should work flawless for the majority of people, but SecureBoot, ZFS and fancy encryptions are not supported yet.
{{RootCmd|command=sudo pacman -Syu install-grub}}
{{RootCmd|command=pacman -Syu install-grub}}
Then once run
Then once run
{{RootCmd|command=sudo install-grub}}
{{RootCmd|command=install-grub}}
The package includes a hook that will reinstall the bootloader when needed from now on at every update of grub.
The package includes a hook that will reinstall the bootloader when needed from now on at every update of grub.


==Troubleshooting== <!--T:15-->
===Additional Information===
=== Manjaro is not recognized ===
If Manjaro wasn't recognized after an update-grub then probably your Manjaro installation is missing the package lsb-release.
 
==Additional Information==
Some things around grub can be confusing.
Some things around grub can be confusing.
===package version of grub===
====package version of grub====
Its the version of the grub-package present in your filesystem. But this version changing does ''not'' update the installed grub-bootloader.
Its the version of the grub-package present in your filesystem. But this version changing does ''not'' update the installed grub-bootloader.
===grub-bootloader version===
====grub-bootloader version====
This can only been shown while you are in the Grub menu (that won’t show up while booting by default, you need to hit shift during boot). Hit the key [E] and your will see the Grub version on top.  
This can only been shown while you are in the Grub menu (that won’t show up while booting by default, you need to hit shift during boot). Hit the key [E] and your will see the Grub version on top.  
===update-grub===
====update-grub====
Does ''not'' update the installed bootloader. The ‘update’ is more about updating configuration. Think of this more as ‘applying settings’.
Does ''not'' update the installed bootloader. The ‘update’ is more about updating configuration. Think of this more as ‘applying settings’.
(~ equal to grub-mkconfig -o /boot/grub/grub.cfg)
(~ equal to grub-mkconfig -o /boot/grub/grub.cfg)
===install-grub===
====install-grub====
is another script that does update the installed bootloader that runs when you turn your computer on. (it attempts to automate a system-dependent command that can look different on different setups, but an example would be: sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Manjaro --recheck)
is another script that does update the installed bootloader that runs when you turn your computer on. (it attempts to automate a system-dependent command that can look different on different setups, but an example would be: sudo grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Manjaro --recheck)
==Troubleshooting== <!--T:15-->
=== Manjaro is not recognized ===
If Manjaro wasn't recognized after an update-grub then probably your Manjaro installation is missing the package lsb-release.


==See also== <!--T:16-->
==See also== <!--T:16-->
translator
1,001

edits