首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试在同一驱动器上安装CentOS 7和Windows 10 (双引导)

问尝试在同一驱动器上安装CentOS 7和Windows 10 (双引导)
EN

Unix & Linux用户
提问于 2019-02-10 20:26:11
回答 1查看 945关注 0票数 0

我在我的SSD和CentOS 7上安装了CentOS 10,在CentOS安装的最后一次重新启动之后,grub中没有针对我的Windows 10的条目。

这里是fdisk -l

代码语言:javascript
复制
isk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 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
Disk label type: gpt
Disk identifier: 873E25DD-2CDA-11E9-AD60-38BAF8FA5F68


#         Start          End    Size  Type            Name
 1         2048      1026047    500M  Microsoft basic 
 2      1026048    316117075  150.3G  Microsoft basic 
 3    316119040    316323839    100M  EFI System      
 4    316323840    317951999    795M  Windows recover 
 5    317968384    635920383  151.6G  Microsoft basic 
 6    635936768    953888767  151.6G  Microsoft basic 
 7    953905152   1052209151   46.9G  Microsoft basic 
 8   1052225536   1117761535   31.3G  Linux filesyste 
 9   1117777920   1150545919   15.6G  Linux filesyste 
10   1150562304   1183330303   15.6G  Linux filesyste 
11   1183346688   1216114687   15.6G  Linux filesyste 
12   1216131072   1248899071   15.6G  Linux filesyste 
13   1248915456   1281683455   15.6G  Linux filesyste 
14   1281699840   1380003839   46.9G  Linux swap      
15    317952000    317956095      2M  BIOS boot       
16   1697988608   1953509375  121.9G  Linux filesyste 
17   1380003840   1697988607  151.6G  Linux LVM       

Disk /dev/mapper/centos-root: 162.8 GB, 162806104064 bytes, 317980672 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

所以我编辑了/etc/grub.d/40_定制,如下所示:

代码语言:javascript
复制
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 10" {
        set root(hd0,3)
        chainloader +1
        }

然后跑了:

代码语言:javascript
复制
grub2-mkconfig --output=/boot/grub2/grub.cfg

当我重新启动并为"Windows 10“选择菜单项时,我得到了以下信息:

代码语言:javascript
复制
Error: not an assignment invalid signature

我被困住了,我怎样才能在我的grub中获得Windows的东西,这样我就可以从任何一个操作系统启动?

EN

回答 1

Unix & Linux用户

发布于 2019-02-11 05:40:31

另一个论坛的人告诉我不要使用CSM。

好吧..。出于完全的挫折感,我擦去磁盘,将CSM设置为禁用(ASUS ),安装了Windows,再次安装了CentOS。

有趣的是,分区向导这次可以选择/boot/efi作为挂载点!在启用CSM的情况下,这是不存在的。

所以我选择了/ boot /efi,当安装完成时,我的启动菜单中有Windows和Linux!

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/499816

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档