No Manjaro Boot Option in Bios

I was trying to install Manjaro on my ASUS TufDash F15 (FX516PE), but the installation failed at approximately 70% of the way through the installation process. It gave me a Bootloader installation error with the following details:

The bootloader could not be installed. The installation command grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --force
returned error code 1

I then closed the installer, and opened Konsole to attempt installing GRUB manually. I was able to mount the root partition in /mnt and the efi partition in /mnt/boot/efi.

I then attempted to install grub manually:

for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt/$i; done
chroot /mnt 
grub-install /dev/nvme0n1 --bootloader-id=manjaro --recheck --no-nvram
update-grub

It then gave me the following output:

Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.12-x86_64
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-6.12-x86_64.img
Found initrd fallback image: /boot/initramfs-6.12-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings …
Root filesystem isn’t btrfs
 If you think an error has occurred, please file a bug report at β€œhttps://github.com/Antynea/grub-btrfs” 
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

In case you were wondering, I added --no-nvram because my motherboard is full, it is NOT the EFI partition that is full. I checked from OpenSUSE, and it didn’t show the EFI partition being full. OpenSUSE was working when I disabled update nvram entry post-installation, but I ran into issues with the NVIDIA drivers, so I wanted to test Manjaro to see if it would work better with my drivers.
I am new to using Linux, so if there’s anything I missed/forgot or could use clarification on, please let me know.

Mod edit: Fixed code formatting.

Welcome to the forum! :vulcan_salute:

That’s why you cannot boot into it from the UEFI. There is no efivar in NVRAM for it.

So, does it work now? If not, also add --removable and then it should work (although with a generic name in the efi, something like β€œEFI disk”)

p.s. you can easily check if you have nvram space: just see /sys/firmware/efi/efivars/ folder. The latest dbx update from Microsoft is humongous (30+kb) and causes out of space in nvram problems. You can disable and reset Secure boot if you do not need it for windows. First disable it, if windows still boots you can also reset it which will clean the updates of it and free several hundred KB. And then you will be able to install normally (without --no-nvram)

2 Likes

Thanks for the welcome!

I’m a bit confused, because it worked for me on openSUSE.
@Teo

I checked the space of my nvram as instructed:

ls /sys/firmware/efi/efivars/ 
df -h 

and it shows that my efivarfs partition IS full, and there are several files.

Efivars Files List
AmiHardwareSignatureSetupUpdateCountVar-81c76078-bfde-4368-9790-570914c01a65
AMITCGPPIVAR-a8a2093b-fefa-43c1-8e62-ce526847265e
AsusCountryCodeIntel-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusEcRGBSwitchData-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusEcRGBZoneData-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusEDID-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusGpnvVersion-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusKeyboardLedS4Flag-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusManufactureVersion-607005d5-3f75-4b2e-98f0-85ba66797a3e
AsusPanelODVar-e5973dfb-befa-dcba-8e62-ceaa684726dd
AsusVariable-607005d5-3f75-4b2e-98f0-85ba66797a3e
AuditMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
BiosGuardCapsuleVariable-368b3153-563d-4610-8d94-47a9fa8c4c16
Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c
Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c
Boot0005-8be4df61-93ca-11d2-aa0d-00e098032b8c
BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c
BootMediaInfo-5bd6b672-b6ea-4d6a-b590-18a932b78794
BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c
BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
BRDS-42780dd5-9a7d-404c-80e4-7f7094360394
CapsuleLast-39b68c46-f7fb-441b-b6ec-16b0f69821f3
CapsuleMax-39b68c46-f7fb-441b-b6ec-16b0f69821f3
CNFG-91b89306-5bac-4ae0-aab3-207ec12e989b
ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c
ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
CurrentPolicy-77fa9abd-0359-4d32-bd60-28f4e78f784b
db-d719b2cb-3d3a-4596-a3bc-dad00e67656f
dbDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
dbt-d719b2cb-3d3a-4596-a3bc-dad00e67656f
dbtDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
dbx-d719b2cb-3d3a-4596-a3bc-dad00e67656f
dbxDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
DefaultBootOrder-45cf35f6-0d6e-4d04-856a-0370a5b16f53
DeployedMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
DeploymentModeNv-97e8965f-c761-4f48-b6e4-9ffa9cb2a2d6
_DMI-91b89306-5bac-4ae0-aab3-207ec12e989b
ErrOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
ErrOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
EWRD-92daaf2f-c02b-455b-b2ec-f5a3594f4aea
FastBootOption-b540a530-6978-4da7-91cb-7207d764d262
GPC-42780dd5-9a7d-404c-80e4-7f7094360394
GPC-92daaf2f-c02b-455b-b2ec-f5a3594f4aea
HiiDB-1b838190-4625-4ead-abc9-cd5e6af18fe0
HwErrRecSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c
InitSetupVariable-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
IntelRstFeatures-ca2fc9c8-71e7-4f72-b433-c284456ff72b
IntelVmdOsVariable-61a14fe8-4dab-4a19-b1e3-97fb23d09212
KEK-8be4df61-93ca-11d2-aa0d-00e098032b8c
KEKDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
LastBootFailed-b540a530-6978-4da7-91cb-7207d764d262
LoaderEntryDefault-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
MaximumTableSize-4b3082a3-80c6-4d7e-9cd0-583917265df1
MemoryOverwriteRequestControl-e20939be-32d4-41be-a150-897f85d49829
MemoryOverwriteRequestControlLock-bb983ccf-151d-40e1-a07b-4a17be168292
MFG0-91b89306-5bac-4ae0-aab3-207ec12e989b
MonotonicCounter-01368881-c4ad-4b1d-b631-d57a8ec8db6b
NBGopPlatformData-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
OA30-91b89306-5bac-4ae0-aab3-207ec12e989b
OfflineUniqueIDEKPubCRC-eaec226f-c9a3-477a-a826-ddc716cdc0e3
OfflineUniqueIDEKPub-eaec226f-c9a3-477a-a826-ddc716cdc0e3
OsIndications-8be4df61-93ca-11d2-aa0d-00e098032b8c
OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c
PK-8be4df61-93ca-11d2-aa0d-00e098032b8c
PKDefault-8be4df61-93ca-11d2-aa0d-00e098032b8c
PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c
PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
RemapportPathMapping-e5e0e2b2-5f15-4a5d-b208-42535541c680
RstOptaneConfig-4da4f952-2516-4d06-8975-65036403a8c7
RstVmdV-193dfefa-a445-4302-99d8-ef3aad1a04c6
SADS-42780dd5-9a7d-404c-80e4-7f7094360394
SADS-92daaf2f-c02b-455b-b2ec-f5a3594f4aea
SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c
SetupCpuFeatures-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c
SIDSUPPORT-7d3dceee-cbce-4ea7-8709-6e552f1edbde
SignatureSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c
SmbiosEntryPointTable-4b3082a3-80c6-4d7e-9cd0-583917265df1
SmbiosEntryPointTableF000-4b3082a3-80c6-4d7e-9cd0-583917265df1
SmbiosScratchBuffer-4b3082a3-80c6-4d7e-9cd0-583917265df1
SmbiosV3EntryPointTable-4b3082a3-80c6-4d7e-9cd0-583917265df1
SPLC-92daaf2f-c02b-455b-b2ec-f5a3594f4aea
Timeout-8be4df61-93ca-11d2-aa0d-00e098032b8c
TPMPERBIOSFLAGS-7d3dceee-cbce-4ea7-8709-6e552f1edbde
List of Partitions and Available Space
[manjaro manjaro]# df -h 
Filesystem      Size  Used Avail Use% Mounted on 
dev             7.6G     0  7.6G   0% /dev 
run             7.7G  117M  7.6G   2% /run 
efivarfs        128K  125K     0 100% /sys/firmware/efi/efivars 
/dev/sda        5.2G  5.2G     0 100% /run/miso/bootmnt 
cowspace        256M     0  256M   0% /run/miso/cowspace 
overlay_root     12G  2.1G  9.5G  18% /run/miso/overlay_root 
/dev/loop0       40M   40M     0 100% /run/miso/sfs/livefs 
/dev/loop1      2.2G  2.2G     0 100% /run/miso/sfs/mhwdfs 
/dev/loop2      1.9G  1.9G     0 100% /run/miso/sfs/desktopfs 
/dev/loop3      929M  929M     0 100% /run/miso/sfs/rootfs 
overlay          12G  2.1G  9.5G  18% / 
tmpfs           7.7G     0  7.7G   0% /dev/shm 
tmpfs           7.7G  5.2M  7.7G   1% /tmp 
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service 
tmpfs           7.7G  2.8M  7.7G   1% /etc/pacman.d/gnupg 
tmpfs           1.6G  100K  1.6G   1% /run/user/1000

Mod edit: Fixed code formatting for you. :wink:

That’s not a partition. Anything under the /sys hierarchy is virtual. It is information about your system, exported by the kernel in the form of a pseudo-filesystem.

It will always appear full, because it’s not actually consuming any space, and the maximum size of the pseudo-filesystem is simply the size of the pseudo-files in RAM.

2 Likes
$ df -B1 /sys/firmware/efi/efivars
Filesystem     1B-blocks  Used Available Use% Mounted on
efivarfs          131072 12939    113013  11% /sys/firmware/efi/efivars
$ ls -l /sys/firmware/efi/efivars | awk '{sum += $5} END {print sum " bytes"}'
25882 bytes

(Adding them up shows more space than df shows too.)

Weird, because for my partner, it doesn’t show efivarfs as full when she runs the same command… it also looks like @Molski doesn’t have it full either. I tried running the same commands they did, and it shows as 0 under available

[manjaro manjaro]#df -B1 /sys/firmware/efi/efivars
Filesystem 1B-blocks Used Available Use% Mounted on
efivarfs 131072 127436 0 100% /sys/firmware/efi/efivars
[manjaro manjaro]#ls -l /sys/firmware/efi/efivars | awk '{sum += $5} END {print sum " bytes"}'
54370 bytes

Also, still not sure what this error is about…

In the installer, I gave the EFI partition 512 MB, formatted it as FAT32, gave it the boot flag, and mounted it to /boot/EFI
I gave the root partition 457 GB, did not format (because I wiped the data manually aside from the home folder), and mounted it to /
I gave the swap partition 8 GB, formatted it as swap, and did not mount it because it does it automatically.

To my knowledge, this should be correct, so I’m not sure why it was giving me an error partway through the installation process.

I have included the process I used for wiping the data manually from the root partition below for those who are curious:

sudo rm -rf boot dev etc lib lib64 media mnt opt proc root run sbin srv sys tmp usr var intird.img vmlinuz

Just to be precise: that the bootloader installation failed first time because of lack of nvram space is a speculation. It can be due to other reasons. I guess it can be easily tested empirically, if the install succeeds with --no-nvram and fails otherwise, than that is indeed the cause.

If that is the case, a workaround will be to use the firmware built in entry pointing to the failback location (add --removable to the install parameters to install there).

Alternatively, one can clean something from nvram, but that depends of the windows version. Some require secure boot, some not. If not - resetting the secure boot from the uefi settings cleans all the added updates and a lot of space. I have recently been there:

Every motherboard is different. Pretty sure my Xen 3 Gigabyte board has 64k nvram minus an unknown amount. (Not going to test the limits.)

1 Like

This seems to have resolved the problem!! I went into the BIOS and deleted the secure boot keys from the NVRAM, which freed up enough space for me to install Manjaro using the installer.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.