双GPT硬盘grub引导Centos+windows8
双GPT硬盘grub引导Centos+windows8
双GPT硬盘grub引导Centos+windows8
两块硬盘,一块当装了Centos一块安装了Windows8,都采用uefi方式安装。启动的时候选择硬盘很麻烦,修改Centos下grub.cfg文件加入另一块硬盘的引导信息。
grub.cfg文件在路径:/boot/efi/EFI/redhat/grub.cfg
加入如下代码:
1
title Windows8
2
insmod part_gpt
3
insmod fat
4
root (hd1,1)
5
search --no-floppy --fs-uuid --set=root AEC1-B9CD
6
chainloader /EFI/Boot/bootx64.efi
root (hd1,1)
代表windows 8 盘的uefi 分区,我是sdb2
--set=root AEC1-B9CD
AEC1-B9CD 是sdb2的UUID,可使用命令“sudo blkid”查看
评论暂时关闭