Adafruit iconAdafruitSep 2, 2026 ~2 min source read

Change a Raspberry Pi’s Wi‑Fi from the microSD card when it can’t join your network

If the Pi no longer connects after your router’s SSID or password changed, you can edit the Wi‑Fi profile on the card itself using a Linux PC and an SD card reader. Modify or add a NetworkManager connection file, set correct permissions, sync, and reboot.

How to change Raspberry Pi WiFi details from the SD card

Share this story

Send the public story page.

Useful takeaways from this story.

Recent Raspberry Pi OS releases store Wi‑Fi profiles as NetworkManager.nmconnection files in the rootfs partition.

Connection files must be readable only by root and you must run sync before unmounting so changes are written to the card.

# Why this matters

# Overview of the method

Raspberry Pi OS uses two partitions on the microSD card. The Wi‑Fi settings live in the rootfs partition. Recent OS releases use NetworkManager and store connection profiles as.nmconnection files. The process is: mount the rootfs partition on a Linux system, edit an existing.nmconnection file or create a new one with the new SSID and password, set the file's permissions so NetworkManager accepts it, flush writes with sync, unmount, then boot the Pi.

# What you need

  • A Linux computer (or any machine that can mount ext4 rootfs) and an SD card reader.
  • The Pi's microSD card.
  • The new Wi‑Fi SSID and password.

# Steps (high level)

  1. Power down the Pi and remove the microSD card.
  2. Insert the card into a Linux machine and mount the rootfs partition.
  3. Locate NetworkManager connection files (.nmconnection) in the rootfs.
  4. Edit an existing profile or create a new.nmconnection file with the new network name and passphrase.
  5. Set the connection file permissions so it is readable only by root (NetworkManager ignores files with permissive permissions).
  6. Run sync before unmounting to ensure changes are written to the card.
  7. Unmount, reinsert the card into the Pi, and power it on.

# Permission detail to watch

NetworkManager will ignore a connection file unless it is readable only by root. That means you must adjust the file permissions after editing on your Linux machine. If the file remains world‑readable, the Pi won't pick up your changes.

# Confirming the Pi connected

After booting the Pi with the updated connection file, check your router's device list for the Pi's new IP. If that's not available, scan the subnet with Angry IP Scanner or nmap to discover the address.

# When this helps

  • The router's SSID or password changed and you can't or don't want to attach input/output to the Pi.
  • You've moved the Pi to a different network and need to update credentials quickly.

# Additional tips

  • Always run sync before unmounting the card so edits are not left in cache.
  • Keep a backup copy of any original.nmconnection file before overwriting it in case you need to restore the prior settings.

# Where to read more

More context around this story.

Raspberry Pi программно запретила менять память в Raspberry Pi 5 — даже на такой же объём
3dnews icon3dnewsSep 22, 2026

Raspberry Pi программно запретила менять память в Raspberry Pi 5 — даже на такой же объём

Компания Raspberry Pi ещё два года назад реализовала в прошивке функцию, которая не позволяет владельцам одноплатных компьютеров производить самостоятельную замену чипов оперативной памяти, даже на аналогичные модули того же объёма, снятые с других плат Raspberry Pi. На это обратил внимание авторитетный блогер Джефф Ги

Jeffgeerling iconJeffgeerlingSep 21, 2026

Raspberry Pi locks down Pi 5 RAM upgrades in firmware

Raspberry Pi added a feature in their firmware that restricts users from swapping RAM chips , sometimes even RAM chips of the same capacity from other Raspberry Pi boards. Apparently there were people buying cheap 1 or 2 gig Pi 5s, soldering in some cheap and sometimes unreliable 8 gig RAM chips, and selling them as ne

Raspberry Pi 10000
Adafruit iconAdafruitSep 14, 2026

Raspberry Pi 10000

Super cool recent build from Indian maker Arnov Sharma: The main reason for making this project was actually pretty simple. I was already using the Pi 500+ with my USB recording microphone for voice-over work, and I kept thinking it really needed its own screen. See more details here on Instructables and YouTube.

Loading more related stories...

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app