TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GNU/Linux: Emergency Restart

43 pointsby nicolasbrailoabout 15 years ago

5 comments

code_duckabout 15 years ago
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.<p>Don't forget the mnemonic - Raising Elephants Is So Utterly Boring.<p>There are a couple of variations:<p>REISUO will shutdown rather than reboot.<p>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.
评论 #1358127 未加载
johnswampsabout 15 years ago
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.
评论 #1358964 未加载
cnvogelabout 15 years ago
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...<p><a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/sysrq.txt;hb=HEAD" rel="nofollow">http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6...</a><p>One very useful function, for example, is to force a hard reboot when ssh'ed into a server:<p>echo b &#62;/proc/sysrq-trigger
yigitabout 15 years ago
most easy way of remembering is : BUSIER, only backwards.
bclabout 15 years ago
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.
评论 #1358712 未加载