0

In order to prepare my RPi for connecting to Wifi, I need to do some changes as per this answer. Now, I cannot find the file: wpa_supplicant.conf in the boot directory. Hence, I need to create it and then save the mentioned changes. The issue is: I am unable to write into the directory. File cannot be saved and it shows "read only disk." I have tried sudo chmod -R 777 boot/ but in vain.

Note: I am using a memory card reader to read the card used in the RPi.

  • Is the SD card write locked by any chance? Might you have inadvertently flipped the switch (if your SD card has one)? – Aurora0001 Mar 6 '18 at 19:18
0

Like Aurora said, make sure your sd card is not write-protected:

write protection

and make sure you formatted your sd card as FAT32 before you wrote the os to it.(I recommend using a tool like etcher to burn the image.) also, if you have an ethernet cable, you can connect your raspberry pi to your router with an ethernet cable, ssh into and add the /etc/wpa_supplicant/wpa_supplicant.conf file to it over ethernet, then disconnect it and reboot it so it connects to the wifi.

  • hope you get it working! :) – scitronboy Mar 6 '18 at 20:22
  • Turns out, the fault was in my sd card reader, a new one was working. The old(corrupted) one was sorta always write protected. – Aviral Srivastava Mar 13 '18 at 6:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.