Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi Zero does not reboot or shutdown #1214

Closed
incyi opened this issue Dec 6, 2015 · 9 comments
Closed

Raspberry Pi Zero does not reboot or shutdown #1214

incyi opened this issue Dec 6, 2015 · 9 comments

Comments

@incyi
Copy link

incyi commented Dec 6, 2015

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.

@popcornmix
Copy link
Collaborator

Does it do this with a clean raspbian install?

@incyi
Copy link
Author

incyi commented Dec 6, 2015

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.

@incyi
Copy link
Author

incyi commented Dec 7, 2015

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

@popcornmix
Copy link
Collaborator

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.

@incyi
Copy link
Author

incyi commented Dec 7, 2015

Thanks. I start with a fresh image.

@incyi incyi closed this as completed Dec 7, 2015
@heypete
Copy link

heypete commented Sep 6, 2016

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.

@heypete
Copy link

heypete commented Sep 6, 2016

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

@efficks
Copy link

efficks commented Oct 19, 2016

@heypete Thank you that does the thrick.

@HOD42
Copy link

HOD42 commented Dec 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants