Linux Force Reboot and shutdown

Force Reboot :
#echo 1 > /proc/sys/kernel/sysrq
#echo b > /proc/sysrq-trigger
If you want to force shutdown machine try this.
#echo 1 > /proc/sys/kernel/sysrq
#echo o > /proc/sysrq-trigger

12 thoughts on “Linux Force Reboot and shutdown

  1. Thanks a lot

    This really helped me out. I was remotely connected to a server with some blocked processes, and this was the only way to reboot the server.

    Per

  2. Hi,

    great work. Sometimes the only way if reboot or shutdown fails.

  3. I dont think the above will work if the file system is read-only (eg corrupt HDD). In this case the command would be:

    reboot -n -f

  4. Wow, thank you! This worked on Debian 5 64bit! It rebooted my server even when it was hosed.

  5. @Brian There is no way it will fail because of a file system hangup. The kernel tells the processor to reboot directly. It reboots so hard that it doesn’t even send back the newline once you press .

Leave a comment