profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Stop infinite loop from startup console

Tue Nov 07, 2017 4:02 am

I’m having trouble in stopping infinite loop on startup console.
when I tried ctrl c or ctrl z or alt. it shows weird text. What is the command so that I can get back to the command line [[email protected]:] part? thanks
Last edited by profbit on Tue Nov 07, 2017 12:09 pm, edited 1 time in total.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 7:40 am

to repair ?what? you have messed up
-a- you could try to login remote by SSH if that is enabled
-b- use that SD in card reader and a working system SD

if you not find the reason for that you anyway need a new setup

profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 7:50 am

KLL wrote:
Tue Nov 07, 2017 7:40 am
to repair ?what? you have messed up
-a- you could try to login remote by SSH if that is enabled
-b- use that SD in card reader and a working system SD

if you not find the reason for that you anyway need a new setup
no no. the script is running then I can’t stop it since it’s on startup. im looking for a command to kill or stop the process

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 7:59 am

does
[ALT][F2]
give you anything?

profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 8:06 am

KLL wrote:
Tue Nov 07, 2017 7:59 am
does
[ALT][F2]
give you anything?
If I remembered it correctly, it shows me tty2 login and I’m a bit scared on what it is. I don’t even know the pw.

profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 8:08 am

profbit wrote:
Tue Nov 07, 2017 8:06 am
KLL wrote:
Tue Nov 07, 2017 7:59 am
does
[ALT][F2]
give you anything?
If I remembered it correctly, it shows me tty2 login and I’m a bit scared on what it is. I don’t even know the pw.
btw my startup screen is console.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 8:57 am

again: how you get into that situation?
did you try autostart some music even you not login desktop.
if you know what files you changed, change them back by edit them while SD in cardreader.

sora03
Posts: 193
Joined: Mon Dec 29, 2014 4:11 pm
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 9:18 am

if you have a linux pc/laptop you can mount the microsd and edit files. /etc/rc.local
the weird symbols maybe because of the locale settings
FLOSS enthusiast, Debian user (linux-libre)

User avatar
rpdom
Posts: 15019
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 9:21 am

profbit wrote:
Tue Nov 07, 2017 8:06 am
KLL wrote:
Tue Nov 07, 2017 7:59 am
does
[ALT][F2]
give you anything?
If I remembered it correctly, it shows me tty2 login and I’m a bit scared on what it is. I don’t even know the pw.
Unless you have changed things, or are not using Raspbian, the login name is pi and the password is raspberry.

profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 10:01 am

I’ve edited the .bashrc file then started running a script on startup so that happens. is it possible to edit the .bashrc file by connecting sd card to pc?

User avatar
rpdom
Posts: 15019
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 10:13 am

profbit wrote:
Tue Nov 07, 2017 10:01 am
I’ve edited the .bashrc file then started running a script on startup so that happens. is it possible to edit the .bashrc file by connecting sd card to pc?
Not on Windows, but you can do it with Linux. If you don't have a Linux PC you could boot most PCs from a Linux Live USB stick, or put another copy of Raspbian on a spare SD card and use your Pi.

profbit
Posts: 41
Joined: Fri May 05, 2017 4:34 am

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 10:22 am

rpdom wrote:
Tue Nov 07, 2017 10:13 am
profbit wrote:
Tue Nov 07, 2017 10:01 am
I’ve edited the .bashrc file then started running a script on startup so that happens. is it possible to edit the .bashrc file by connecting sd card to pc?
Not on Windows, but you can do it with Linux. If you don't have a Linux PC you could boot most PCs from a Linux Live USB stick, or put another copy of Raspbian on a spare SD card and use your Pi.
how about filezilla?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 10:28 am

linux pc easy, windows difficult
why not setup a second SD / i recommend to have a MASTER setup SD for this kind of problems and
for new setups using / update / upgrade / sd card copy /

sora03
Posts: 193
Joined: Mon Dec 29, 2014 4:11 pm
Contact: Website

Re: Stop infinite loop from startup console

Tue Nov 07, 2017 10:37 am

profbit wrote:
Tue Nov 07, 2017 10:22 am
rpdom wrote:
Tue Nov 07, 2017 10:13 am
profbit wrote:
Tue Nov 07, 2017 10:01 am
I’ve edited the .bashrc file then started running a script on startup so that happens. is it possible to edit the .bashrc file by connecting sd card to pc?
Not on Windows, but you can do it with Linux. If you don't have a Linux PC you could boot most PCs from a Linux Live USB stick, or put another copy of Raspbian on a spare SD card and use your Pi.
how about filezilla?
if you can access the pi using ssh over network you can edit the file using sftp(ssh). you can get a linux live iso for 50mb just search.
FLOSS enthusiast, Debian user (linux-libre)

Return to “Beginners”