Kernel panic

510 views
Skip to first unread message

Bursuc Sergiu

unread,
Sep 30, 2018, 10:53:53 AM9/30/18
to GnuBee
Hi,

I had my PC2 running without issues for more than 6 months and I had a power outage that shut it down unexpectedly. I was booting it from a flash stick via USB. Now it will no longer boot. The boot process starts, I can see messages over the serial port and I get this at some point:
[   23.688259] Partition GNUBEE-ROOT found. Starting...
/lib/init: exec: line 47: chroot: No error information
[   23.830871] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200

Any ideas? How do I fix this?

Thanks in advance.

Julio Lajara

unread,
Sep 30, 2018, 11:55:28 PM9/30/18
to GnuBee
Run fsck on it (USB stick if you were using that as root) from another computer and let it fix any issues. Then try booting it again.

Bursuc Sergiu

unread,
Oct 1, 2018, 5:04:15 AM10/1/18
to GnuBee

I did that but it did not help. Basically it starts booting, all the drives that are connected are being detected, stuff happens and then it dies.

Is there some sort of squash fs image that is supposed to be loaded at some stage of the boot process?
Please let me know.
Thanks

Neil Brown

unread,
Oct 3, 2018, 6:42:30 AM10/3/18
to GnuBee
Very curious
There is a small filesystem image (and initramfs) in the gnubee.bin firmware which contains the /lib/init mentioned in the error message.  The relevant line (which confusingly isn't line 47) is

> exec chroot . /sbin/init

This appears to have failed, but without any error status.  The most likely cause is something wrong with /sbin/init in the root filesystem (the filesystem identified as GNUBEE-ROOT).
I would suggested mounting this filesystem on another computer and examining lib/init.  Maybe it is empty.
If it is, and maybe if it isn't, you need to recover the correct 'init' file from somewhere.  But if one file is corrupt, it is possible that others are too.  I would look around and see if anything looks strange, but that is only possible if you know what things should look like.
Is the GNUBEE-ROOT a Debian root filesystem?  Where did you get it from?  Maybe restore some stuff from there.

Bursuc Sergiu

unread,
Oct 3, 2018, 4:08:18 PM10/3/18
to GnuBee
Hi,

Ok, after playing a while I figured to try to use dd to make a backup which revealed there are tons of unreadable sectors which indicates that the flash stick is simply toasted.

I will have to re-install from scratch.

Thanks all for your help
Reply all
Reply to author
Forward
0 new messages