Page 1 of 1

Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 4:02 am
by profbit
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

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 7:40 am
by KLL
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

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 7:50 am
by profbit
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

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 7:59 am
by KLL
does
[ALT][F2]
give you anything?

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 8:06 am
by profbit
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.

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 8:08 am
by profbit
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.

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 8:57 am
by KLL
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.

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 9:18 am
by sora03
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

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 9:21 am
by rpdom
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.

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 10:01 am
by profbit
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?

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 10:13 am
by rpdom
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.

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 10:22 am
by profbit
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?

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 10:28 am
by KLL
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 /

Re: Stop infinite loop from startup console

Posted: Tue Nov 07, 2017 10:37 am
by sora03
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.