Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4609  / 2 Years ago, thu, august 18, 2022, 2:22:58

I've attempted the installation of Ubuntu Server 20.04 multiple times on my Lenovo Thinkpad X120e machine, running in UEFI mode. The installation gets all the way to the "installing grub to target devices" step before failing. Here is the final entry in the installation log.


Command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', '/usr/lib/grub/grub-multi-install']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Installing grub to /boot/efi
Installing for x86_64-efi platform
grub-install: warning: Cannot set EFI variable Boot000A.
grub-install: warning: efivarfs_set_variable: writing to fd 7 failed: Invalid argument.
grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: Invalid argument.
grub-install: error: failed to register the EFI boot entry: Invalid Argument.

From the research I've done it seems like this era of Lenovo machines (2011-ish) might have slightly buggy UEFI firmware? This answer Could not prepare Boot variable: No space left on device grub-install: error: efibootmgr failed to register the boot entry: Input/output error seems to suggest I should try the "efi_no_storage_paranoia" kernel option, but I'm not sure how to set this variable and continue the installer. I'm also not positive this will fix the problem.


I've exited into the live installer's interactive shell and tried to run efibootmgr (which the logs suggest is installed) but I don't get any response.


Any suggestions on how to set the "efi_no_storage_paranoia" option and successfully complete the bootloader installation, or any other ideas on how I can get this installed? Thanks!


More From » boot

 Answers
2

I was able to get this installed using the efi_no_storage_paranoia parameter!


To add the parameter, press 'e' on the live usb boot menu. Then add efi_no_storage_paranoia as the last parameter on the line with linux at the beginning. Press F10 to boot with the parameter now set.


Once the live usb boots, I recommend dropping into the shell (through the help menu or otherwise) and typing dmesg | grep "Command line". If you entered the kernel parameter correctly, you should see efi_no_storage_paranoia listed at the end of the command.


Note that using this parameter could be dangerous (and brick your system), so only use it if you're sure it's the issue.


From here I was able to proceed as normal, and the grub installation process went smoothly!


[#1829] Saturday, August 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gigglcept

Total Points: 113
Total Questions: 105
Total Answers: 125

Location: Christmas Island
Member since Wed, Jan 13, 2021
3 Years ago
gigglcept questions
Mon, Jul 5, 21, 19:38, 3 Years ago
Thu, May 27, 21, 13:35, 3 Years ago
Tue, Feb 8, 22, 09:59, 2 Years ago
Fri, Dec 16, 22, 12:32, 1 Year ago
Sun, Oct 16, 22, 13:09, 2 Years ago
;