Windows + openEuler dual boot — GRUB/os-prober mechanics verified (os-prober enabled by default is an openEuler difference) and the installation route
Verification scope
Section titled “Verification scope”Evidence on this page comes from two tracks:
Machine track (E3) — VM 381 euler24-lab (openEuler 24.03 LTS SP4, 2026-11-05): mechanics of the os-prober/grub2 ecosystem verified — the os-prober package’s preinstalled state, the gate logic of 30_os-prober, a grub2-mkconfig run, and the detection-boundary experiment with a forged Windows ESP. Raw log: evidence/logs/openeuler-p2-dualboot-vm.log.
Documentation track — the Windows-side boot takeover and repair paths follow Microsoft’s official documentation (bootrec/BCDEdit). Checked 2026-11-05.
Not tested in this environment: the full end-to-end install of a real Windows + openEuler dual boot (the lab does no Windows-image installation); this page explains the openEuler-side mechanics thoroughly, gives the right route, and lays out the Windows side per official documentation.
Two mechanics facts to remember first (verified on a VM)
Section titled “Two mechanics facts to remember first (verified on a VM)”1) os-prober arrives with the installer on openEuler 24.03 (sourced from @anaconda):
$ rpm -q os-prober # VM 381, verified (@anaconda source = installed with the OS)os-prober-1.81-3.oe2403sp4.x86_642) openEuler’s GRUB does not disable os-prober by default. Upstream GRUB 2.06 onward skips os-prober by default for security reasons (skipped when GRUB_DISABLE_OS_PROBER=true); the verified state on openEuler 24.03: no GRUB_DISABLE_OS_PROBER line exists in /etc/default/grub (variable unset, re-checked 2026-11-10, evidence/logs/openeuler-dualboot-osprober.log) — the gate never triggers, so os-prober participates in discovery by default:
$ grep -rE "OS_PROBER" /etc/default/grub(no output — /etc/default/grub does not set the variable)$ grep -n "GRUB_DISABLE_OS_PROBER" /etc/grub.d/30_os-proberif [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then …Unset → the 30_os-prober script runs by default — openEuler’s grub2-mkconfig actively probes for other operating systems and generates menu entries. For dual-boot users this is good news (after installing openEuler, Windows usually boots directly); for a pure server it is one harmless empty probe.
The tested boundary: a forged Windows ESP was not recognized by os-prober
Section titled “The tested boundary: a forged Windows ESP was not recognized by os-prober”The experiment forged a “Windows ESP” on the VM (GPT + a 200M EFI partition + FAT32 + hand-placed bootmgfw.efi/bcd dummy files); os-prober returned empty and grub2-mkconfig did not find Windows — but this only shows that the dummy files were not recognized as a Windows installation and cannot be inverted into the specifics of Microsoft’s validation (the log also first recorded two missing-environment steps: /dev/sdb1 not ready and mkfs.vfat missing; the ESP was only built after installing dosfstools). The experiment’s value is the troubleshooting direction: when Windows is not found by GRUB in a dual boot, first check that the Windows boot files in the ESP are intact (\EFI\Microsoft\Boot\bootmgfw.efi + BCD) rather than immediately suspecting that openEuler’s os-prober is broken.
The installation route: Windows first, then openEuler
Section titled “The installation route: Windows first, then openEuler”The ordering invariant (the Windows installer overwrites the ESP/MBR, so installing it first saves one repair):
- Install Windows first: leave unallocated space during its install (or shrink a volume in Windows Disk Management to leave ≥30G);
- The openEuler installer: choose “custom partitioning” for the install target, do not format Windows’ ESP/NTFS partitions, and put the bootloader on the same ESP (Anaconda adds openEuler’s boot entry into the existing ESP so multiple systems coexist) or a separate disk;
- Verify the GRUB menu: after installing and rebooting you should see GRUB list openEuler and Windows Boot Manager (an os-prober product); if not, run
GRUB_DISABLE_OS_PROBER=false grub2-mkconfig -o /boot/grub2/grub.cfg(BIOS) or the corresponding EFI path once inside openEuler; - Repairing a lost bootloader: after large Windows updates the BCD may be rewritten and push GRUB out — use the Windows recovery environment’s
bootrec /fixmbr(BIOS) and then recover from openEuler live media withgrub2-install+grub2-mkconfig; on EFI the firmware boot menu usually still holds an openEuler entry (each boot entry is independent of the BCD).
Unverified
Section titled “Unverified”- The full real Windows + openEuler dual-boot install was not tested in this environment (ESP coexistence, a dual-entry GRUB menu, post-Windows-update repair — needs a Windows environment; this page’s Windows side follows official documentation);
- grub2-mkconfig discovering a real Windows end-to-end not tested in this environment (the forged-ESP boundary experiment proved the strictness of the validation in reverse);
- BitLocker’s interaction with dual boot not covered (BitLocker partitions show up under os-prober as an unknown system; probe again after unlocking — left for the Windows testing round).