Reinstalling GRUB Bootloader from the Rescue System
This document (000019909) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12
- How to Chroot in Rescue Mode
- Make sure /boot is mounted. (mount -a)
- Run: grub2-install <ROOT_DISK>
- /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
From man grub2-install :
The YaST "bootloader" module uses this full command:
/usr/sbin/grub2-install --target=i386-pc --force --skip-fs-probe <root_disk>
This may be needed in certain scenarios.
Also, using the "yast bootloader" module can help resolve grub issues by running the command list above and by allowing other selections.
If the system is UEFI/EFI there is a specific command for that:
If there was a grub update error during patching or otherwise,
it should be logged in /var/log/pbl.log.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019909
- Creation Date: 30-Apr-2021
- Modified Date:30-Apr-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com