📚 Encyclopedia

Linux Desktop · updated 2026-10-13

Repairing a Windows 11 boot hang from Linux and WinRE (and when to stop)

windowsdual-bootnvmevmdregistryhivexntfs-3gbcdwinrediskpart

A Windows 11 install that stops booting after you change storage settings (adding a disk, installing Linux, switching Intel VMD/RST off) usually hangs forever on the spinning-dots screen. You can inspect and edit almost everything offline: from Linux (NTFS mount, registry hive edits, EFI variables) and from WinRE (diskpart, DISM, SFC, bcdboot). This article records the full toolkit and the decision path from the ArchZeph case (ASUS ROG, two 1863 GB NVMe disks, Windows on one, Arch on the other), where every software repair came back clean and the answer was a clean reinstall.

Background: why storage changes break Windows boot

Toolkit from Linux

Mount read-write (Windows was not cleanly shut down, so NTFS is dirty and hibernation data may exist):

sudo mount -t ntfs-3g -o remove_hiberfile /dev/nvme0n1p3 /mnt/win   # FUSE ntfs-3g supports remove_hiberfile
# kernel ntfs3 does NOT support remove_hiberfile; -o force mounts but leaves hiberfil.sys

Read and edit the SYSTEM hive (path is case-sensitive: WINDOWS/System32/config/SYSTEM; Select\Current tells you which ControlSet is live):

sudo hivexregedit --merge --prefix 'HKEY_LOCAL_MACHINE\SYSTEM' /mnt/win/WINDOWS/System32/config/SYSTEM <<'EOF'
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\iaStorAVC]
"Start"=dword:00000003

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\iaStorAVC\StartOverride]
"0"=dword:00000003
EOF

Verify with hivexget before rebooting. Boot Windows once without changing order: sudo efibootmgr -n <WindowsBootManagerNum>.

Toolkit from WinRE (Shift+F10 at the first Setup screen, or Repair > Command Prompt)

Diagnostic logic that settles it

Clean reinstall without breaking the Linux disk

  1. Boot the installer USB fresh and choose Install now. "Repair your computer" leads only to recovery menus with no install path.
  2. At the first Setup screen press Shift+F10, run diskpart, identify the Windows disk by its OS-labeled volume, then select disk <Linux disk> → offline disk. Offline does not persist across reboots; redo it in the same session you install from.
  3. Error 0x80070001 - 0x4002F on a multi-disk machine (especially two identical-size disks) means Setup is confused by the other disks: offline them.
  4. "I don't have a product key": ASUS and most OEM laptops carry the Windows license in firmware (ACPI MSDM table), so a clean install reactivates automatically online and picks the right edition.
  5. Custom install, delete only the Windows disk's partitions, install into the unallocated space. With Linux offline, Windows cannot touch its ESP. Afterward fix boot order with efibootmgr if needed.
  6. After first boot: powercfg /h off and disable Fast Startup to avoid stale hibernation images.

Making the install USB from Linux

install.wim in current Win11 ISOs is about 7 GB, above FAT32's 4 GB limit, and raw dd of the ISO failed on the ASUS ("media driver missing"). Working layout: partition 1 FAT32 (about 1.5 GB, ESP) with every ISO file except sources/install.wim; partition 2 NTFS with the full ISO. mkntfs is in the ntfsprogs package, not ntfs-3g.

Gotchas

See also

Linked from

Sources: home memory project_archzeph_windows_boot, reference_archzeph