NSAS Wiki

Network System Access Solutions

User Tools

Site Tools


Sidebar

Contact

linux:sysrq

Reboot with Magic SysRq

In some situations you cant reboot your server with “reboot” or “init 6″ commands. Try this magic solution: System will just make a hard reset as if you pressed a reset button, without running any shutdown scripts or umounting of your filesystem.

First enable SysRq:

echo 1 > /proc/sys/kernel/sysrq

Now your can send magic commands, example reboot:

echo b > /proc/sysrq-trigger

Hard Shutdown of your system immediately (Like Power Off button):

echo o > /proc/sysrq-trigger

Before reboot/shutdown force sync disks

echo s > /proc/sysrq-trigger
linux/sysrq.txt · Last modified: 2013/08/14 12:08 by michel.pelzer