Hello, I’d love if someone could provide some help with fixing my RL9 installation.
A few days ago my GRUB broke for yet unknown reasons (I assume it might have been one of the Windows updates) and when trying to boot RL9 I received an error that mentioned something about corrupt volume. I then used Boot-Repair LiveCD to try and painlessly repair my GRUB but that unfortunately didn’t work. I unfortunately don’t remember the details but from the LiveCD I managed to restore my GRUB to a state where I could access the GRUB shell. After hours of research I managed to boot RL from grub shell with following commands:
grub> set root=(hd0,msdos3)
grub> linux /vmlinuz-[some version] root=/dev/mapper/rl-root
grub> initrd /initramfs-[some version].img
grub> boot
The problem that I am now facing is that this way is the only one I can boot my RL now and I’d like to not have to input these commands every day. I tried the following methods to try and restore the menu entries:
- Deleted the grub.cfg in both /boot/grub2 and /boot/EFI/rocky and ran
dnf reinstall shim-* grub2-efi-* grub2-common
from RL and from LiveCD. - Added a new custom entry to /etc/grub.d/40_custom with the commands I’m now imputting manually to grub shell and rebuilt the config with
grub2-mkconfig -o /boot/grub2/grub.cfg
- Added a new entry to efibootmgr pointing to shimx64.efi and grubx64.efi of the EFI partition.
- Manually edited the stub grub.cfg in EFI partition to point to the separate boot partition instead of rl-root partition.
After every attempt I rebooted my machine and, when selecting an EFI boot menu entry, expected to see GRUB with menu entries that could let me boot RL (or the ones that should load with blscfg from /boot/loader/entries), but none of these worked for me.
Here’s some potentially useful information about my machine:
[puzovoz@localhost ~]$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 119.7G 0 part
├─sda2 8:2 0 600M 0 part
├─sda3 8:3 0 1G 0 part /boot
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 102.3G 0 part
├─rl-swap 253:0 0 18G 0 lvm [SWAP]
├─rl-home 253:1 0 53.8G 0 lvm /home
└─rl-root 253:2 0 30.5G 0 lvm /
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 579M 0 part
└─nvme0n1p2 259:2 0 237.9G 0 part
[puzovoz@localhost ~]$ sudo parted -l
Model: ATA WDC WDS240G2G0A- (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 129GB 129GB primary ntfs
2 129GB 129GB 629MB primary fat32 boot
3 129GB 130GB 1074MB primary xfs
4 130GB 240GB 110GB extended lba
5 130GB 240GB 110GB logical lvm
Model: ATA WDC WD10EZRZ-22H (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary ntfs boot
Model: SAMSUNG MZVLQ256HBJD-00B00 (nvme)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 608MB 607MB primary ntfs
2 608MB 256GB 255GB primary ntfs boot
[puzovoz@localhost ~]$ efibootmgr -uv
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000,0003,0008,000A,0009
Boot0000* Windows Boot Manager HD(2,MBR,0x3bdf9fec,0x122000,0x1dbd0000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)䥗䑎坏S
Boot0001* Rocky Linux HD(2,MBR,0xf9e19a73,0xef6a800,0x12c000)/File(\EFI\ROCKY\SHIMX64.EFI)
Boot0003* UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)
Boot0008* UEFI OS HD(2,MBR,0xf9e19a73,0xef6a800,0x12c000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0009 Windows Boot Manager HD(2,MBR,0xf9e19a73,0xef6a800,0x12c000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)
Boot000A* Hard Drive BBS(HD,,0x0)
I’d appreciate if someone could provide a way to restore GRUB without reinstalling the system as I don’t want to potentially have to reinstall again in the future in case something breaks again.