您尚未登录。

#1 2023-03-05 23:03:30

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

·已自行解决」os-prober无法找到Windows

我已安装ntfs-3g。
我已确保Windows系统分区已正确挂载。

系统信息
$ uname -a
Linux Daniel-PC-Arch 6.2.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 03 Mar 2023 15:58:31 +0000 x86_64 GNU/Linux
生成grub文件的尝试
$ sudo os-prober 
[sudo] password for Daniel: 

$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/arch/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
我想达到的目的

os-prober能正常找到Windows并且将Windows添加至grub菜单。

最近编辑记录 嗨皮重生锚 (2023-03-12 13:12:51)

离线

#2 2023-03-06 08:07:07

BYT0723
会员
注册时间: 2022-03-09
帖子: 19

Re: ·已自行解决」os-prober无法找到Windows

你/etc/default/grub里的GURB_DISABLE_OS_PROBER=false设置了吗

离线

#3 2023-03-06 18:18:07

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

Re: ·已自行解决」os-prober无法找到Windows

BYT0723 说:

你/etc/default/grub里的GURB_DISABLE_OS_PROBER=false设置了吗

设置了

离线

#4 2023-03-08 17:51:57

HinatAoi
会员
注册时间: 2023-01-28
帖子: 44

Re: ·已自行解决」os-prober无法找到Windows

Arch和Windows是共用同一个ESP吗?

离线

#5 2023-03-08 18:00:44

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

Re: ·已自行解决」os-prober无法找到Windows

HinatAoi 说:

Arch和Windows是共用同一个ESP吗?

不是

离线

#6 2023-03-08 18:09:50

HinatAoi
会员
注册时间: 2023-01-28
帖子: 44

Re: ·已自行解决」os-prober无法找到Windows

嗨皮重生锚 说:
HinatAoi 说:

Arch和Windows是共用同一个ESP吗?

不是

把Windows使用的ESP挂载后再运行os-prober试试?

离线

#7 2023-03-08 18:21:30

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

Re: ·已自行解决」os-prober无法找到Windows

HinatAoi 说:
嗨皮重生锚 说:
HinatAoi 说:

Arch和Windows是共用同一个ESP吗?

不是

把Windows使用的ESP挂载后再运行os-prober试试?

ok

离线

#8 2023-03-12 11:19:14

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

Re: ·已自行解决」os-prober无法找到Windows

HinatAoi 说:
嗨皮重生锚 说:
HinatAoi 说:

Arch和Windows是共用同一个ESP吗?

不是

把Windows使用的ESP挂载后再运行os-prober试试?

没有用

离线

#9 2023-03-13 07:50:41

HinatAoi
会员
注册时间: 2023-01-28
帖子: 44

Re: ·已自行解决」os-prober无法找到Windows

所以怎么解决的,好奇

离线

#10 2023-03-13 13:40:38

嗨皮重生锚
会员
注册时间: 2023-01-27
帖子: 10

Re: ·已自行解决」os-prober无法找到Windows

HinatAoi 说:

所以怎么解决的,好奇

用cfdisk <引导分区>将引导分区的类型从“Linux文件系统”改成“EFI”然后保存,重新扫描,解决

离线

页脚