You are not logged in.

#1 2016-08-01 12:16:04

pummeluff0
Member
Registered: 2016-08-01
Posts: 2

Grub: Unable to boot into Win 10. Possibly Windows ESP missing?

I'm unable to boot into Windows 10 via Grub. As far as I understand, this is because I'm missing Windows' EFI partition. As you can see from the lsblk output below, I'm using two different drives for Arch and Windows, whereby Arch is installed on /sda drive and Windows on /sdd. Windows 10 was installed first (long time ago), while I installed Arch just recently - both as UEFI/GPT.

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238.5G  0 disk                // SSD with Arch
├─sda1   8:1    0   512M  0 part /boot          // -- EFI System
├─sda2   8:2    0     8G  0 part [SWAP]         // -- Linux Swap
└─sda3   8:3    0   128G  0 part /              // -- Linux filesystem
sdb      8:16   0 931.5G  0 disk                // HDD for storage (Windows)
└─sdb1   8:17   0 931.5G  0 part                // -- NTFS
sdc      8:32   0 465.8G  0 disk                // HDD for storage (Windows)
└─sdc1   8:33   0 465.8G  0 part                // -- NTFS
sdd      8:48   0 232.9G  0 disk                // SSD with Win10
├─sdd1   8:49   0    16M  0 part                // -- Microsoft reserved
├─sdd2   8:50   0 232.4G  0 part                // -- Microsoft basic data
└─sdd3   8:51   0   450M  0 part                // -- Microsoft recovery environment

To boot into Windows 10, I'm using this script for Grub (following this answer on stackexchange):

menuentry "Windows 10"{
        insmod part_gpt
        insmod search_fs_uuid
        insmod ntfs
        insmod chain
        search --fs-uuid --set=root --hint-bios=hd3,gpt2 --hint-efi=hd3,gpt2 --hint-baremetal=ahci3,gpt2 0EBED7AFBED78E19
        chainloader (${root})/Windows/Boot/EFI/bootmgfw.efi
}

When I try to boot Windows 10, I'm greeted by a "Windows Boot Manager" screen, which states that Windows failed to start and that "the boot configuration data for your pc is missing or contains errors". Just like in this screenshot, but in my case, the file is /EFI/Microsoft/Boot/BCD, not /Boot/BCD

I guess that Windows installed its EFI System partition to /sda, since I have read that Windows seems to assume, that it is the only / first installed OS, thus tends to write the EFI partition to the first physically attached device. And when I installed Arch, I might have deleted that partition on /sda, because I didn't expect any partitions on this drive to have any connection with my Windows 10 installation. In fact, I assumed that /sdd1 ("Microsoft reserved") is the partition, where Windows stores its EFI / Boot files.

Of course I'm trying to fix this issue with the help of the Arch Wiki and various guides, but I feel that I'm at a point where I have to ask for advice on how to tackle this further.
What do I need to do, to dualboot into Windows 10 via Grub? Can I just boot from a Windows 10 install media via USB and fix the MBR with bootrec, or will it f*ck up my EFI partition on /sda?

Offline

#2 2016-08-01 12:46:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Grub: Unable to boot into Win 10. Possibly Windows ESP missing?

There is no such thing as a Windows EFI partition. EFI System partitions (ESPs) are OS-independent. If Windows didn't create one (or use an existing one) when you installed it, then you didn't install it in EFI mode, it is using legacy boot mode. Was sda attached when you installed Windows? Were there any partitions on sda before you installed Arch? If there was, and one of them was an EFI partition, did you format it?

If you've nuked the ESP with Windows' boot files on it, then you will need to recreate these file. Seek support on a Windows forum.

If Windows was installed in legacy mode, then you should probably switch to a legacy bootloader. I don't think it's possible to boot a legacy OS from an EFI bootmanager.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-08-01 13:12:37

pummeluff0
Member
Registered: 2016-08-01
Posts: 2

Re: Grub: Unable to boot into Win 10. Possibly Windows ESP missing?

Thanks for your reply, WorMzy.

Before I installed Arch, I made sure, Windows was installed in UEFI mode, looking into msinfo32. It's definitely not in legacy mode.

Yes, /sda was attached when I installed Windows 10 on /sdd. During that time, I had Linux Mint installed on /sda, which I didn't touch since then. About two weeks ago, I formated /sda through Windows Disk Management as NTFS because I initially intended to use it as second SSD for my Windows apps and files. I can't say for sure, if there still was an ESP on that device when I installed Arch - as I said erlier: I didn't assume that any data on this drive might be related to Windows.

So it seems that I've deleted the ESP Windows was using by accident, right?

Update: I managed to boot into Windows 10 again using bootrec. I can now switch between Arch and Windows 10 through the UEFI, but Grub still refuses to boot into Windows. I will look into this next.

Last edited by pummeluff0 (2016-08-01 14:30:08)

Offline

Board footer

Powered by FluxBB