我的 PC 上安装了两个 linux 发行版,linux Mint 和 Debian,它们都有单独的引导分区,并且都安装在luks加密卷上。先安装了 Debian,然后我安装了 Mint。在 Mint 安装时 grub 没有检测到 Debian。update-grub在 Mint 上运行也检测不到 Debian。我应该怎么做才能让 grub 检测到两个发行版?
我的分区结构如下:
sda
|---- sda1 (windows boot [ntfs])
|---- sda2 (windows [ntfs])
|---- sda3 (extended)
|---- sda5 (debian boot [ext4]) mounted at /media/...
|---- sda6 (debian root [crypt-luks]) mounted at /media/...
|---- sda7 (mint boot [ext4]) mounted at /boot
|---- sda8 (mint root [crypt-luks]) mounted at /
Run Code Online (Sandbox Code Playgroud)
我的 mint 安装正在运行,并且分区已按上述方式安装。
sudo os-prober
Run Code Online (Sandbox Code Playgroud)
输出:
/dev/sda1:Windows 10 (loader):Windows:chain
Run Code Online (Sandbox Code Playgroud)
和, …