Ask Your Question

Grub2 os-prober detects wrong kernel on dual boot

asked 2017-03-12 01:00:26 -0500

Bavarian gravatar image


I have triple boot setup(Win10,Kali,Fedora) where I use Fedora for my daily work and Kali from time to time.

Yesterday I've seen that os-prober of Fedora detects wrong kernel version of Kali Linux. It creates menuentry for kernel 4.6.0 instead of latest 4.9.0 installed in Kali. I've tried with grub2-mkconfig and reinstalling grub2 but no luck.

Only temporary fix is to re-install grub2 under Kali. It detects Fedora's entries but that means that I need to rebuild the config every time when I upgrade the kernel under Fedora.

Is there a way to make Fedora's grub to see proper Kali linux kernel? grub2 is installed on MBR on /dev/sda.

Here is the output of grub2-mkconfig issued on Fedora :


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-12 01:57:59 -0500

Bavarian gravatar image

I've managed to fix this with selecting proper output file to grub2-mkconfig :
grub2-mkconfig -o /boot/grub2/grub.cfg

Not sure where it was saving it by default in previous attempts. Now everything seems to be working fine.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-03-12 01:00:26 -0500

Seen: 303 times

Last updated: Mar 12 '17