Arago

1.进入linux,以root身份执行:

sudo fdisk -l

此时列出硬盘的主要信息如下:

Device Start End Size Type
/dev/sda1 2048 616447 300M Windows recovery environment
/dev/sda2 616448 821247 100M EFI System
/dev/sda3 821248 1083391 128M Microsoft reserved
/dev/sda4 1083392 122882047 58.1G Microsoft basic data
/dev/sda5 122882048 286722047 78.1G Microsoft basic data
/dev/sda6 286722048 491522047 97.7G Microsoft basic data
/dev/sda7 491522048 492546047 500M EFI System
/dev/sda8 492546048 493570047 500M Microsoft basic data
/dev/sda9 493570048 976709631 230.4G Linux LVM

可以看到:
/dev/sda2与/dev/sda7 分区为EFI System,/dev/sda7是linux分区时分出的引导,那/dev/sda2就是window的引导了。

 

2.编辑grub2的配置:

sudo gedit /etc/grub.d/40_custom

添加如下内容

menuentry \'Windows Boot Manager\' {
set root=\'hd0,gpt2\'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
} 

set root是设置引导所在的磁盘,在grub2中hd0指第一块硬盘sda,gpt2是指gpt方式分的第二个硬盘分区

 

3.输入命令更新grub2引导项

sudo update-grub

 

参考连接:http://www.cnblogs.com/hilo/p/4553296.html

分类:

技术点:

相关文章:

  • 2022-01-02
  • 2021-12-23
  • 2021-09-21
猜你喜欢
  • 2022-01-03
  • 2021-06-07
  • 2021-11-23
  • 2019-11-17
  • 2022-12-23
相关资源
相似解决方案