DEV Community

Discussion on: Headless Raspberry Pi Zero W Setup

Collapse
 
herecomeslappy profile image
Lappy

I boot the Pi Zero W but it deletes the ssh file and the wpa_supplicant.conf on boot.

Collapse
 
vorillaz profile image
vorillaz

That's pretty weird, maybe the SD card does not persist the data.

Collapse
 
razorpi profile image
RazorPi

Same problem as Lappy and Derick. Do you think I should replace the card? I'm using a ScanDisk that came with the kit.

Thread Thread
 
hildende profile image
Dennis Hildenbrand

Probably a little late but the documentation says "When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted.".

It's similar for wpa_supplicant.conf (see documentation) "Put this file in the boot folder, and when the Pi first boots, it will copy that file into the correct location in the Linux root file system and use those settings to start up wireless networking."

Collapse
 
derickr profile image
Derick Rethans • Edited

Curiously, mine does the same! But only after booting the PI from it. A normal write, unmount, mount, read, works fine!

Thread Thread
 
durikon profile image
Nils

I was facing the same. This worked for me in wpa_supplicant.conf:

country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="WLAN SSID"
scan_ssid=1
psk="WLAN PASSWORT"
key_mgmt=WPA-PSK
}

I also made sure, the file has unix line endings. Using vim, write the file using ':w ++ff=unix'.