我一直在尝试在 Windows 10 上安装 CentOS x_86-64 最小化,结果一团糟,出现了很多问题,首先是看不到 Windows 双启动选项。我按照互联网的建议尝试了几种方法,例如尝试使用 生成 grub2 配置文件,但尽管已经安装了软件包,grub2-mkconfig
但 Windows 映像并未在那里列出。ntfs-3g
然后我尝试编辑/etc/default/grub
设置GRUB_DISABLE_OS_PROBER=true
,编辑grub.d/40_custom
以使用 UUID 手动创建 Windows 条目,然后尝试重新生成 grub 配置文件,该文件仍然没有列出 Windows 分区(仅列出 4 个图像,所有图像都是/boot/vmlinuz
&/boot/initramfs
类型)。还尝试安装 Xorg 以尝试在 GUI 中实际“查看”这些设置并进行编辑,但由于某种原因,Xorg 也未启动,并且仍然卡在显示“aiglx 暂停 aiglx 客户端进行 vt 切换”。
注意:我无法找到/dev/sd**
id,fdisk -l
因为它没有列出这样的详细信息,因此/dev/sda1
在编辑grub.d/40_custom
文件时使用 blkid 来使用 sda1 的 UUID。
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: 846FED61-FF90-4589-8BBF-5DCAD289AC58
# Start End Size Type Name
1 2048 1085439 529M Windows recover Basic data partition
2 1085440 1290239 100M EFI System EFI system partition
3 1290240 1323007 16M Microsoft reser Microsoft reserved partition
4 1323008 256886783 121.9G Microsoft basic Basic data partition
5 256886784 256888831 1M Microsoft basic Basic data partition
6 256888832 263282687 3.1G Microsoft basic Basic data partition
7 1185740800 1185742847 1M Microsoft basic Basic data partition
8 1185742848 1953521663 366.1G Microsoft basic Basic data partition
9 263282688 263284735 1M BIOS boot
10 263284736 265381887 1G Microsoft basic
11 265381888 1185740799 438.9G Linux LVM
Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/centos-swap: 4160 MB, 4160749568 bytes, 8126464 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/centos-home: 413.4 GB, 413369630720 bytes, 807362560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sdd: 32.0 GB, 32015679488 bytes, 62530624 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: dos
Disk identifier: 0x013780ef
Device Boot Start End Blocks Id System
/dev/sdd1 * 2048 62530623 31264288 c W95 FAT32 (LBA)
有人可以帮忙解决上述问题吗?
答案1
我不知道 CentOS 上是否是这种情况,但在 Fedora(RedHat/CentOS 的“孵化器”)中,最小选择不会which
安装os-prober
.尝试在命令提示符下执行sudo yum install which
或,然后以 root 身份重试(这是在 Fedora 上,检查您的配置以找到 的精确位置)。然后 grub 配置将更新,还提供加载 Windows 的选项。sudo dnf install which
grub2-mkconfig -o /boot/grub2/grub.cfg
grub.cfg