Live data from Hacker News

GNU/Linux: Emergency Restart

nicolasb.com.ar

1–10 of 12 posts

Re: GNU/Linux: Emergency Restart

#2
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

#8

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 Sy…

I still prefer the mnemonic "Reboot Even If System Utterly Broken", plus it describes what it does. :)

Re: GNU/Linux: Emergency Restart

#9
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

#10
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

Post reply on HN