News for hackers. Stuff that matters.
Re:GNU/Linux: Emergency Restart by code_duck on Tuesday May 18, 2010 @11:05AM (#1357677)
This can be handy, no doubt. I have a monitor that flips out blinking if you knock the cord, which my cat has seen fit to do a couple of times.

Don't forget the mnemonic - Raising Elephants Is So Utterly Boring.

There are a couple of variations:

REISUO will shutdown rather than reboot.

Some prefer RSEIUB, syncing earlier in the process - aka Rasing Skinny Elephants Is Unusually Bland. You may wish to throw another Sync in there to make RSEISUB.

Re:GNU/Linux: Emergency Restart by Jach on Tuesday May 18, 2010 @12:57PM (#1358127)
I still prefer the mnemonic "Reboot Even If System Utterly Broken", plus it describes what it does. :)
Re:GNU/Linux: Emergency Restart by johnswamps on Tuesday May 18, 2010 @12:15PM (#1357978)
It's usually worth trying to ssh into the machine when X locks up (if you don't want to just reboot). Depending on what caused the problem, this will often still work even when it's unresponsive locally.
Re:GNU/Linux: Emergency Restart by metageek on Tuesday May 18, 2010 @04:37PM (#1358964)
Or you can press Ctrl-Alt-F1 to get to the console.
Re:GNU/Linux: Emergency Restart by cnvogel on Tuesday May 18, 2010 @02:01PM (#1358383)
Further information about how and what to trigger things with the Magic-Sysrq-Key is documented in $KERNEL/Documentation/sysrq.txt, which you can access for example in Linus' GIT tree at...

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6...

One very useful function, for example, is to force a hard reboot when ssh'ed into a server:

echo b >/proc/sysrq-trigger

Re:GNU/Linux: Emergency Restart by yigit on Tuesday May 18, 2010 @11:43AM (#1357839)
most easy way of remembering is : BUSIER, only backwards.
Re:GNU/Linux: Emergency Restart by bcl on Tuesday May 18, 2010 @01:26PM (#1358242)
IIRC the kernel needs to be compiled with the magic sysreq keys enabled, so if this doesn't work for you you will likely need to rebuild your kernel. Or grow a couple extra digits.
Re:GNU/Linux: Emergency Restart by surki on Tuesday May 18, 2010 @03:31PM (#1358712)
You don't have to recompile, you can control it through proc (/proc/sys/kernel/sysrq)
[deleted]
Re:GNU/Linux: Emergency Restart by nicolasbrailo on Tuesday May 18, 2010 @11:47AM (#1357869)
The order of the keys is really not that important but the order of the functions each one performs indeed matters. Usually you don't wan't to reboot before you sync :P