<?xml version="1.0" encoding="windows-1252"?>
<node id="510583" title="Re^2: The most useless key on my keyboard is:" created="2005-11-21 17:48:56" updated="2005-11-21 12:48:56">
<type id="11">
note</type>
<author id="392934">
ph713</author>
<data>
<field name="doctext">
The Linux kernel has a compile-time option called "The Magic SysRq key" that makes SysRq actually do what it sounds like - request certain functions directly from the "system" (which is the kernel in this case).&lt;p&gt;
For example:
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;Alt-SysRq-S asks the kernel to sync all filesystems.&lt;/li&gt;
&lt;li&gt;Alt-SysRq-U unmounts all filesystems (actually, remounts them all readonly)&lt;/li&gt;
&lt;li&gt;Alt-SysRq-B reboots the system immediately&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Many vendor-compiled kernels have the compile-time flag on, but disabled at runtime via /proc/sys.  Re-enable it with "&lt;code&gt;echo 1 &gt; /proc/sys/kernel/sysrq&lt;/code&gt;", or put "&lt;code&gt;kernel.sysrq = 1&lt;/code&gt;" in /etc/sysctl.conf.
&lt;p&gt;
Alt-SysRq-S,U,B (hold down the Alt-SysRq while you sequence through S, U, B) is a safe reboot with no fileystem damage, in cases where the system appears to be locked up, but the kernel is in fact still alive enough to see your SysRq requests.
&lt;p&gt;
See here: &lt;a href="http://lxr.linux.no/source/Documentation/sysrq.txt"&gt;Linux Sysrq docs&lt;/a&gt; for more details and all of the other sysrq functions available.</field>
<field name="root_node">
509130</field>
<field name="parent_node">
510448</field>
</data>
</node>
