[SOLVED] double entries in grub after upgrading from 19.04 to 19.10
by marozsas from LinuxQuestions.org on (#4SYGZ)
After a sucessfull upgrade from 19.04 to 19.10 grub menu has duplicate entries. They point to the same os/version, just duplicated. The duplicate entries still exists in grub after "upgrade-grub". I didn't edit anything on /etc/grub.d/ nor /etc/default/grub. Everything was fine before upgrade.
However, looks like /etc/grud.d has duplicated scripts on it. There are 2 linux_proxy, 2 memtest86+_proxy and 2 os_prober_proxy. I think that is the cause of problem but I am not sure it is that way or not.
Code:root@fenix:/home/miguel# ls /etc/grub.d/
00_header 10_linux 10_linux_zfs 30_os-prober_proxy 32_linux_xen 34_os-prober_proxy 36_uefi-firmware 41_custom bin README
05_debian_theme 10_linux_proxy 20_linux_xen 31_linux_proxy 33_memtest86+_proxy 35_memtest86+_proxy 40_custom backup proxifiedScripts
root@fenix:/home/miguel#
root@fenix:/home/miguel# LANG=C update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdf: open failed: No medium found
/dev/sdg: open failed: No medium found
Found Windows 10 on /dev/sda1
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdf: open failed: No medium found
/dev/sdg: open failed: No medium found
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
root@fenix:/home/miguel#Please, anyone at 19.10 can confirm what is the proper look of /etc/grub.d and if it not the problem, I appreciate any other ideas fo fix it.
best regards,


However, looks like /etc/grud.d has duplicated scripts on it. There are 2 linux_proxy, 2 memtest86+_proxy and 2 os_prober_proxy. I think that is the cause of problem but I am not sure it is that way or not.
Code:root@fenix:/home/miguel# ls /etc/grub.d/
00_header 10_linux 10_linux_zfs 30_os-prober_proxy 32_linux_xen 34_os-prober_proxy 36_uefi-firmware 41_custom bin README
05_debian_theme 10_linux_proxy 20_linux_xen 31_linux_proxy 33_memtest86+_proxy 35_memtest86+_proxy 40_custom backup proxifiedScripts
root@fenix:/home/miguel#
root@fenix:/home/miguel# LANG=C update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdf: open failed: No medium found
/dev/sdg: open failed: No medium found
Found Windows 10 on /dev/sda1
Found linux image: /boot/vmlinuz-5.3.0-19-generic
Found initrd image: /boot/initrd.img-5.3.0-19-generic
Found linux image: /boot/vmlinuz-5.3.0-18-generic
Found initrd image: /boot/initrd.img-5.3.0-18-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdf: open failed: No medium found
/dev/sdg: open failed: No medium found
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
root@fenix:/home/miguel#Please, anyone at 19.10 can confirm what is the proper look of /etc/grub.d and if it not the problem, I appreciate any other ideas fo fix it.
best regards,