Booting into GRUB after last update

IMHO microcode-intel is not the culprit because it is used after the boot and not by grub while here the problem is that gurb can’t show it menu at all.

I answered here but maybe the answer was too short. In anyway the easiest method its to use Preformatted text (or Ctrl+Shift+C) or the button with the </> icon. A more complete guide can be found, for example, here. This is valid for all forums using discourse. If the file you want to show is too much long you may upload it instead.

Did my last suggestion work?

1 Like

I don’t think microcode-intel is the most likely culprit myself. But it is known that it does change completely the syntax of initrd entries in grub2 to something that won’t boot secondary OM systems. My thought was to remove that as it is easy to do and eliminate that possibility. And OP probably does have that package because it is what creates the ‘microcode.img’ file. Also I was thinking that while in a OM-chroot if he ran ‘update-grub2’ that would tell us a lot of other things we need to know to fix this. And we’d all be well on our way to resolving this issue.

But you can’t just mount a partition and switch to it and run commands. That doesn’t work. You have to mount the partition, then mount to it, at a minimum, /sys, /dev, and /proc, and maybe also /run. Then you chroot into the mounted system and can run commands.

Edit: And here is where I may have made my first mistake. I said in post # 7 to Google how to do a chroot as this is well explained in many places. That seems to have been missed or something.

For what it’s worth being able to chroot into a system is especially helpful for fixing boot problems. But there is lot’s of things you can fix in a broken Linux system this way.

1 Like

FWIW here’s a simple how to for mounting and chrooting a system in need of repair.

O.K. Thanks for all your responses. I will work through them and let you know the results as soon as possible.
@mandian
Have executed your suggestions (of course!) but without success. I think perhaps I have done this not correctly. Will let you know more in due time.

2 Likes

If I were you I’d focus on Mandian’s suggestions not mine for now.

Edit: Especially his suggestion to create an emergency boot entry to get in to your OpenMandriva partition to do what ever is needed in post 14.

So long I wish to write a guide on how to make from scratch an emergency usb key to boot a SO whe grub fails but I have never found the time do make it :disappointed:.

1 Like

"If I were you I’d focus on Mandian’s suggestions not mine for now.

Edit: Especially his suggestion to create an emergency boot entry to get in to your OpenMandriva partition to do what ever is needed in post 14."

Believe me, I DID THAT! But without success and, as I wrote before, I think I did not do things
correctly, but I will come back on soon.

1 Like

No worries.

As promised:
I first started to look for kernel info in the OMA’s grub.cfg and found it was 4.15.3.
And its / on partition sdc2. So I copied and pasted this into my GRUB-Legacy file:

title OpenMandriva_emergency
kernel  (hd2,1)/boot/vmlinuz-4.13.5-desktop-1omv root=/dev/sdc2 ro
initrd  (hd2,1)/boot/1234567890/vmlinuz-4.13.5-desktop-1omv/initrd

Then rebooted the system and I got a black screen with this text:

kernel (hd2,1)/boot/vmlinuz-4.15.3-desktop-1omv root=/dev/sd2 ro
Error14: Filesystem compatibility error, cannot read whole file

At first I thought that /1234567890/ was to be substituted by the bunch of digits I found in that grub.cfg file so I did that but got the same response.

What next?

1 Like

That bunch of digits (combination of numbers and letters) is actually the name of a directory and should not be changed. And in that directory is now where your initrd files are. That’s one of the changes in boot entries that we’ve been gifted with from upstream.

This is one of my initrd entries in ‘/boot/grub2/grub.cfg’ as an example:

initrd /boot/0a7b0bd3dce949e68abe3463506cb0ce/4.13.5-desktop-1omv/initrd

Edit: Yours should have different numbers and letters.
Edit2: Also that is an initrd entry on a system with package ‘microcode-intel’ removed.

If package ‘microcode-intel’ is installed then your initrd entry in ‘/boot/grub2/grub.cfg’ will look similar to:

initrd /boot/microcode.img /boot/0a7b0bd3dce949e68abe3463506cb0ce/4.13.5-desktop-1omv/initrd

again with different numbers and letters.

As you can understand from my response I already suspected that those bunch of digits was something else than 1234567890 and I copied the digit string from my grub.cfg and replaced those 12345…etc with it , but I also wrote that the result was the same: black screen with that particular text.
And my particular entry in that .cfg file is:

initrd /boot/microcode.img /boot/222b02b90808463aaeca88f2a669496b/4.13.5-desktop-1omv/initrd

Looking at that digit string I also had the idea that this could represent the UUID of the / partition of OM but that was not the case.
I do not understand your
“Edit2: Also that is an initrd entry on a system with package ‘microcode-intel’ removed.”
What should I do with it? Remove it as you suggested earlier?

1 Like

That all looks correct. The Edit2 comment means it is the microcode-intel package that adds ‘/boot/microcode.img’ to the initrd line if the microcode-intel package is removed and then update-grub2 is run that part is removed from initrd line.

With micocode-intel package:

initrd /boot/microcode.img /boot/222b02b90808463aaeca88f2a669496b/4.13.5-desktop-1omv/initrd

without microcode-intel package it would change to:

initrd /boot/222b02b90808463aaeca88f2a669496b/4.13.5-desktop-1omv/initrd

I’m wondering if this will boot in Grub Legacy?

title OpenMandriva_emergency
kernel  (hd2,1)/boot/vmlinuz-4.13.5-desktop-1omv root=/dev/sdc2 ro
initrd  (hd2,1)/boot/microcode.img  /boot/222b02b90808463aaeca88f2a669496b/4.13.5-desktop-1omv/initrd

No, it will not. Same black screen with same text.
I think the best way is to uninstall OM / and reinstall it with again its bootloader again installed in / .
But I doubt if that problem does not appear gain when I install a next update of OM and I have to do things all over again.

1 Like

Well sorry that didn’t work. By your suggestion does that mean if you reinstall with it’s bootloader installed to / then it will boot until there is an update?

No, I mean that if I do install OM again, and placing during the installation procedure its bootloader in
“/” instead of what it will do when you do not change the destination, I will simply add in my GRUB-Legacy file:

        title OpenMandriva
        rootnoverify (hd2,1)
        chainloader (hd2,1)+1

And that will hopefully work again. All my other distro’s on that computer (LinuxMint 17.1 MATE and Linux Mint 18.2 KDE are treated that way without having any problems. They both have, as you will now, GRUB2 as bootloader.
Also, when I run their updates I have never faced any problems after those updates concerning booting the system.
But now I am not sure that this will also be the case with OM in future.:worried:

1 Like

That’s right.

This means the file is too big to be loaded. Or this is unreachable. Please try to check if the paths and the names of the file are correct. For example a kernel version like 4.15.3 sound strange, according to the repo it could be 4.13.5 instead. However if you have access to the OMV /boot/grub/grub.cfg_ you may retrieve such informations from there.

1 Like

You are absolutely correct about the kernel version. I made a typo error here. It should be 4.13.5
and NOT 4.15.3 as I wrote.
But from the strings I copied into GRUB there is the correct version as you can see above.

1 Like

Well, I also did a typo in menu entry due to cpoy-and-paste so I rewrite it here:

 title OpenMandriva-emergency
 kernel  (hd2,1)/boot/vmlinuz-4.13.5-desktop-1omv root=/dev/sdc2 ro
 initrd  (hd2,1)/boot/0a7b0bd3dce949e68abe3463506cb0ce/4.13.5-desktop-1omv/initrd

I this doesn’t work you may try the following (I don’t use grub legacy any more so I don’t remember its syntax exactly :innocent: )

title OpenMandriva-emergency
root (hd2,1)
kernel  /boot/vmlinuz-4.13.5-desktop-1omv root=/dev/sdc2 ro
initrd  /boot/0a7b0bd3dce949e68abe3463506cb0ce/4.13.5-desktop-1omv/initrd

Which filesystem did you use to format OMDV /boot partition? It may be the case it is not supported by grub legacy.

An alternative approach is to use a live OpenMandriva iso and re-install grub2 from there in the place of you choice.

Finally I am a bit curious about you still use grub legacy because I find grub2 is really more powerful and easy too use :slight_smile:

1 Like