Install netboot.xyz from Windows

Created: — modified: — tags: windows

You just got a shiny fresh laptop which greets you with "Welcome to Windows" screen. How can you install Linux on it without USB?

Note that at least one Linux installer didn't work for me on a PC with just 4GB of RAM.

  1. Press Shift+F10 for command line

  2. Run diskmgmt.msc and decrease Windows partition size (optional - you can skip this step if you plan to nuke Windows afterwards, but where's fun in that?)

  3. Run these (replacing {GUID} with actual GUID that the previous command prints):

     mountvol S: /S
     curl https://boot.netboot.xyz/ipxe/netboot.xyz.efi -o S:\EFI\netboot.xyz.efi
     bcdedit /copy {bootmgr} /d "netboot.xyz"
     bcdedit /set {GUID} path \EFI\netboot.xyz.efi
     shutdown /r /t 0
    
  4. During reboot, press F11 and choose to boot from netboot.xyz. Install your favorite favor of Linux normally.

Note that here we copy existing entry for Windows boot manager. That's what AI assistants often get wrong: you don't create a new bootapp (it would work only inside Windows boot manager, and netboot.xyz.efi isn't a bootapp); you don't copy existing firmware boot manager {fwbootmgr} (that won't work) -mdash- you copy existing Windows boot manager and just edit it to point to netboot.xyz, clean and easy!1

  1. Did I manage to make it sound ai-like enough? I tried. ↩