SOLVED: GRUB menu not showing updated kernels

General support questions
pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

SOLVED: GRUB menu not showing updated kernels

Post by pjc123 » 2017/11/20 18:53:16

I have the following setup:

Drive #1 (NVME SSD)
Windows 10 - 64 Bit Pro (No problems here)

Drive #2 (SSD)
First two partitions = Centos 7.4. (I installed this first).
Fourth partition = Linux Mint 18.2.

I updated this post because I restored my computer to a previous backup image. I am able to boot both Centos and Mint again, but my problem is that I have updated the kernels in both of these operating systems but I can't get them to show up in the GRUB boot up menu. I tried different commands but i just can't get them to show up.
Last edited by pjc123 on 2017/11/30 19:37:53, edited 6 times in total.

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: GRUB menu list problem

Post by desertcat » 2017/11/20 22:01:25

pjc123 wrote:I have the following setup on an SSD drive.

First two partitions = Centos 7. (I installed this first).
Third partition = Linux Mint 18.

So, this was working fine for the last couple months. Now, whenever I update the kernel on Linux Mint 18 I have to load Centos and update the grub so the new Linux mint kernel shows up in the menu list when I boot into this drive.

To update the menu list I run the following in Centos:
grub2-mkconfig -o /boot/grub2/grub.cfg

But this time I accidentally ran the following in Centos because I saw it on the Centos wiki:
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

Now Linux Mint disappeared from the menu list and neither command above will bring i back. If I vi the files, Mint indeed still exists in /boot/grub2/grub.cfg but not /boot/efi/EFI/centos/grub.cfg.

What did i mess up and how do I get the Linux Mint menu item to show up again?
This may sound stupid, but did you make a backup? If you did simply restore the /boot partition.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: GRUB menu list problem

Post by TrevorH » 2017/11/20 22:17:22

But this time I accidentally ran the following in Centos because I saw it on the Centos wiki:
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Is your system using UEFI mode? That file won't be used unless it is.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: GRUB menu list problem

Post by lightman47 » 2017/11/20 23:21:06

What happens if you again instead run
grub2-mkconfig -o /boot/grub2/grub.cfg

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: GRUB menu list problem

Post by pjc123 » 2017/11/21 02:59:30

TrevorH wrote:Is your system using UEFI mode? That file won't be used unless it is.
The BIOS is set for Legacy BIOS first, UEFI second. As far as Centos is concerned, would this show up in gparted as to what Centos used when installed?
lightman47 wrote:What happens if you again instead run
grub2-mkconfig -o /boot/grub2/grub.cfg
Yeah, that was the first thing I tried. It does not fill in Linux Mint in the menu.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: GRUB menu list problem

Post by TrevorH » 2017/11/21 07:36:00

The BIOS is set for Legacy BIOS first, UEFI second
Really? On all the machines I've ever looked at they are mutually exclusive options - pick one or the other, not one then the other...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: GRUB menu list problem

Post by pjc123 » 2017/11/21 08:42:25

Yes, it is the current Thinkpad T470. You can set it as Legacy or UEFI or both. If you set it as both you can also set the priority order as well. It is a real handy feature being able to boot from both legacy and UEFI USB flash drives among other things.
Last edited by pjc123 on 2017/11/21 16:04:18, edited 1 time in total.

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: GRUB menu list problem

Post by pjc123 » 2017/11/21 16:03:12

Some more info.


1) I am getting this graphical message after booting up Centos
Mce: [Hardware Error]: Machine check events logged – abrt

2) Also a message every time I open up a terminal to run the following command for more info:
abrt-cli list --since 1511202784

3) Result of running the above command:

root@localhost ~]# abrt-cli list --since 1511202784
id 4189af4446c5ba56013172410341800d6383f3e8
reason: mce: [Hardware Error]: Machine check events logged
time: Tue 21 Nov 2017 10:26:56 AM EST
cmdline: BOOT_IMAGE=/vmlinuz-3.10.0-693.5.2.el7.x86_64 root=/dev/mapper/cl-root ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap
package: kernel
uid: 0 (root)
count: 1
Directory: /var/spool/abrt/oops-2017-11-21-10:26:56-2836-0
Reported: cannot be reported

The Autoreporting feature is disabled. Please consider enabling it by issuing
'abrt-auto-reporting enabled' as a user with root privileges

4) Also Gparted does not see the other Windows physical drive for some reason. It does see both the Centos and Mint partitions. If I load Mint from a USB drive it sees the Windows partition as well. Weird.

5) I tried reverting to the previous kernel and and re-running the grub update commands again but it did not help.

3.10.0-693.5.2.el7.x86_64

to older

3.10.0-693.5.2.el7.x86_64

6) The only other thing done recently was that the motherboard was replaced on this laptop, however everything was fine for a few days after I received it. Windows is running OK as well as Centos.

7) I do have a Clonezilla image backup of Centos and Mint, but just don't particularly want to lose about a month of settings that I changed, nothing major, just a hassle resetting it all up again. Also, not sure which OS is messed up, so would like to at least narrow it down to just restoring one of them

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: GRUB menu list problem

Post by TrevorH » 2017/11/21 17:09:59

What does os-prober report?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pjc123
Posts: 80
Joined: 2010/08/17 16:59:11
Contact:

Re: GRUB menu list problem

Post by pjc123 » 2017/11/21 17:35:15

TrevorH wrote:What does os-prober report?
/dev/nvme0n1p1:Windows 10 (loader):Windows:chain
/dev/sda4:Linux Mint 18.2 Sonya (18.2):LinuxMint:linux

So it indeed sees both other operating systems.
Last edited by pjc123 on 2017/11/21 17:53:21, edited 1 time in total.

Post Reply