2

I've added a security python script to the rc.local which unfortunately has a bug - This causes the pi to shut down on start up. Is there a way to bypass this script on start, or boot the pi into an alternative mode?

FYI : I don't have an alternative unix OS

1 Answer 1

1

If you hold down the shift key while booting, you should end up in a safe mode (minimal Linux install). You can then edit your rc.local file and reboot normally.

A second alternative would be to load a Ubuntu Live CD on your windows machine and then edit the file on the SD card from the running Linux system.

8
  • Sweet I'll give this a crack :)
    – Luke Testa
    Oct 3, 2015 at 14:43
  • How do you edit the rc.local via the linux boot options screen? I can only see the config.txt and cmdline.txt files
    – Luke Testa
    Oct 3, 2015 at 14:50
  • @LukeTesta which method are you using? Can you cd to /etc? Also this may help raspberrypi.org/forums/viewtopic.php?t=41686&p=338064 Oct 3, 2015 at 16:04
  • 1
    You could try both at the same time as long as you are not driving.
    – goldilocks
    Dec 31, 2016 at 20:05
  • 1
    Both are not working on Jessie for me Jan 1, 2017 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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