You are not logged in.
Pages: 1
Greetings all,
I've been dealing with this for a few weeks and I can't seem to get GRUB to chain-load my Windows install. I'm able to boot from the Windows drive itself, but not if I chain-load from GRUB.
Here is my lsblk -f
user:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 ext4 1.0 b37991d8-cfe8-4f6b-b5f5-0cab0379e742 739.3M 17% /boot
├─sda2 vfat FAT32 4CE6-20FB 1021.8M 0% /boot/efi
└─sda3 btrfs 41e5700c-8559-4fe0-ac8e-e6eeec8fafa3 428.1G 4% /home
/
nvme1n1
├─nvme1n1p1 vfat FAT32 C091-9545
├─nvme1n1p2
├─nvme1n1p3 ntfs 0E84CD5C84CD4745 506.6G 47% /mnt/other
└─nvme1n1p4 ntfs C67AED5A7AED482F
user:~$Windows is on the nvme1n1 drive.
I keep getting this error when I select my windows from the GRUB menu:
error: commands/search.c:grub_search_fs_uuid:371:no such device: C091-9545.
error: fs/fshelp.c:find_file:260:file '/efi/Microsoft/Boot/bootmgfw.efi' not found.The odd part is, if I reinstall GRUB, then it works. Though if I try to boot into windows again it doesn't work. So only the first time does it properly chain-load into Windows.
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUBI've disabled fast startup, made sure there are no dirty bits on any drives and ran chkdsk in windows. No matter what I do I can't get it to properly chainload it. If I cd into the directory where it says it can't find bootmgfw.efi, it is actually there, which I find odd.
I've searched inside "/etc/grub/grub.cfg" for the windows entry and this is what I found:
if [ "$grub_platform" = "efi" ]; then
menuentry 'Windows Boot Manager (on /dev/nvme1n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-C091-9545' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root C091-9545
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
fiWhich seems to be normal. So I am quite stumped as to why this won't boot.
/EFI/Microsoft/Boot/bootmgfw.efiI've since tried a custom menuentry, by putting it in "/etc/grub.d/50_custom":
#!/bin/sh
exec tail -n +3 $0
menuentry "Windows Custom Entry" --hotkey=w {
search --fs-uuid --set=root C091-9545
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}This also did not work and gave the same errors. Any help or advice is greatly appreciated.
Thank you in advance.
Last edited by Vastoren (Yesterday 17:38:00)
Offline
Mainboard: GIGABYTE B550 AORUS ELITE V2 | CPU: Ryzen 7 5800X | RAM: 32 GB
GPU: GeForce RTX 4060 8 GB (580.119.02 proprietary) | Display: BenQ BL2405 1920x1080
Kernel: 6.18.8 stable | Boot Manager: GRUB2 | DE: KDE Plasma | Login Manager: SDDM | Compositor: KWin
Offline
Pages: 1