1

Current Setup

  • /dev/sda - Secondary internal disk (despite the a).
    • /dev/sda1 - Old ESP, not actually used.
    • /dev/sda2 - An unused Linux, for backup purposes.
    • /dev/sda3 - Swap partition.
    • /dev/sda4 - Windows 10 installer (NTFS formatted, copied from an ISO, due to a lack of a spare USB that could fit it).
  • /dev/sdb - Primary internal disk (despite the b).
    • /dev/sdb1 - The actual ESP in use, with rEFInd on it.
    • /dev/sdb2 - Debian. My home ❀.
    • /dev/sdb3 - A cleanly formatted NTFS partition, prepared just for Windows.
    • /dev/sdb4 - Shared FAT32 partition for data storage.

Problem

I want to install Windows 10 onto /dev/sdb3, so I made a temporary partition on /dev/sda4 to hold the Windows installer files, because I lack a sufficiently large USB to act as an installer disk. Once that was done, I booted into the installer via rEFInd, and began installation. However, I could not get past the beginning of the phase where it begins to copy files. It complains that the EFI partition (the ESP) is incorrectly formatted as NTFS, even though it is clearly FAT32. The target partition for Windows itself is NTFS, as is the installer disk.

Question

Is Windows supposed to be this hard to install? 😣

6
  • What partition types are reported by fdisk -l for both disks? Do you have EFI Shell available?
    – grawity_u1686
    Commented Dec 14, 2019 at 17:02
  • "EFI System" for the target ESP at /dev/sdb1, and "Microsoft basic data" for the target Windows partition, both as expected. blkid -p likewise reports the same thing.
    – Mona the Monad
    Commented Dec 14, 2019 at 17:07
  • (That's assuming the real question is "How do I make Windows continue with the installation without complaining", as "Is Windows supposed to be this hard to install?" is a bit off-topic for the site.)
    – grawity_u1686
    Commented Dec 14, 2019 at 17:07
  • (yes, "Is Windows supposed to be this hard to install?" is supposed to be rhetorical 😣)
    – Mona the Monad
    Commented Dec 14, 2019 at 17:08
  • If /dev/sda1 is not used, perhaps deleting or destroying it might help unconfuse Windows.
    – harrymc
    Commented Dec 14, 2019 at 22:01

1 Answer 1

3

My current guess is that Windows searches all partitions on all fixed disks to find one that looks like an EFI System Partition, ignoring the partition type GUID. (This is probably for auto-repair reasons, since a wrong partition type GUID wouldn't actually prevent UEFI from booting from that partition, but I'm guessing Windows wants to correct it anyway.)

As a result it's probably misdetecting its own "installer" partition as the EFI System Partition due to it having an \EFI directory.

Possible workarounds:

  • Rename the \EFI directory on the NTFS partition to something like \NotEFI. You should still be able to start the bootloader, either through rEFInd or through the EFI Shell.

  • Delete (or rename) the \EFI directory from the NTFS partition as soon as the Windows installer has finished booting, by using the ShiftF10 terminal window. This should prevent the installer from picking it up as an EFI System Partition.

  • Boot the installer from a small USB stick, and place only the Install.wim file on the temporary NTFS partition (at the root of the filesystem). This should be supported for the last few Win10 releases, according to WinPE documentation.

  • Instead of using the standard installer, open the Shift+F10 terminal window and manually install Windows using dism /apply-image and bcdboot.

5
  • Thanks! I'll try these out soon. Probably the last one first.
    – Mona the Monad
    Commented Dec 14, 2019 at 18:24
  • Also, is that last method ESP-aware? Does it automatically smush a bootloader into the ESP, or must I manually tell it where it is with bcdboot /s?
    – Mona the Monad
    Commented Dec 14, 2019 at 18:31
  • bcdboot usually detects the ESP on its own. In your case it might not.
    – grawity_u1686
    Commented Dec 14, 2019 at 18:47
  • I managed to apply the image using dism, but attempting to bcdboot fails with Could not open the BCD template store. Status = [c000000f]. This is all by manually specifying paths and volumes and whatnot :c
    – Mona the Monad
    Commented Dec 14, 2019 at 21:47
  • Alright, I finally got it! One last question, though. Is it possible to install the boot files and BCD to the Windows partition itself instead of the ESP?
    – Mona the Monad
    Commented Dec 15, 2019 at 0:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .