Score:4

stdin: invalid argument

it flag

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): _
Score:2
jp flag

I solved this problem using just taking out and pluging back in the flash drive when it shows the message "stdin: invalid argument". Worked like a charm. The flash drive I used was 32 GB USB3.0 SanDisk drive.

it flag
This is something that I have no way of trying at the moment but certainly unplugging and reconnecting the drive is not something that the end user expects to have to do to make everything work, being that I didn't get there, despite being a developer, after all this time.
Score:1
in flag

From this forum:


This issue was raised:

[20.655271] usb usb1-port4: couldn't allocate usb_device

After a few seconds it restarts with appropriate OS logo and shows next errors:

stdin: invalid argument

...like 50 same errors...

Unable to find a medium container a live system

Attempt interactive netboot from a URL ?


This solution:

  • Inserting "iommu=soft" into /boot/grub/grub.cfg in bootable USB helped me.

fixed the problem.


Summary

Sounds like the same problem you have and the same solution should work.

it flag
Unfortunately it doesn't work for me.
WinEunuuchs2Unix avatar
in flag
Sorry to hear that. I'll upvote your question to draw more attention to it and leave my answer here for awhile so other people don't post the same thing. Kindly ping me @WinEunuuchs2Unix if you get a working solution so I can delete my answer. Thanks.
it flag
I have updated my question with a new thing that I have discovered. I thank you for the answer. :-)
Score:1

Possible solutions (please post feedback):

  1. Ensure your boot partition shows up first in all possible places (BIOS, grub), just to be sure (source). If that works, and you modified more than one configuration point, you could test independent changes to see which one was the culprit.
  2. Try: changing port USB 3.0 -> 2.0; or using a USB hub; or using a different USB stick (source). This seemed to work for many others.

Please add your BIOS configuration possibly related to this issue (Secure Boot, Legacy Boot, UEFI boot, boot order, etc.)

Related:

  1. https://ubuntuforums.org/archive/index.php/t-2448929.html
  2. https://forums.linuxmint.com/viewtopic.php?t=172337
  3. https://ubuntuforums.org/archive/index.php/t-2468820.html
it flag
None of this worked, I assume it's the exfat format that despite `insmod exfat`, `casper` still discards this file system. I hope that the music will change from 22.04.
it flag
Since unfortunately your answers have not solved the problem (not your fault), I will assign the best answer to the first who answered me.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.