Linux: Raspberry Pi Zero does not reboot or shutdown

Created on 6 Dec 2015  ·  9Comments  ·  Source: raspberrypi/linux

The Raspberry Pi Zero V1.2 does not reboot ro shutdown. Only with -f (forced) works.
pi@raspi:~ $ uname -a
Linux raspi 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux

pi@raspi:~ $ sudo reboot
Failed to talk to init daemon.
pi@raspi:~ $ sudo shutdown -h now
Failed to talk to init daemon.
pi@raspi:~ $ sudo init 6
Couldn't find an alternative telinit implementation to spawn.
pi@raspi:~ $ sudo init 0
Couldn't find an alternative telinit implementation to spawn.
pi@raspi:~ $ sudo halt
Failed to talk to init daemon.
pi@raspi:~ $ sudo reboot -f
Rebooting.

Most helpful comment

Please disregard my previous message: I've resolved my particular issue. Sorry for the noise.

The issue I was facing is that I had, in the interests of reducing microSD card wear, mounted /var/run as tmpfs. By removing the line in /etc/fstab that mounted /var/run as tmpfs, everything works fine again.

More details are at https://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2014-September/003598.html

All 9 comments

Does it do this with a clean raspbian install?

I will test this and return with feedback. Just tested and with a brand new image and it works. So this means that I have broke something.

So best option is to format the card and start again with a fresh image ?

I suspect that will quickest. I don't know how your image is broken so I don't know what is involved in fixing it.

Thanks. I start with a fresh image.

I am experiencing the same issue with a Raspberry Pi 3 Model B running jessie. uname -r returns 4.4.13-v7+ for the kernel. I've also updated to 4.4.19-v7+ using rpi-update, to no avail.

Reinstalling from a fresh image is possible, but a massive pain due to the resulting downtime and need to reconfigure everything. Reinstalling also would not resolve the root cause of whatever caused this issue to originally occur.

Any recommendations on diagnosing the issue? I'd be happy to provide logs, if desired. Just let me know what is needed.

Please disregard my previous message: I've resolved my particular issue. Sorry for the noise.

The issue I was facing is that I had, in the interests of reducing microSD card wear, mounted /var/run as tmpfs. By removing the line in /etc/fstab that mounted /var/run as tmpfs, everything works fine again.

More details are at https://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2014-September/003598.html

@heypete Thank you that does the thrick.

@heypete Thanks for posting this, I had done similar and couldn't fathom why reboot stopped working.

Was this page helpful?
0 / 5 - 0 ratings