Remote Hard Reset of a Linux Server if Reboot Doesn’t Work

Sometimes, reboot or shutdown -r now, don’t work anymore.

That really sucks, especially if you have no access to the server room or you just don’t want to get up.

But there is another solution if your Kernel is compiled with CONFIG_MAGIC_SYSRQ (sysrq-trigger).

If so, you have the possibility so send binding command.

Reset your server (like pressing the hardware RESET button):

# echo b > /proc/sysrq-trigger

But, it might be a good idea to sync the hard disks before:

# echo s > /proc/sysrq-trigger

More information about “Magic SysRq key”

6 Replies to “Remote Hard Reset of a Linux Server if Reboot Doesn’t Work”

  1. Thank you very much man!

  2. Saved me a trip to the server room

  3. Does this mean, reset and reboot is same?

  4. Where is “remote”? On shutdown -r system can go to the process of rebooting but held in some step, can be pinged, but ssh will not be accessible

  5. Great!

  6. Turtle toot!

Leave a Reply