I have two linux distributions installed on my PC, linux Mint and Debian, both having separate boot partitions and both are installed on luks encrypted volumes. Debian was installed first, then I installed Mint. Debian was not detected by grub at Mint installation. Running update-grub on Mint also does not detect Debian. What should I do for grub to detect both distros?
My partition structure is as follows:
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 /
My mint installation is running, and partitions are mounted as described above.
sudo os-prober
outputs:
/dev/sda1:Windows 10 (loader):Windows:chain
and,
sudo update-grub
outputs:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 10 (loader) on /dev/sda1
done
Both found linux images are mint images.