How to force a re-boot or shutdown if the traditional commands will not work.

Posted: March 24, 2015. At: 1:16 PM. This was 3 years ago. Post ID: 8120
Page permalink:

If your machine has errors with the hard disk and your machine has booted with a read-only filesystem, these commands can force your machine to either shutdown or reboot.

Forced re-boot.

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

Forced shutdown.

echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger

Execute these commands at a root prompt and they will work instantly. Communicating directly with the kernel this way allows you to shutdown gracefully even if traditional commands will not work at all.

This is where I got these commands from:

No comments have been made. Use this form to start the conversation :)

Leave a Reply