Force Re-Install

Topics about the Software of Revolution Pi
Post Reply
kemal.ichwandi
Posts: 2
Joined: 16 Nov 2017, 10:48

Force Re-Install

Post by kemal.ichwandi »

Hello
I kind of mess up big time.
I created a program with infinite loop [while = 1]. Then i put this program on .bashrc so it will autorun everytime i reboot my RevPi.
Worst thing is, i activated autologin as well, so i wont have to give my username and password to start the revpi.

And now everytime i reboot the revpi will start the program on terminal with infinite loop and i cannot do anything with my revpi (it just shows blank page with a little cursor on the corner)

So can anyone tell me how to force clean new installation of my revolution pi from laptop or something else.
if anyone have any other suggestion will be much appreciated.

Regards
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Force Re-Install

Post by dirk »

Hi kemal.ichwandi,
a good place to put a program to run on startup is /etc/rc.local

Anyway there is a change to get your RevPi running and this means booting
in Single User Mode:
  1. Mount the RevPi using RPiBoot.exe
  2. Edit the file /boot/cmdline.txt and add at the same line on the end without the quotes " single "
  3. Unmount the RevPi USB drive and unconnect the USB plug
  4. Connect a HDMI monitor and an USB keyboard
  5. Boot the RevPi
  6. Fix your file which started the program i.e. nano /home/pi/.profile
  7. Edit the file from the beginning again i.e. nano /boot/cmdline.txt and remove the word " single "
  8. Reboot the RevPi
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: Force Re-Install

Post by volker »

Or you could simply throw it in the dust bin and get a new one from us :mrgreen:
Unser RevPi Motto: Don't just claim it - make it!
kemal.ichwandi
Posts: 2
Joined: 16 Nov 2017, 10:48

Re: Force Re-Install

Post by kemal.ichwandi »

Hello
I kinda solved my problem with using PuTTY on my Laptop while the Program was still running (on infinite loop). I forcefully press ctrl+shift+c to terminate the running Program and then i can login back to my RevPi peacefully.
Thankyou for your help anyway :)
Best Regards
Post Reply