Kernel Panic on boot after a shutdown -h now · Issue #202 · RaspberryPints/RaspberryPints · GitHub
Skip to content

Kernel Panic on boot after a shutdown -h now #202

Description

@mcangeli

I thought I would post this here in case anyone else experiences this as it DROVE ME CRAZY trying to resolve.

On my install of Raspbian when I would do a

sudo shutdown -h now

to halt the server and power it off, when I went back to boot it (plug it in) I would receive a kernel panic. The kernel wasn't able to find the correct file system.

After some digging, I found the culprit:

dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 noatime quiet rootwait loglevel=1 persistent-logs zram.num_devices=2

the part in the config file where its telling the pi to look for root in /dev/mmcblk0p2 is wrong.

This should be root=/dev/mmcblk0p6

This is not an issue with RaspberryPints, but an issue with the Pi itself.

If anyone experiences this, the solution is simply:

plug the pi in to your monitor and attach a keyboard.
Boot PI while holding shift to get to the recovery console
Select the Raspbian image (should be the one with an x) and then click or tab to the edit option at the top of the screen

Select the config file (second tab)

Edit the root=/dev/mmcblk0p2 so that it is root=/dev/mmcblk0p6

and save/exit to reboot.

It should boot fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions