Monday, March 29, 2010

Force Rebooting Remotely without corrupting the file system

Must thanks to Gavin W. Burris for his interesing blog Remotely Force a Reboot which hightlighted Magic SysRq as a cool tool to force a reboot remotely.

Step 1: To enable SysRq key
# echo 1 > /proc/sys/kernel/sysrq

Step 2: Power cycle the machine
echo b > /proc/sysrq-trigger

For more information, read Wikipedia Magic SysRq

No comments: