[LINUX] Check before erasing the disk if the bootloader installation fails

Introduction

I recently tried to install Manjaro

Boost.Python error in job "bootloader".
Command 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --force' returned non-zero exit status 1.
Installing for x86_64-efi platform. Could not prepare Boot variable: No space left on device

I got the error and failed. I thought that the partition for / boot / efi was too small from "No space left", and even if I erased all the disks and tried again, it did not improve, and I also tried installing kubuntu and failed to install the boot loader as well. .. Since the installation of kubuntu was successful, I will share the workaround for this problem.

The first thing to check

If you still get the error message at the beginning

Reference ArchWiki Unified Extensible Firmware Interface

First, start the terminal

ls /sys/firmware/efi/efivars/dump-*

Check for the existence of files starting with dump. In my case, this was abundant and was squeezing capacity. It seems that this was what was said to be "No space left". Even if you erase all the disks, the contents of this folder will not be cleaned. (sudo) Delete files starting with dump as it can be deleted with rm. After this, I tried installing kubuntu and it was completed successfully. (I'll try Manjaro later)

in conclusion

When I searched for the error message, the hits were mainly about the partition file system and flagging. If I noticed the existence of the dump file earlier, I wouldn't have to bother to delete all of them, so I hope it will be helpful for those who suffer from similar symptoms.

Recommended Posts

Check before erasing the disk if the bootloader installation fails
If Python 3.5.0 installation fails on Mac
Check if the URL exists in Python
Check if the characters are similar in Python