I have attempted to create a UEFI pen drive that installs Ubuntu 20.04 LTS Desktop 64-bit.
The exFAT
partition gpt2
contains the entire Ubuntu 20.04 LTS system image.
The FAT32
partition gpt1
contains the following files:
.
├── boot
│ └── grub
│ └── x86_64-efi
│ └── exfat.mod
└── EFI
└── BOOT
├── BOOTX64.EFI
├── grub.cfg
├── grubx64.efi
└── mmx64.efi
5 directories, 5 files
where the grub.cfg
file contains the following lines:
insmod exfat
search --no-floppy --set=root --fs-uuid 7026-67D5
configfile /boot/grub/grub.cfg
After changing the Secure Boot
method from Deployed Mode
to Audit Mode
, the default grub.cfg
file of the exfat
partition is called correctly from the grub.cfg
file of the FAT32
partition.
In fact, the correct installation options appear.
After selecting the Ubuntu
option, loops endlessly and pressing the ESC
key I realize that the cause is an unspecified error: stdin: invalid argument
, which is repeated many times.
What could be the cause of this error?
UPDATE 1: Even disabling secure boot completely, the same error appears.
UPDATE 2: Waiting for some time, the following message appeared:
Unable to find a medium container a live file system
Attempt interactive netboot from a URL?
yes no (default yes): _
UPDATE 3:
I found that if instead of having the partition in exFAT, I have it in NTFS, the problem doesn't appear. From this I deduce that despite the insmod exfat
command, passed to the partition with that filesystem, the initrd.lz file does not support the exfat file system.
In fact, I also performed this other test to have an almost total confirmation of this thing:
insmod exfat
search --no-floppy --set=root --fs-uuid 7026-67D5
chainloader /efi/boot/bootx64.efi
boot
and I got the error message:
Failed to find fs: Unsupported
Failed to load image \efi\boot\grubx64.efi: Unsupported
start_image() returned Unsupported
If there is a Windows image in the exfat partition instead of Ubuntu, the bootloader starts correctly.
Is there a way to implement exfat support inside of bootx64.efi and initrd.lz files?
From this forum:
This issue was raised:
After a few seconds it restarts with appropriate OS logo and shows next errors:
...like 50 same errors...
Attempt interactive netboot from a URL ?
This solution:
fixed the problem.
Summary
Sounds like the same problem you have and the same solution should work.
Possible solutions (please post feedback):
Please add your BIOS configuration possibly related to this issue (Secure Boot, Legacy Boot, UEFI boot, boot order, etc.)
Related:
None of the other proposed solutions worked for me, but after removing the add-on network card I was able to run the installer. I had previously unplugged all the other devices (HDDs etc.) and other devices, but missed the network card.
So try booting with only the bare minimum hardware.