Tech_Galaxy
Posts: 4
Joined: Mon Aug 07, 2017 5:55 am

Kernel Panic, not syncing after working well for 3 days

Sat Nov 10, 2018 12:37 am

Hello, friends. I got a new raspberry Pi Model B. I downloaded NOOBS from the website and I put it onto my SD card. Then I successfully installed Raspbian! My Raspberry Pi worked well for three days, but after that it just stopped working. First the rainbow screen appears, then the raspberry pi logo appears, then the operating system starts to boot up and, then it crashes. At the end there is a message:

Code: Select all

end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
I have some experience with programming languages like C and C++, and the Linux command line. I know the basic commands and utilities like man, cat, ls, vim, g++. However, I know little about IT itself or system calls and operating system internals. So these error messages are mostly cryptic for me. Please explain to me, why under normal operations in ordinary circumstances, the Raspberry Pi would suddenly fail with a Kernel Panic?

Image

Andyroo
Posts: 434
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Kernel Panic, not syncing after working well for 3 days

Sat Nov 10, 2018 2:29 pm

It’s possible the card has gone up the creak and been corrupted some how.

Did you pull the power or have a power cut at all without powering down the Pi?
Had you deleted any files at all?
How old and what type was the card?

Simplest fix is an OS re-install but you could try a few of these fixes https://raspberrypi.stackexchange.com/q ... ound#41977 if you have another system or need something off the card.

If you are looking at a reload then do not bother with NOOBS - it’s quicker to download Etcher from here https://www.balena.io/etcher/ and install Raspian direct from the downloads page here https://www.raspberrypi.org/downloads/raspbian/. No need to unzip - Etcher will read this file directly.
Need Pi spray - these things are breeding in my house...

Tech_Galaxy
Posts: 4
Joined: Mon Aug 07, 2017 5:55 am

Re: Kernel Panic, not syncing after working well for 3 days

Sat Nov 10, 2018 9:17 pm

I think that the power connection to the Raspberry Pi was lost while the OS was running. That could actually have been the source of the problem. Can an interrupted power supply cause the SD card to get screwed? I have not deleted any files that are part in the system directories. This was a brand-new SD card that I got from the store. I do recall that right before the kernel panics started, the power supply to the machine was interrupted.

Tech_Galaxy
Posts: 4
Joined: Mon Aug 07, 2017 5:55 am

Re: Kernel Panic, not syncing after working well for 3 days

Sat Nov 10, 2018 9:21 pm

Next time when I install the Raspbian OS and user programs onto the SD card of my Raspberry Pi, how can I clone it into a new SD card in case of a subsequent power failure? Are there some tools to automate this process? Is it sufficient enough to simply copy and paste all files from one SD card onto another?

Andyroo
Posts: 434
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Kernel Panic, not syncing after working well for 3 days

Sat Nov 10, 2018 10:02 pm

Copy and paste will not work as the SD card has different formatted partitions on it :roll:

The simple way is to use the Pi to copy the SD card if you have a USB reader - there’s an inbuilt program for this. It also copes with different sized cards :o

Windows users could use this way https://lifehacker.com/how-to-clone-you ... 1261113524 - as I’m Mac and Linux I’ve not tried it though.

A quick tutorial on backups of key date (home and sql) can be found https://www.raspberrypi.org/documentati ... /backup.md

The majority of Linux config files are flat / text files and config files are often documented well - it’s normally possible to get a copy of the files and keep them separate for rebuilds - document, document, document, backup frequently and often are my hints.
Need Pi spray - these things are breeding in my house...

Return to “Troubleshooting”