A quick list of possible causes and solutions:
The root filesystem used by the kernel is incorrect. On the pi this is specified in cmdline.txt
(on the first partition) by root=
and for Raspbian should be mmcblk0p2
. The rootfstype
should be ext4
.
Solution: Correct the root filesystem parameter.
The root filesystem is corrupt.
Solution: Run e2fsck
on the root filesystem (using another computer).
The init file, /sbin/init
(sometimes a symlink) or some necessary linked dependency has been moved or erased.
Solution: If you did this, put it back. If you did not, reinstall the OS.
In most cases for most people these are things you can easily check in order, but if this fails, reinstall the OS. It is unrecoverable by you.
However, in your particular case there appears to be a kernel failure of some sort leading up to this; for a more normal example of a truly missing or bad init, see here. So you could try replacing kernel7.img
(that's for the Pi 2, which I think this is) with a fresh one, e.g., from a clean image; most likely the required modules will still be installed on your system.
I suggest before you do anything, if possible, you try another SD card with a fresh image on it since this failure could be the result of hardware failure (e.g. bad RAM) and you need to rule that out before you waste time on other things.
I've found people with this problem, but those are mostly ubuntu and solutions won't seem to apply to debian. I could be wrong on that.
Mostly no (as in, they do apply) and yes (i.e., you're wrong), although there is a broad range of possible causes. Depending on which era you are talking about, Ubuntu and Debian use different init systems (the first paragraph of that article also describes the essence of your problem, which is true regardless of which init system would have been used) -- one of SysV, Upstart (Ubuntu only) or systemd.
Starting init: /sbin/init exists but couldn't execute it (error -5)
. I also tried inserting it in my (windows) laptop, it gave one of those generic scan for errors popup, which I did. Now It's this error. – janw Feb 01 '16 at 09:31/sbin/init
file. Also, is the/sbin
directory in the same partition as the/boot
and/
partitions? – Greenonline Feb 01 '16 at 11:45