Compare commits

..

1 Commits

Author SHA1 Message Date
Adrian 0e537017a5 New Hybrid Boot documentation 2019-01-07 15:46:51 +01:00
1 changed files with 7 additions and 8 deletions

View File

@ -135,28 +135,27 @@ 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.
Do *not* use `sgdisk` for MBR modifications, ### Boot in BIOS
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:
printf 'label-id:0x4b534944\n1,0x7fff,ee\n0x8000,0xf8000,27' | sfdisk -Y dos $dev sgdisk --hybrid=3 $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 from UEFI ### Boot in UEFI
Remove the hybrid MBR: Remove the hybrid MBR:
printf 'label-id:0x00000000\n1,,ee' | sfdisk -Y dos $dev echo start=1,type=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: