Grub2无法检测到btrfs分区。

我刚刚在一款基于Arch的发行版旁边安装了Xubuntu。问题是Grub2无法检测到之前发行版的(btrfs)分区,所以我无法从中启动。我已经尝试过update-grub2命令。
顺便说一下,在我安装Xubuntu之前,那个btrfs分区可以正常从Grub2启动。
我该怎么办?
1个回答

GRUB的os-prober在检测btrfs @subvolumes时存在问题,来自ubuntu论坛上“rick3332”的最简单答案让我成功在双启动的基于btrfs的操作系统安装(ubuntu16和18)上运行。不需要对os-prober代码进行全面的黑客攻击或进行非持久性的手动grub.cfg编辑。只需在每个btrfs卷根目录下创建@/boot和@/etc的符号链接,然后在每个操作系统中运行“sudo update-grub2”。
#navigate to root of your current booted brtfs based OS
cd /
#create symlink for boot
ln -s @/boot boot
#create symlink for etc
ln -s @/etc etc

#mount the other btrfs volume with OS-install and navigate to its root
cd /mnt/exampleotherbtrfsvolume
#create symlink for boot
ln -s @/boot boot
#create symlink for etc
ln -s @/etc etc

#let grub detect btrfs based install volume
sudo update-grub2

#reboot to the other btrfs based OS (probably listed this time in grubmenu)
#let this grub detect the previously booted btrfs volume
sudo update-grub2

https://ubuntuforums.org/showthread.php?t=2369106&p=13677811#post13677811