Skip to main content

·309 words·2 mins
Vimal A R
Author
Vimal A R
Still figuring it out!
Table of Contents

Difference between grubx64 and shimx64?
#

https://askubuntu.com/questions/342365/what-is-the-difference-between-grubx64-and-shimx64

Typically, EFI/ubuntu/grubx64.efi on the EFI System Partition (ESP) is the GRUB binary, and EFI/ubuntu/shimx64.efi is the binary for shim.

The latter is a relatively simple program that provides a way to boot on a computer with Secure Boot active. On such a computer, an unsigned version of GRUB won't launch, and signing GRUB with Microsoft's keys is impossible, so shim bridges the gap and adds its own security tools that parallel those of Secure Boot. In practice, shim registers itself with the firmware and then launches a program called grubx64.efi in the directory from which it was launched, so on a computer without Secure Boot (such as a Mac), launching shimx64.efi is just like launching grubx64.efi. On a computer with Secure Boot active, launching shimx64.efi should result in GRUB starting up, whereas launching grubx64.efi directly probably won't work.

Note that there's some ambiguity possible. In particular, if you want to use a boot manager or boot loader other than GRUB in a Secure Boot environment with shim, you must call that program grubx64.efi, even though it's not GRUB. Thus, if you were to install rEFInd on a Secure Boot-enabled computer, grubx64.efi could be the rEFInd binary. This binary would probably not reside in EFI/ubuntu, though; both it and a shim binary would probably go in EFI/refind. Also, as you've got a Mac (which doesn't support Secure Boot), there's no need to install rEFInd in this way; it makes much more sense to install rEFInd as EFI/refind/refind_x64.efi (its default location and name).

Note that the rEFInd documentation includes a whole page on Secure Boot. Chances are you won't benefit from reading it, user190735, since you're using a Mac. I mention it only in case some other reader comes along who's trying to use rEFInd in conjunction with Secure Boot.

References:
#

  1. wiki.ubuntu.com/SecurityTeam/SecureBoot
  2. https://askubuntu.com/questions/342365/what-is-the-difference-between-grubx64-and-shimx64

Related

·6525 words·31 mins
Get started with GRUB2 # https://www.certdepot.net/rhel7-get-started-grub2/ Note: This is an RHCSA 7 exam objective. Presentation of GRUB2 # GRUB2 is the new Linux bootloader. GRUB2 stands for GRand Unified Bootloader version 2. As GRUB was not maintained for some time and lacked some critical features like GPT management needed to handle disks bigger than 2.4TB, it was decided to start a new version from scratch with modularity in mind.

·412 words·2 mins
https://wiki.centos.org/TipsAndTricks/CreateNewInitrd If you have changed a motherboard or moved a disk to a different system it may fail to boot due to the lack of appropriate drivers in the initial RAM disk image (initramfs for CentOS 6, initrd for CentOS 5). Boot in Rescue Mode # Boot from a CentOS installation disc (for example, CD #1 or DVD). Type "linux rescue" at the "boot:" prompt. Mount all filesystems in read-write mode. Create the New Initramfs or Initrd # Change root to real root ('/') on your hard disk and make the new initramfs or initrd.