Dual System Boot
UEFI QEMU
- Using UEFI with QEMU
- How to boot EFI kernel using QEMU ?
- OVMF Whitepaper
- How to run OVMFGitHubtianocore/tianocore.github.io/wiki/How-to-run-OVMF
- EDK IIGitHubtianocore/tianocore.github.io/wiki/EDK-II
- tianocore/edk2GitHubtianocore/edk2
EDK II is a modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications. EDK II is open source, using a BSD license.
Windows Boot Manager
bcdedit /set {ID} device partition=c:
bcdedit /set {ID} path \linux.bin
bcdedit /displayorder {ID} /addlast
bcdedit /timeout 30SSD Optimization
UEFI + GPT
ESP (EFI System Partition)
- win8.1与archlinux(UEFI+GPT)双系统共存—窗口环境配置
- Dual boot with Windows
- GRUB/Tips and tricks
- GRUB/EFI examples
- EFI System Partition
- 安装win10_arch双系统过程
ESP分区是FAT32格式的,主要用来放Windows的引导文件。UEFI不支持从NTFS格式的分区启动。
MSR (Microsoft Reserved Partition)
- MSR分区即 Microsoft Retain 微软保留分区。
- 小于 16 GB 的磁盘,MSR 分区为 32 MB。
- 大于 16 GB 的磁盘,MSR 分区为 128 MB。
- 没有MSR分区Windows还是可以启动。
Windows Boot Files
Windows Boot Manager: 启动选项bootmgfw.efi: 引导Windows的引导文件。Bootx64.efi: UEFI的必需引导文件!CS-M: Compatibility Support Module,兼容性支持模块。
Recovery
恢复引导项:在pe中运行cmd后输入 bcdboot c:\windows /f all /s f: /l zh-cn
GRUB
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grubAdd Windows 8.1 Entry
# /boot/grub/grub.cfg
menuentry 'windows8' {
insmod part_gpt
insmod chain
set root='(hd0,gpt2)'
chainloader /EFI/microsoft/Boot/bootmgfw.efi
}
if [ "${grub_platform}" == "efi" ]; then
menuentry "Microsoft Windows Vista/7/8/10 UEFI-GPT" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root $hints_string $fs_uuid
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
fi
# BIOS+MBR
menuentry 'Windows ' {
insmod ntfs
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 你的硬盘UUID
chainloader +1
}Tools
ms-sys: Write MBRsefibootmgr: Manage EFI boot entries- Etcher
ms-sys --partition /dev/sda1Systemd EFISTUB Update
Monitor kernel updates to copy EFISTUB kernel to ESP.
/etc/systemd/system/efistub-update.path:
[Unit]
Description=Copy EFISTUB Kernel to EFI System Partition
[Path]
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
WantedBy=system-update.target/etc/systemd/system/efistub-update.service:
[Unit]
Description=Copy EFISTUB Kernel to EFI System Partition
[Service]
Type=oneshot
ExecStart=/usr/bin/cp -af /boot/vmlinuz-linux esp/EFI/arch/
ExecStart=/usr/bin/cp -af /boot/initramfs-linux.img esp/EFI/arch/
ExecStart=/usr/bin/cp -af /boot/initramfs-linux-fallback.img esp/EFI/arch/关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub3 条
- tianocore/edk2github.com/tianocore/edk2
- tianocore/tianocore.github.io/wiki/EDK-IIgithub.com/tianocore/tianocore.github.io/wiki/EDK-II
- tianocore/tianocore.github.io/wiki/How-to-run-OVMFgithub.com/tianocore/tianocore.github.io/wiki/How-to-run-OVMF
其他外链14 条
- bbs.archlinuxcn.org/viewtopic.php?id=3474bbs.archlinuxcn.org/viewtopic.php?id=3474
- bbs.zol.com.cn/diybbs/d34028_544.htmlbbs.zol.com.cn/diybbs/d34028_544.html
- blog.icehoney.me/posts/2015-10-28-UEFI-dual-boot-Archlinuxblog.icehoney.me/posts/2015-10-28-UEFI-dual-boot-Archlinux
- etcher.ioetcher.io/
- fedoraproject.org/wiki/Using_UEFI_with_QEMUfedoraproject.org/wiki/Using_UEFI_with_QEMU
- tech.memoryimprintstudio.com/dual-boot-installation-of-arch-linux-with-preinstalled-windows-10-with-encryptiontech.memoryimprintstudio.com/dual-boot-installation-of-arch-linux-with-preinstalled-windows-10-with-encryption
- unix.stackexchange.com/a/57221/47774unix.stackexchange.com/a/57221/47774
- wangpai.2345.cn/thread.php?fid=12&pid=2964106wangpai.2345.cn/thread.php?fid=12&pid=2964106
- wiki.archlinux.org/index.php/Dual_boot_with_Windowswiki.archlinux.org/index.php/Dual_boot_with_Windows
- wiki.archlinux.org/index.php/EFI_System_Partitionwiki.archlinux.org/index.php/EFI_System_Partition
- wiki.archlinux.org/index.php/GRUB/EFI_exampleswiki.archlinux.org/index.php/GRUB/EFI_examples
- wiki.archlinux.org/index.php/GRUB/Tips_and_trickswiki.archlinux.org/index.php/GRUB/Tips_and_tricks
- www.ithome.com/html/win10/206428.htmwww.ithome.com/html/win10/206428.htm
- www.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8c.txtwww.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8c.txt