• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

i need help w pi imager and ssh, headless, oops, user error

Scheduled Pinned Locked Moved General Discussion
15 Posts 3 Posters 624 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @sdetweil
    last edited by sdetweil Mar 30, 2025, 3:42 PM Mar 30, 2025, 3:37 PM

    @karsten13 I can get to the partitions from my chromebook…

    there is no user-data, there is a script firstrun.sh which is linked to the cmdline.txt

    systemd.run=/boot/firstrun.sh systemd.run_success_action=reboot
    

    but it has not created the user I defined… only pi is in /home

    so my guess is the firstrun.sh didn’t
    and it never reboots

    on the sd card, firstrun.sh and cmdline.txt are the only two changed files,
    yesterday at noon, which is when the last flash finished

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • K Online
      karsten13 @sdetweil
      last edited by Mar 30, 2025, 3:41 PM

      @sdetweil

      files should be in same directory as config.txt and cmdline.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..."
      
      S 1 Reply Last reply Mar 30, 2025, 3:52 PM Reply Quote 0
      • S Offline
        sdetweil @karsten13
        last edited by sdetweil Mar 30, 2025, 3:54 PM Mar 30, 2025, 3:52 PM

        @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)

        IMG_0894.jpeg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Mar 30, 2025, 4:11 PM Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by sdetweil Mar 30, 2025, 6:33 PM Mar 30, 2025, 4:11 PM

          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!!

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Mar 30, 2025, 4:16 PM Reply Quote 0
          • K Online
            karsten13 @sdetweil
            last edited by Mar 30, 2025, 4:16 PM

            @sdetweil

            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 …

            S 1 Reply Last reply Mar 30, 2025, 4:22 PM Reply Quote 0
            • S Offline
              sdetweil @karsten13
              last edited by Mar 30, 2025, 4:22 PM

              @karsten13 I don’t see that at all on bookworm full

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • R Offline
                rkorell @sdetweil
                last edited by rkorell Apr 1, 2025, 11:58 AM Apr 1, 2025, 11:54 AM

                @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 again

                You 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

                S 1 Reply Last reply Apr 1, 2025, 12:01 PM Reply Quote 0
                • S Offline
                  sdetweil @rkorell
                  last edited by Apr 1, 2025, 12:01 PM

                  @rkorell thanks. i had clearly set the boot order wrong.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Apr 1, 2025, 12:02 PM Reply Quote 1
                  • R Offline
                    rkorell @sdetweil
                    last edited by rkorell Apr 1, 2025, 12:02 PM Apr 1, 2025, 12:02 PM

                    @sdetweil This is a single error :-)
                    try to count mine - you will win ! :-)

                    S 1 Reply Last reply Apr 1, 2025, 12:04 PM Reply Quote 0
                    • S Offline
                      sdetweil @rkorell
                      last edited by Apr 1, 2025, 12:04 PM

                      @rkorell this is not a contest. if we all work together things will always improve

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Apr 1, 2025, 12:12 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        8/15
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy