iPXE discussion forum
Boot to hard drive partition - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Boot to hard drive partition (/showthread.php?tid=9231)



Boot to hard drive partition - jwalker - 2017-04-11 19:05

I am trying to install iPXE to a hard drive partition on a Windows OS so I can dual boot to either iPXE or Windows. My employer does not allow USB drives and does not want to flash any NIC ROMs. I found a thread from a few years ago with this topic but after following the instructions I can not get it to work. Here is the thread I'm referring to.

http://lists.ipxe.org/pipermail/ipxe-devel/2014-February/003158.html

Any help is much appreciated.

Thanks!


RE: Boot to hard drive partition - NiKiZe - 2017-04-11 19:42

you can dd (raw copy) ipxe.usb to a harddrive, but you will need to recreate any other partitions afterwards, bootloader is another issue, so getting windows on the same drive could prove tricky.

As a workaround you could use grub and ipxe.lkrn to be able to switch between the two.


RE: Boot to hard drive partition - jwalker - 2017-04-12 20:50

Thanks for the reply NiKiZe. Your suggestion lead me down the path to a successful solution.

1. First get the latest Grub4Dos. Copy grldr.mbr, grldr, and menu.lst to the root of C:

2. Add an entry in BCD to boot to grub

bcdedit /create /d "GRUB4DOS" /application bootsector
bcdedit /set {id} device partition = c:
bcdedit /set {id} path \grldr.mbr
bcdedit /displayorder {id} /addlast
*Note - {id} is the guid that is returned after the first command

3. Add the configuration in menu.lst to boot iPXE.lkrn

title IPXE
root (hd0,0)
kernel (hd0,0)/ipxe.lkrn