Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-28-2020, 05:40 PM   #1
LQ Newbie
Registered: Jun 2020
Posts: 2

Rep: Reputation: Disabled
grub2 install on EFI system fails to boot CRUX on SSD


I am installing CRUX 3.5 following the handbook online at

The system will be Linux-only, installing onto a new SSD drive, and using EFI.

The installation was started by booting from an ISO on a USB stick.

At the end of the installation instructions, I built the kernel, installed grub2, and rebooted the system.

It does not boot Linux, and instead comes up in grub command mode (grub version 2.02).

I suspect that I am not installing grub2 correctly.

Here are the steps I used (the /boot directory is initially empty):
cd /usr/src/linux-4.19.48
cp arch/x86/boot/bzImage /boot/vmlinuz
cp /boot
mkdir /boot/efi
mount /dev/nvme0n1p1 /boot/efi
grub-install --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
At this point, the tree at /boot looks as follows:
|      +---EFI
|             +---grub
|                    +---grubx64.efi
|      +---fonts
|      +---grub.cfg
|      +---grubenv
|      +---locale
|      +---x86_64-efi
|             +---<266 files>
After the above didn't work, I tried mounting the ESP partition on /boot instead of on /boot/efi.
Here are the steps I used (the /boot directory is initially empty):
mount /dev/nvme0n1p1 /boot
cd /usr/src/linux-4.19.48
cp arch/x86/boot/bzImage /boot/vmlinuz
cp /boot
grub-install --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
At this point, the tree at /boot looks as follows:
|      +---grub
|              +---grubx64.efi
|      +---fonts
|      +---grub.cfg
|      +---grubenv
|      +---locale
|      +---x86_64-efi
|             +---<266 files>
There are two differences from the first time:
1. The extra "efi" directory before "EFI" is not there.
2. The grub directory and and vmlinuz are on the ESP partition.

In both situation, typing "exit" from grub2 command mode puts me into the BIOS.
I have followed suggestions from and
to try booting from grub2 command mode, but without success.

Something looks wrong with the contents of /boot in both situations,
like maybe the two "grub" directories should be the same directory?

I added the following command, which seems to be necessary:

efibootmgr -c -d /dev/nvme0n1 -p 1 -l \\EFI\\grub\\grubx64.efi

However, adding this made no difference.
I tested with the first setup (grub directory,, and vmlinuz are NOT on the ESP partition).

Any help would be appreciated.
Thank you.

Update 2:
After reading through the CRUX manual more closely, I now realize that
I may not need the ESP partition at all: It seems to be needed only for
booting Windows, either alone or in a dual-boot setup. I am not using
Windows, so my bootloader should be able to use BIOS.

Last edited by Daowulf; 06-28-2020 at 08:55 PM. Reason: update with additional information
Old 06-28-2020, 09:58 PM   #2
Senior Member
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,533

Rep: Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807Reputation: 807
your first setup was correct efi partition mounted at /boot/efi
try adding --no-uefi-secure-boot to the grub-install or copy your /boot/grub/grub.cfg to /boot/efi/EFI/grub

Last edited by colorpurple21859; 06-28-2020 at 10:01 PM.


booting, crux, efi, grub2, installation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
resize efi question [/boot/efi] with boot flag gparted mtdew3q Fedora 4 03-19-2017 10:02 PM
Revert grub2-efi to grub2-bios Atmchicago Fedora 1 03-24-2014 01:24 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration