alnaseh
Posts: 69
Joined: Thu Jun 23, 2016 5:12 am

loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 2:54 pm

Hi,

in many cases, after reboot i loose all the networks configured in the wpa_supplicant.conf. it happens a lot and it returns back to the default config.

usually i upload the wpa_supplicant.conf in the boot partition and not configuring it from the OS as im using lite version.

any hint on how to troubleshoot this is appreciated

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 3:58 pm

Create a file (name not important) in your hon directory.
Then reboot and see if the file is still there.
If the file has disappeared it's time to get a new SD card...

If it's still there then carry on with the next troubleshooting step

alnaseh
Posts: 69
Joined: Thu Jun 23, 2016 5:12 am

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 5:38 pm

DirkS wrote:
Sun Jul 22, 2018 3:58 pm
Create a file (name not important) in your hon directory.
Then reboot and see if the file is still there.
If the file has disappeared it's time to get a new SD card...

If it's still there then carry on with the next troubleshooting step
i have many files and applications in the home directory and i didn't lost any of them.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 6:11 pm

alnaseh wrote:
Sun Jul 22, 2018 5:38 pm
DirkS wrote:
Sun Jul 22, 2018 3:58 pm
Create a file (name not important) in your hon directory.
Then reboot and see if the file is still there.
If the file has disappeared it's time to get a new SD card...

If it's still there then carry on with the next troubleshooting step
i have many files and applications in the home directory and i didn't lost any of them.
That's fine, but I would like to know if a newly created file also survives.
That way you can rule out that it's a permanent problem with your SD card.

alnaseh
Posts: 69
Joined: Thu Jun 23, 2016 5:12 am

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 6:23 pm

DirkS wrote:
Sun Jul 22, 2018 6:11 pm
That's fine, but I would like to know if a newly created file also survives.
That way you can rule out that it's a permanent problem with your SD card.
the files on the home directly are created before loosing the config, they are my files and applications. loosing wpa_supplicant.conf is not happening all the time so i guess my old files are enough to prove that it is not an issue with the sd card. in addition, im just loosing my networks in the wpa_supplicant.conf not the whole file. the file returned back to the default one.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 6:40 pm

You have been asked to do something to eliminate a possible problem but you seem to know better.

1) Create a new file on your SD card, like in your home directory
2) Shutdown the raspberry using "sudo shutdown"
3) Cycle power (meaning remove power for a minute and plug power back in).
4) Confirm that the file created in 1) still exists

If the file does not exist you will have to replace the memory card.
The road to insanity is paved with static ip addresses

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: loosing wifi networks in wpa_supplicant.conf

Sun Jul 22, 2018 6:46 pm

Ernst wrote:
Sun Jul 22, 2018 6:40 pm
You have been asked to do something to eliminate a possible problem but you seem to know better.
Exactly. Tried a couple of times, but I give up.
Wish OP all the best in solving the problem.

Return to “Troubleshooting”