[SOLVED] Duplicate entries in grub after upgrade

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Duplicate entries in grub after upgrade

Postby MagicD3VIL » Mar 6th, '21, 08:32

Greetings,
for some reason after the upgrade, I have duplicate entries in my grub menu which currently sits at:
  • Mageia
  • Mageia
  • Mageia 7
  • Windows 10
  • Windows 8
  • Windows 8
  • Windows 10
  • Windows 8
  • Windows 7

This is the output of when I run "sudo update-grub2"
Code: Select all
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-5.10.19-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.19-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found linux image: /boot/vmlinuz-5.10.19-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.19-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found linux image: /boot/vmlinuz-5.10.19-desktop-1.mga8
Found initrd image: /boot/initrd-5.10.19-desktop-1.mga8.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Mar 06 07:16:17 | DM multipath kernel driver not loaded
Found Windows 10 on /dev/sda1
Found Windows 8 on /dev/sdb1
Found Windows 8 on /dev/sdb2
Mar 06 07:16:23 | DM multipath kernel driver not loaded
Found Windows 10 on /dev/sda1
Found Windows 8 on /dev/sdb1
Found Windows 8 on /dev/sdb2
Mar 06 07:16:28 | DM multipath kernel driver not loaded
Found Windows 10 on /dev/sda1
Found Windows 8 on /dev/sdb1
Found Windows 8 on /dev/sdb2
done


I'm also attaching the grub config (it's the same one that I've used before upgrading to mga8), no idea why it's an issue after the upgrade xD Maybe because of a newer version of grub? Also why it's not registering the Mageia entry as Mageia 8 but still as Mageia 7? :?

Cheers
Attachments
grub.txt
(575 Bytes) Downloaded 23 times
Last edited by MagicD3VIL on Mar 11th, '21, 13:42, edited 1 time in total.
User avatar
MagicD3VIL
 
Posts: 60
Joined: Jun 2nd, '19, 00:25
Location: Ostrava, Czech Republic

Re: Duplicate entries in grub after upgrade

Postby MagicD3VIL » Mar 11th, '21, 13:42

Greetings,
it seems that the upgrade left some duplicate scripts in the "/etc/grub.d/" folder so I removed those scripts and then reinstalled them via "urpmi --replacepkgs grub2-common". Duplicate scripts made grub to make duplicate entries so removing them and reinstalling fixed the issue.

The source that helped me to fix this

Marking as solved.
User avatar
MagicD3VIL
 
Posts: 60
Joined: Jun 2nd, '19, 00:25
Location: Ostrava, Czech Republic

Re: [SOLVED] Duplicate entries in grub after upgrade

Postby morgano » Mar 11th, '21, 15:04

Nice you found and could fix the culprit, well done!

Now, how cold this fault happen?
How did you upgrade?
Is there a log?
Mandriva since 2006, then Mageia since 2011 at home & work. Thinkpad T43 & T400, Dell M4400, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 796
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [SOLVED] Duplicate entries in grub after upgrade

Postby MagicD3VIL » Mar 11th, '21, 15:12

I upgraded via URPMI, it seems that it did not clean the old configs and just added new (duplicate) ones with a higher number.

By the way, before I reinstalled the grub2-common the way as I mentioned in my previous post, I tried removing the configs and copying the ones from the "/etc/grub.d/backup/etc_grub_d/" but after running "update-grub" it reported errors in those configs so I just removed the configs again and reinstalled the grub2-common.
User avatar
MagicD3VIL
 
Posts: 60
Joined: Jun 2nd, '19, 00:25
Location: Ostrava, Czech Republic


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest