I ruined my RPi, by using Python script in rc.local which shutdowns RPi as soon as it starts. Thus I cannot even login or ssh. How could I edit SD card from windows to change that rc.local file?
Asked
Active
Viewed 935 times
1 Answers
1
This can not be done on Windows, but it can be fixed on any Linux system (which can be a Pi).
You can repair most such problems on the Pi itself by rebooting to a root shell.
- Append
init=/bin/shat the end ofcmdline.txtand reboot. - After booting you will be at the prompt in a root shell.
- Your root file system is mounted as readonly now, so remount it as read/write
mount -n -o remount,rw /
You can then edit files to fix the problem.
- Remove
init=/bin/shfromcmdline.txtand reboot.
Milliways
- 62,573
- 32
- 113
- 225