Compare commits
1 Commits
5b95b6fc70
...
0e537017a5
Author | SHA1 | Date |
---|---|---|
Adrian | 0e537017a5 |
|
@ -135,28 +135,27 @@ Copy [winre-uefi.bcd](winre-uefi.bcd) and [winre-bios.bcd](winre-bios.bcd):
|
|||
## Windows Hybrid Boot
|
||||
|
||||
Windows can not be booted from BIOS and UEFI with the same configuration.
|
||||
|
||||
The above procedure enables Windows to boot using UEFI.
|
||||
|
||||
Do *not* use `sgdisk` for MBR modifications,
|
||||
because it wipes the MBR boot code of GRUB.
|
||||
|
||||
### Boot from BIOS
|
||||
### Boot in 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,
|
||||
the following message appears in the blink of an eye:
|
||||
|
||||
ata1 master: Unknown device
|
||||
|
||||
### Boot from UEFI
|
||||
### Boot in UEFI
|
||||
|
||||
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,
|
||||
the following message appears:
|
||||
|
|
Loading…
Reference in New Issue