Read the statement by Michael Teeuw here.
i need help w pi imager and ssh, headless, user error
-
files should be in same directory as
config.txt
andcmdline.txt
. Maybe the OS deletes them after initial reading? So you may have to look for this files before you insert the sd-card into the pi …example of
user-data
:[mm@pi4-argon efi]$ cat user-data #cloud-config hostname: pi4-argon manage_etc_hosts: true packages: - avahi-daemon apt: conf: | Acquire { Check-Date "false"; }; users: - name: mm groups: users,adm,dialout,audio,netdev,video,plugdev,cdrom,games,input,gpio,spi,i2c,render,sudo shell: /bin/bash lock_passwd: false passwd: $5$wEw... ssh_authorized_keys: - ssh-rsa AAAA... sudo: ALL=(ALL) NOPASSWD:ALL timezone: Europe/Berlin keyboard: model: pc105 layout: "de"
example of
network-.con
:[mm@pi4-argon efi]$ cat network-.con version: 2 wifis: renderer: networkd wlan0: dhcp4: true optional: true access-points: "k13": password: "cbd..."
-
@karsten13 nope, right after flash, those files are not there.
the firstrun and cmdline.txt have todays date, I am showing hidden files (if any) -
well then…
turns out the pi5 I picked to bring with me has the nvme hat on, and boots to the nvme drive, NOT the sd card…doah!!..
after some thinking, I found the right user/pw combo…
never mind…
BUT that explains why the sd card wasn’t used!!
-
and I learned more about pi imager, the stuff it writes seems to depend on the OS, with my examples above I used fedora, now looking at a raspian pi os lite I don’t see the files.
There now is a
userconf.txt
with only user/password … -
@karsten13 I don’t see that at all on bookworm full
-
@sdetweil said
I am not a system setup guy.
Dear Sam,
you may aware of this - than please ignore it…You’ve described that you have put a SD card in your NVME-HAT’ed Pi and your Pi has not booted from SD but from NVME…
You can steer this with the BOOT_ORDER entry in eeprom configuration.
This code is read right to left to determine the boot order and should (in your case) be: 0xf461:1 = Check SD card
6 = Check PCIe NVME
4 = Check USB drive
f = Start againYou can check this:
sudo rpi-eeprom-config
If boot order is not as desired you can edit this with
sudo -E rpi-eeprom-config --edit enter or modify to: BOOT_ORDER=0xf461
(In my configuration this opens the nano editor in which ctrl-O writes the changes to disk and ctrl-X leaves the editor.
eeprom-config then modifies the system and a reboot is neccessary)With this configuration you will lose a tiny bit of time for the SD-card check but it enables you to insert a SD card and boot from there despite the NVME is connected as well.
Regards,
Ralf -
@rkorell thanks. i had clearly set the boot order wrong.
-
@sdetweil This is a single error :-)
try to count mine - you will win ! :-) -
@rkorell this is not a contest. if we all work together things will always improve
-