Compare commits
1 Commits
0e537017a5
...
5b95b6fc70
Author | SHA1 | Date |
---|---|---|
Adrian | 5b95b6fc70 |
|
@ -135,27 +135,28 @@ 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.
|
||||
|
||||
### 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:
|
||||
|
||||
sgdisk --hybrid=3 $dev
|
||||
printf DISK | dd bs=1 seek=440 conv=notrunc of=$dev
|
||||
printf 'label-id:0x4b534944\n1,0x7fff,ee\n0x8000,0xf8000,27' | sfdisk -Y dos $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 in UEFI
|
||||
### Boot from UEFI
|
||||
|
||||
Remove the hybrid MBR:
|
||||
|
||||
echo start=1,type=ee | sfdisk -Y dos $dev
|
||||
|
||||
Do *not* use `sgdisk` because it wipes the MBR boot code of GRUB.
|
||||
printf 'label-id:0x00000000\n1,,ee' | sfdisk -Y dos $dev
|
||||
|
||||
If you try to boot without the above configuration,
|
||||
the following message appears:
|
||||
|
|
Loading…
Reference in New Issue