Compare commits

..

1 Commits

Author SHA1 Message Date
Adrian 5b95b6fc70 New Hybrid Boot documentation 2019-01-08 00:14:59 +01:00
1 changed files with 8 additions and 7 deletions

View File

@ -135,27 +135,28 @@ Copy [winre-uefi.bcd](winre-uefi.bcd) and [winre-bios.bcd](winre-bios.bcd):
## Windows Hybrid Boot ## Windows Hybrid Boot
Windows can not be booted from BIOS and UEFI with the same configuration. Windows can not be booted from BIOS and UEFI with the same configuration.
The above procedure enables Windows to boot using UEFI. The above procedure enables Windows to boot using UEFI.
### Boot in BIOS Do *not* use `sgdisk` for MBR modifications,
because it wipes the MBR boot code of GRUB.
### Boot from BIOS
Windows needs an MBR to boot from BIOS: Windows needs an MBR to boot from BIOS:
sgdisk --hybrid=3 $dev printf 'label-id:0x4b534944\n1,0x7fff,ee\n0x8000,0xf8000,27' | sfdisk -Y dos $dev
printf DISK | dd bs=1 seek=440 conv=notrunc of=$dev
If you try to boot without the above configuration, If you try to boot without the above configuration,
the following message appears in the blink of an eye: the following message appears in the blink of an eye:
ata1 master: Unknown device ata1 master: Unknown device
### Boot in UEFI ### Boot from UEFI
Remove the hybrid MBR: Remove the hybrid MBR:
echo start=1,type=ee | sfdisk -Y dos $dev printf 'label-id:0x00000000\n1,,ee' | sfdisk -Y dos $dev
Do *not* use `sgdisk` because it wipes the MBR boot code of GRUB.
If you try to boot without the above configuration, If you try to boot without the above configuration,
the following message appears: the following message appears: