I made python code in Raspbian. This code has while loop. For my mistake, I register automatically execute this program whenever raspberry pi is turned on. How can I get out of (escape) from this code? I typed ctrl+c, d, etc.

Do I have to reinstall raspbian? TT...

  • 4
    You need to explain how you "register automatically execute this program whenever raspberry pi is turned on", otherwise there's no way to tell you how to undo it. – goldilocks May 26 '15 at 17:21
  • 4
    How did you "register [this program to] automatically execute whenever raspberry pi is turned on"? If you show us how you did this, then we can help undoing this setup. – Phil B. May 26 '15 at 17:21
  • 2
    @goldilocks jinx! – Phil B. May 26 '15 at 17:22

Regardless of how you made it automatically run on boot you can fix it if you have a Linux PC or a Windows computer with software that can read and write to ext partitions (for example Paragon). Many auto start scripts I have seen have lines in /etc/rc.local. Just comment out the line you added and plug the sd card back in your Pi and reboot.

Or sometimes going to cmdline.txt (no software needed) on any pc and adding init=/bin/sh will bring up a terminal in which you can disable the auto script from within your pi (in my experience this does not work if your auto started program halts the system).

|improve this answer|||||
  • I guess you mean init=/bin/sh ? – mpromonet Jun 2 '15 at 6:44
  • Yup, my bad, I fixed it! – NULL Jun 2 '15 at 10:13

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.