Debian emergency shutdown
The following tutorial describes how to emergency shutdown Debian when it does not respond to shutdown -r now.
When we issue the command
1 | shutdown -r now |
and we get the result:
1 2 3 | Failed to start reboot.target: Activation of org.freedesktop.systemd1 timed out Failed to open initctl FIFO: Nie ma takiego urządzenia ani adresu Failed to talk to init daemon. |
The way to force a safe shutdown would be:
emergency shutdown:
1 | echo 1 > /proc/sys/kernel/sysrq |
1 | echo o > /proc/sysrq-trigger |
emergency restart:
1 | echo 1 > /proc/sys/kernel/sysrq |
1 | echo b > /proc/sysrq-trigger |