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


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.

  • Sweet I'll give this a crack :)
    – Luke Testa
    Oct 3 '15 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 '15 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 '15 at 16:04
  • It's okay I disabled the rc.local script in the cmd config :) Thanks for pointing me towards that menu!
    – Luke Testa
    Oct 3 '15 at 20:10
  • 1
    You could try both at the same time as long as you are not driving.
    – goldilocks
    Dec 31 '16 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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