GRUB2 – Fixing Missing ntldr.mod on Debian and Windows

debiangrub2windows

I use Debian Wheezy on EFI motherboard and need ntldr module in GRUB2 to load bootmgr of Windows 7 installer, because the way it starts on its own (apparently, using the boot sector of the USB flash drive the installer is on) it only installs Windows on MBR-formatted disk. When I install GRUB using grub-install it won't add ntldr.mod to the GRUB modules folder and can't insmod it.

  1. Why? When I only download GRUB package without installation (apt-get download…), the module can be found there. If I add the .mod file from the downloaded package to the installed GRUB's modules folder and then "insmod ntldr" from the GRUB command line, it says something about wrong "ELF magic" (?).
  2. How to do it forcibly?
  3. Is there another way to boot the Windows installer in the "GPT-mode", as
    I don't want to format the whole disk into MBR.

Best Answer

You downloaded the grub-pc package, which is for bios booting machines, so the module will not load in the efi version of grub. That module does not exist in the EFI version of grub because it relies on the bios.

If you want to boot the windows installer from a usb stick, then you shouldn't be doing anything with grub; just tell your firmware to boot that drive instead of your hd with grub on it.

Related Question