赞
踩
grub 引导win10
sudo blkid
查看 硬盘各个分区的 uuid
wmx@wmx-ubuntu:~$ sudo blkid
[sudo] wmx 的密码:
/dev/sdb1: LABEL="SDB1-BOOT" UUID="97C7-F9EA" TYPE="vfat" PARTLABEL="sdb1-boot" PARTUUID="89a0f9f7-3ae1-45e3-9974-3a19fc452dc1"
/dev/sdb2: LABEL="sdb2-root" UUID="a4a5a43d-f5c2-4fa0-b8e8-977612bf34c1" TYPE="ext4" PARTLABEL="sdb2-root" PARTUUID="132e0dc6-5e03-4da8-83be-b4f96234fb01"
/dev/sdb3: LABEL="sdb3-win" UUID="183936B85A43EACD" TYPE="ntfs" PARTLABEL="sdb3-win" PARTUUID="8e5b261e-2e2e-4c28-ba18-21dee858c91b"
/dev/sda1: UUID="5465-9647" TYPE="vfat" PARTUUID="8f2ca428-4e5d-43fe-a9a5-a92c9c74d943"
/dev/sda3: LABEL="sda2-root" UUID="abe709cc-2443-40f9-a3f9-448e452205c9" TYPE="ext4" PARTUUID="b0c24a58-4b72-4334-906e-f61c0584989b"
/dev/sda4: UUID="DA18EBFA09C1B27D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="72723ab6-5462-4f14-b84e-a9979bef7585"
/dev/sda5: UUID="203c2a8f-f3ce-4e1a-a989-db018fd2fafe" TYPE="swap" PARTUUID="19e88641-bc45-46aa-9602-401b9339c3d7"
/dev/sda2: PARTUUID="cc20d456-9c7b-4712-9a35-b8acf7253993"
wmx@wmx-ubuntu:~$
输入命令sudo fdisk -l
wmx@wmx-ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6241B27F-D5FD-4CE4-83C0-F38C5209AEB6
设备 Start 末尾 扇区 Size 类型
/dev/sda1 2048 1026047 1024000 500M EFI System
/dev/sda2 1026048 1050623 24576 12M BIOS boot
/dev/sda3 1050624 210765823 209715200 100G Linux filesystem
/dev/sda4 210765824 435427327 224661504 107.1G Microsoft basic data
/dev/sda5 435427328 468860927 33433600 16G Linux swap
wmx@wmx-ubuntu:~$
其中 我的硬盘 GPT分区格式 EFI启动方式
/dev/sda1 是 EFI分区
/dev/sda2 是 BIOS boot 启动区 硬盘上必须有这个分区才能启动win10
制作这个分区我的另一篇教程:grub制作USB启动盘
/dev/sda3 安装的是ubuntu 16.04
/dev/sda4 安装的是 win10
在如下代码块后面
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
追加,如下所示:
### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/25_custom ### menuentry "gpt4/EFI/Microsoft/Boot/bootmgfw.efi" { search --fs-uuid --no-floppy --set=root DA18EBFA09C1B27D chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi } menuentry "gpt4/EFI/Microsoft/Boot/bootmgr.efi" { search --fs-uuid --no-floppy --set=root DA18EBFA09C1B27D chainloader (${root})/EFI/Microsoft/Boot/bootmgr.efi } menuentry "gpt4/EFI/Boot/bootx64.efi" { search --fs-uuid --no-floppy --set=root DA18EBFA09C1B27D chainloader (${root})/EFI/Boot/bootx64.efi } ### END /etc/grub.d/25_custom ###
其中 search --fs-uuid --no-floppy --set=root DA18EBFA09C1B27D
即是按照uuid 查找 安装 win10 分区 /dev/sda4
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
使用 /dev/sda4硬盘下 EFI/Microsoft/Boot/bootmgfw.efi 作为引导加载win10
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。