<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NickC</id>
	<title>SlackWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NickC"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/Special:Contributions/NickC"/>
	<updated>2026-04-08T16:45:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=SysRq&amp;diff=238</id>
		<title>SysRq</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=SysRq&amp;diff=238"/>
		<updated>2009-08-14T04:47:03Z</updated>

		<summary type="html">&lt;p&gt;NickC: SysRq list into different order; corrected SysRq+I definition error; added mnemonics.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tips]]&lt;br /&gt;
--[[User:Drijen|Drijen]] 15:06, 22 September 2007 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Recovering from a System Lock==&lt;br /&gt;
Sometimes a process can go out to lunch, or the system will simply stop responding to user input. This could be from a process waiting for resources or a zombie, but in any case there is no reason to have to reach for that reset button!&lt;br /&gt;
&lt;br /&gt;
==The Magic SysRq==&lt;br /&gt;
The SysRq can be used as a means to save your work, sync the file system(s) and reboot the computer in a clean manner. If you don't know where the SysRq key is, look for the &amp;quot;Prt Scr&amp;quot; (Print Screen) button on your keyboard. SysRq is generally assigned to the same keypress.&lt;br /&gt;
&lt;br /&gt;
===Enabling the SysRq Function===&lt;br /&gt;
To enable the SysRq functionality, you must have a 2.6.15 or higher kernel, and it must be compiled directly in.  Not as a Module!&lt;br /&gt;
&lt;br /&gt;
To check that you have it enabled you may run this command:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;cat /boot/config |grep CONFIG_MAGIC_SYSRQ&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;zcat /proc/config.gz |grep SYSRQ&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if you have /proc/.config support compiled in. (All base slack kernels do)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
which should return:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;CONFIG_MAGIC_SYSRQ=y&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you find that you need to compile it in, the option can be found under the heading ''Kernel Hacking'' on your make &amp;lt;(x)(menu)config&amp;gt; screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you are satisfied that you have the SysRq funtion correctly compiled, ensure that it has not been disabled at boot:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;cat /proc/sys/kernel/sysrq&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the response is &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; :&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;echo 1 &amp;gt; /proc/sys/kernel/sysrq&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Recovering from a Lock Up using SysRq===&lt;br /&gt;
If your system has gone out to lunch, you can now use the Magic SysRq key to save your work and reboot. The basic commands are as follows:&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+R&amp;lt;/tt&amp;gt; :Attempts to remove keyboard from Raw mode&lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+E&amp;lt;/tt&amp;gt; :Terminate request sent to all processes (SIGTERM / kill -15)&lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+I&amp;lt;/tt&amp;gt; :Kills all processes (SIGKILL / kill -9)&lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+S&amp;lt;/tt&amp;gt; :Syncs all disks  &lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+U&amp;lt;/tt&amp;gt; :Force unmount and remount of all filesystems readonly&lt;br /&gt;
   &amp;lt;tt&amp;gt;Alt+SysRq+B&amp;lt;/tt&amp;gt; :Reboots (INIT 6)&lt;br /&gt;
&lt;br /&gt;
and roughly in that order.  You should wait several seconds between each keystroke to let the system complete your request before you issue a new one.&lt;br /&gt;
&lt;br /&gt;
There are several mnemonics to help you remember the key sequence:&lt;br /&gt;
    &amp;lt;tt&amp;gt;Raising Elephants Is So Utterly Boring&amp;lt;/tt&amp;gt;&lt;br /&gt;
    &amp;lt;tt&amp;gt;Reboot Even If System Utterly Broken&amp;lt;/tt&amp;gt;&lt;br /&gt;
    &amp;lt;tt&amp;gt;BUSIER, spelt backwards&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An alternative method is to:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;Alt+SysRq+R CTRL+ALT+DEL&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command will move the keyboard out of raw mode, and attempt to issue a &amp;lt;tt&amp;gt;SHUTDOWN NOW&amp;lt;/tt&amp;gt; command. However, this will not work under some configurations, or if tty1 is defunct.&lt;br /&gt;
&lt;br /&gt;
==Futher Information==&lt;br /&gt;
Further instructions and other options can be found at:&lt;br /&gt;
&lt;br /&gt;
Wikipedia article on MagicSysRq [http://en.wikipedia.org/wiki/Magic_SysRq_key]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/src/&amp;lt;linux-version&amp;gt;/Documentation/sysrq.txt&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>NickC</name></author>
	</entry>
</feed>