1.os-prober无法探测
可能是os-prober未启用
启用os-prober:
sudo vim /etc/default/grub
添加:
GRUB_DISABLE_OS_PROBER=false
之后:
sudo grub-mkconfig -o /boot/grub/grub.cfg
会显示类似这样:
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.
Found Windows Boot Manager on /dev/sda4@/EFI/ Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
2.生成grub.cfg没有windows
如果是windows进不去 可能是windows引导被破坏
那就要修复windows引导 参照:https://zhuanlan.zhihu.com/p/660300066
如果还不行,比如,生成grub.cfg成功发现windows后,又把/boot分区删了,又安装grub,再生成grub.cfg就可能发现不了windows,可能是缓存导致的,卸载grub软件包,删除软件包缓存,再安装grub软件包,生成grub.cfg就可能能发现到windows
标签:双系统,os,grub,windows,cfg,boot,安装,prober From: https://www.cnblogs.com/lookfeel/p/17973494