You finally got your Linux environment to crash. Ctrl+Alt+Backspace does nothing, nor do the F-keys. You know you shouldn’t have installed that bad driver, but you did it anyway.
So you reach for the power button.
Stop.
Mashing in the power button to reboot could cause a problem if your hard drive is still being written to, and usually causes more problems than it solves. The Linux kernel includes a secret method of restarting your PC should it ever stop doing its job.
- Hold down the Alt and SysRq (Print Screen) keys.
- While holding those down, type the following in order. Nothing will appear to happen until the last letter is pressed: REISUB
- Watch your computer reboot magically.
What the individual keys do in that sequence are not as important as what it does as a whole: stops all programs, unmounts all drives, and reboots. A lot safer than just cutting the power.
Here it is again: REISUB. Remember that, as it will save you a lot of time when you are configuring a system and something gets messed up. Need a mnemonic? Try Raising Elephants Is So Utterly Boring.
As an aside, don’t try this if you just want to reboot. A normal reboot, if it can be done, should always be used instead of the REISUB keys.
R-E-I-S-U-B.


Tom wrote:
I heard of this trick before at Linuxquestions.org but the poster of the tip there used the order: “Raising Skinny Elephants Is Utterly Boring”
R gives back control of the keyboard
S issues a sync
E sends all processes but init the term singal
I sends all processes but init the kill signal
U mounts all filesystem ro to prevent a fsck at reboot
B reboots the system
# Posted on 09-Sep-07 at 2:18 am
jimmee wrote:
R E I S U B - is just the word busier in reverse.
# Posted on 09-Sep-07 at 4:03 am
Reiniciar Linux en caso de bloqueo wrote:
[...] Reiniciar Linux en caso de bloqueo ¿Que hacer cuando se nos bloquea nuestro Linux? Si el sistema está tan colgado que no funciona la opción de Control + Alt + Backspace ni podemos mover el ratón, podemos recurrir a este curioso truco que me he encontrado en FOSSwire: [...]
# Posted on 09-Sep-07 at 4:16 am
Lee Doyle wrote:
Great tip. Ill be sticking this to my monitor now…. Damn xubuntu always screws up on me.
Thanks again
# Posted on 09-Sep-07 at 4:35 am
Serge van Ginderacht wrote:
Check out Wikipedia for a full explanation:
http://en.wikipedia.org/wiki/Magic_SysRq_key
# Posted on 09-Sep-07 at 4:49 am
TechHairBall.com » Blog Archive » Fix a Frozen System with the Magic SysRq Keys wrote:
[...] read more | digg story [...]
# Posted on 09-Sep-07 at 5:06 am
Diabolic Preacher wrote:
when does this key combo exactly work? is there a specific option to be enabled while the kernel is compiled. where exactly are we supposed to type alt+sysrq? i’m using kde based vector linux.
# Posted on 09-Sep-07 at 5:30 am
dusty wrote:
i’d put the sync after sending all processes the term signal to give the processes time to decide if they needed to ‘finish up’ any data storage. i’d also put two syncs because some systems need them both to actually commit the data to disc.
# Posted on 09-Sep-07 at 5:44 am
Yoda Callmesome wrote:
On my (laptop) keyboard, the PRTSCN key is a function key. Therefore my sequence is ALT-Function-PRTSCN (keys at opposite ends of the keyboard) while typing R-E-I-S-U-B with my nose.
# Posted on 09-Sep-07 at 5:46 am
dusty wrote:
@ diabolic preacher: this will work right now with your system presumably running stably. but if the system is suffering with some runaway process that makes the system unresponsive is the better time to use it.
after doing the sysreq (alt+prtscrn) you will not see a command prompt in which to type this. will will not see any output at all, save hopefully a few flashes of the harddrive activity light after pressing the “s” of the sequence, and the machine rebooting after the “b”..
# Posted on 09-Sep-07 at 5:53 am
Derrick wrote:
@Yoda
I usually use a thick book to wedge the Fn button on the laptop if I need to do such a complicated sequence.
# Posted on 09-Sep-07 at 8:07 am
niko wrote:
@ diabolic preacher
You don’t type Alt+SysRq, it’s a key combination. While holding down the Alt key (should be one on either side of the SPACE bar), you press (and hold) the SysRq key. The SysRq key SHOULD be to the right of F12, above the Insert key, but could be somewhere else, depending on your keyboard layout. It may labelled “Prt Scr”.
See: http://en.wikipedia.org/wiki/SysRq
Now, without letting go of either of those keys, you type R-E-I-S-U-B.
# Posted on 09-Sep-07 at 8:33 am
Alexis wrote:
“Yoda Callmesome wrote:
On my (laptop) keyboard, the PRTSCN key is a function key. Therefore my sequence is ALT-Function-PRTSCN (keys at opposite ends of the keyboard) while typing R-E-I-S-U-B with my nose.”
I’ll pay if one of our helpdesk technicians do that.
# Posted on 09-Sep-07 at 8:37 am
proales wrote:
Its so damn important that the designers of the system kept it a huge secret! Thats how critical it is that you use this method.. they thought “oh no, people will mess up their systems if they turn of the computer normaly lets hide and never mention a ultra secret method of preventing that!”
# Posted on 09-Sep-07 at 8:58 am
solarwind wrote:
Very nice and interesting sequence. There’s a lot more to the Linux kernel that meets the eye.
# Posted on 09-Sep-07 at 9:05 am
Simon wrote:
Some keyboards are really bad at letting you press alt-sysrq-key combinations (three keys) at once. This has lead to the false notion that there is actually a “sysrq mode” — there isn’t, it’s just that your keyboard forgot to send the up-event in some cases.
If it doesn’t work on some keyboards, try alt-sysrq, release sysrq and keep holding alt, and then press a letter. If it seems to get “stuck on” (any other letters pressed print a sysrq help line or do the action), press alt-sysrq again. Again, this is just a result of keyboards which use wire matricies to avoid having to run a wire to every individual key.
# Posted on 09-Sep-07 at 9:06 am
David V wrote:
Wow, that’s a great way to get a cramp in your hands in addition to the headache that you got when your system froze up. Why doesn’t someone come up with a way to safe reboot that only requires you to stick half of the keyboard up your ass while typing THIS IS RIDICULOUS??? Could someone have made this anymore difficult?!
# Posted on 09-Sep-07 at 10:49 am
OE wrote:
@ Diabolic preacher
Yes, it’s a compile time option in the kernel (CONFIG_MAGIC_SYSRQ). I don’t use Vector, but I know it’s based on Slackware, and CONFIG_MAGIC_SYSRQ is not set on the Slackware kernels. This might be your problem.
# Posted on 09-Sep-07 at 11:15 am
Ricky wrote:
Actually this combo isn’t too hard. People always think of pressing the keys with their main fingers… but just hold alt and print screen with your pinkies (or function with your left pinky, alt with your left ring finger, and print screen with your right pinky) and then type the letters. No big deal, really. Or you can think of a bunch of other ways to easily press the keys. I mean, it’s not that hard people, just cause you have 2 hands and this is three keys…
# Posted on 09-Sep-07 at 11:58 am
infrid wrote:
Is there an equivalent in darwin/os x?
Would be so useful - though I must say I already doubt it as it seems like it’s low level linux kernel stuff.. but I am an endless optimist, so maybe..
# Posted on 09-Sep-07 at 12:58 pm
Fix a Frozen System with the Magic SysRq Keys « irrevocable stuff wrote:
[...] read more | digg story [...]
# Posted on 09-Sep-07 at 1:03 pm
Howto: Raising Skinny Elephants Is Utterly Boring… at femtolicious wrote:
[...] (snagged this tip via FOSSwire) [...]
# Posted on 09-Sep-07 at 1:15 pm
Steve Pearce wrote:
What a great find, thanks. I’ve often found my Kubuntu 7.04 box freeze over when transferring heavy amounts of files between desktop and laptop while doing work on that machine at the same time using NFS. Its a rare occasion but yeah I had to result to the power. Sometimes causing a fsck being needed.
Again thanks, though “hopefully” we shouldn’t ever need it
# Posted on 09-Sep-07 at 3:48 pm
ian wrote:
err…i don’t think this is going to work on gutsy gibbon as expected. rather, when the OS is running normally, the alt+prt scrn takes a screen shot. even if you’re holding the function key in there, it’s still going to take a screen shot as soon as you hit prnt scrn. i’m sure it works fine when you start additionally pressing the r+e+i+s+u+b keys,..not going to try it right now as i don’t need it, but just wanted to let people know that if you’re going to “practice” the first key combos, if you’re holding them down for a few seconds, it’ll open up a TON of screen capture dialog boxes…and then you MAY need to use that reisub part after all ;^)
# Posted on 09-Sep-07 at 4:01 pm
Dirty Alpha » Blog Archive » Alt and SysRq and REISUB wrote:
[...] Credit to: FOSSwire [...]
# Posted on 09-Sep-07 at 4:02 pm
Dirty Alpha » Blog Archive » Alt and SysRq and REISUB wrote:
[...] ALL credit to Jacob @ FOSSwire [...]
# Posted on 09-Sep-07 at 4:17 pm
ragingmon wrote:
ian is right.
holding down Alt+SysRq in Ubuntu for a few seconds, opens up ton of screen dialogs boxes and it goes 100% processor use. then you must continue pressing the REISUB part. hehe
btw, Im using Ubuntu Edgy.
# Posted on 09-Sep-07 at 8:14 pm
:: Eliax Blog - Para Mentes Curiosas... :: wrote:
Cómo reiniciar a Linux de manera segura cuando se tranca…
Si alguna vez Linux se te tranca de tal manera que aparenta no responder ni siquiera al teclado, entonces no trates de simplemente apagarle la energía eléctrica a la máquina, porque el kernel de Linux está diseñado para esa eventualidad y hay una …
# Posted on 09-Sep-07 at 8:38 pm
links for 2007-09-10 « Donghai Ma wrote:
[...] FOSSwire » Fix a Frozen System with the Magic SysRq Keys (tags: cool linux tips) [...]
# Posted on 09-Sep-07 at 9:16 pm
werner wrote:
There we need the gene scientists, that they make people with 3 hands
# Posted on 10-Sep-07 at 5:34 am
This might be helpful « Some random words wrote:
[...] lesser mortals might have occasional crashes. For you there’s the Magic SysRq key. The sequence described here will reboot a Linux box that’s locked up unless something pretty major has happened to the [...]
# Posted on 10-Sep-07 at 6:12 am
Raising Skinny Elephants Is Utterly Boring at Delusions of Grandeur wrote:
[...] calls for a series of key strokes while holding down some other keys. I suggest you pop on over to FOSSwire now to check out the full how to…. Tag cloudAside FOSS Nix [?] Share [...]
# Posted on 10-Sep-07 at 6:30 am
Scott Cann wrote:
REISUB
Do I type these as capitals
or will lowercase do?
( I can just see me using my toes to get
the shift in there too)
# Posted on 10-Sep-07 at 8:47 am
T wrote:
Quit being a bunch of whiners and be glad we have the magic keys. It isnt _that_ hard to do.
# Posted on 10-Sep-07 at 9:17 am
Linux freezes? « 0ddn1x: tricks with *nix wrote:
[...] Linux freezes? Filed under: Linux — 0ddn1x @ 2007-09-10 22:00:50 +0000 http://fosswire.com/2007/09/08/fix-a-frozen-system-with-the-magic-sysrq-keys/ [...]
# Posted on 10-Sep-07 at 3:00 pm
LightningCrash wrote:
I recently saved a coworker’s computer via this method.
It was definitely worth its weight in gold.
# Posted on 10-Sep-07 at 6:00 pm
links for 2007-09-11 « geek notes wrote:
[...] Fix a Frozen System with the Magic SysRq Keys This is really helpful to remember. (tags: linux howto tips kernel reference hardware) [...]
# Posted on 11-Sep-07 at 2:27 am
Linux Tip: Gently Restart a Frozen System · TechBlogger wrote:
[...] remembering this key sequence with the phrase “Raising Elephants Is So Utterly Boring.” Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 12-Sep-07 at 9:20 am
Restart Properly : buffer overflow wrote:
[...] FOSSwire » Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 12-Sep-07 at 9:33 am
Diabolic Preacher wrote:
i should have mentioned the word ‘pressed’ instead of ‘type’ but i’ll let y’all know what i didn’t actually know.
Now, without letting go of either of those keys, you type R-E-I-S-U-B.
“without letting go”…didn’t do it that way.
CONFIG_MAGIC_SYSRQ is not set on the Slackware kernels. This might be your problem.
for the time being i am using a binary kernel package and don’t have the source for it. but i never knew the purpose.
thank you dusty, niko and OE.
p.s. the coloring of the sysrq text and the Fn key on the laptop being same suggests that i should be pressing Fn instead of alt. am i right? i’ve never used the Fn keys on linux. is it recognized?
# Posted on 12-Sep-07 at 2:32 pm
Reboot your frozen linux machine–Krishwords wrote:
[...] FOSSwire has this cool tip to restart a frozen Linux Machine. I haven’t tried it yet because I haven’t got a frozen linux machine yet. You finally got your Linux environment to crash. Ctrl+Alt+Backspace does nothing, nor do the F-keys. You know you shouldn’t have installed that bad driver, but you did it anyway. [...]
# Posted on 12-Sep-07 at 3:30 pm
Linux: Quick little key command for a frozen system. « Kylistah’s Weblog wrote:
[...] at one time or another (or several times), I know I have. I came across a neat little article from FOSSwire that will help out in these situations. Installing a bad driver can cause utter frustration when [...]
# Posted on 12-Sep-07 at 3:41 pm
Steve Miller’s Web Sites of Interest » links for 2007-09-13 wrote:
[...] FOSSwire » Fix a Frozen System with the Magic SysRq Keys (tags: admin articles boot commands computer computing cool crash reference ubuntu kernel tips reboot howto linux) [...]
# Posted on 12-Sep-07 at 9:23 pm
How to Restart a Frozen System? | My Linux Way wrote:
[...] Thanks god, this useful tip comes from FOSSwire.com [...]
# Posted on 13-Sep-07 at 2:31 am
Senshi’s Weblog » Alt+SysRq wrote:
[...] [via FOSSwire] [...]
# Posted on 13-Sep-07 at 3:39 am
Digg “Linux Nation” for Thursday September 13th 2007 | fsckin w/ linux wrote:
[...] Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 13-Sep-07 at 4:51 pm
Linux Tip: Gently Restart a Frozen System at aoortic! dot com wrote:
[...] remembering this key sequence with the phrase “Raising Elephants Is So Utterly Boring.” Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 14-Sep-07 at 12:35 am
Sathya Says » Blog Archive » Fix a Frozen System with the Magic SysRq Keys wrote:
[...] Source & Author: Jacob from FOSSwire [...]
# Posted on 14-Sep-07 at 12:52 pm
DiaRio De Un LiNuX3Ro » Reiniciar Linux en caso de bloqueo wrote:
[...] fosswire | [...]
# Posted on 14-Sep-07 at 1:35 pm
Leif Dalands blogg - IT & Produktivitet » Del.icio.us: Ukens anbefalte lenker wrote:
[...] Linux: Fix a Frozen System with the Magic SysRq Keys - Hvis systemet fryser og Ctrl + Alt + Backspace ikke fungerer har FOSSwire en metode som er langt bedre en å tvinge en avslutning via av-knappen, noe som kan være både irriterende og fatalt for operativsystemet. [...]
# Posted on 15-Sep-07 at 12:56 am
Anthony Lawrence wrote:
I remember this instead:
So Everything Is Unusual - Boot!
Alt+SysRq+s - sync the disk
Alt+SysRq+e - try to nicely kill processes
(wait a little bit here)
Alt+SysRq+i - no more mister nice guy
Alt+SysRq+u - unmount disks
(wait a bit here, too)
Alt+SysRq+b - reboot
If you find holding three keys difficult, you can make SysRq “sticky”: see http://aplawrence.com/Words2005/2005_04_13.html
# Posted on 15-Sep-07 at 4:40 am
rhololkeolke wrote:
Does this work with all linux distros and desktops or just certain ones. I tried it on my laptop I held down alt+function+sys rq. While holding that down I pushed reisub. Nothing happened. Am I doing something wrong?
# Posted on 15-Sep-07 at 7:55 am
Name: wrote:
Thanks, that’s very interesting, I’m surprised I’d never heard of it before.
# Posted on 16-Sep-07 at 10:37 pm
thak’s cool links » Magic SysRq Keys wrote:
[...] FOSSwire » Fix a Frozen System with the Magic SysRq Keys. Hmm. Pretty interesting. I think I’ve only had a “non-responsive Linux system” once in the past five years, but it’s good to know… [...]
# Posted on 18-Sep-07 at 7:27 am
Blendor » Restart Linux without the power button wrote:
[...] just learned a new Linux trick [...]
# Posted on 24-Sep-07 at 7:47 am
Fix a Frozen System with the Magic SysRq Keys « Linux and Unix Top News wrote:
[...] read more | digg story [...]
# Posted on 03-Oct-07 at 5:01 am
Mika Hynnä » Blog Archive » REISUB pelastaa wrote:
[...] http://fosswire.com/2007/09/08/fix-a-frozen-system-with-the-magic-sysrq-keys/ [...]
# Posted on 26-Oct-07 at 5:15 am
Linux Tip: Gently Restart a Frozen System « to Mega Therion wrote:
[...] remembering this key sequence with the phrase “Raising Elephants Is So Utterly Boring.”Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 25-Nov-07 at 2:39 am
How to Fix a Frozen System « Jaewook Kim wrote:
[...] January 10, 2008 by jaewook77 http://fosswire.com/2007/09/08/fix-a-frozen-system-with-the-magic-sysrq-keys/ [...]
# Posted on 09-Jan-08 at 10:11 pm
Fix a Frozen System with the Magic SysRq Keys « Jaewook Kim wrote:
[...] 10, 2008 by jaewook77 Fix a Frozen System with the Magic SysRq Keys by Jacob on 8 Sep 2007 in Tips & [...]
# Posted on 09-Jan-08 at 10:14 pm
William wrote:
Just a note, I always try and ssh into a frozen system and reboot remotely before issuing the REISUB command.
If just the “Desktop” is frozen sometimes you can CTRL-ALT-BACKSPACE to restart X Windows. If the windows environment is always freezing you can CTRL-ALT-F1 to drop to a command line interface. Once you’ve fixed the issue you can get back to the windows environment by pressing CTRL-ALT-F7.
CTRL-SysReq REISUB is always the last resort of last resorts.
# Posted on 17-Jan-08 at 3:59 pm
Vuorovaikutus » Arkisto » Hiiri ja näppäimistö lakkaavat vastaamasta wrote:
[...] löytyi myös aika läheltä liippaava säie ja lisäksi toisesta säikeestä vinkkilinkki: Alt + SysRq (Print Screen) + R E I S U B (kirjaimet näppäillään yksi toisensa jälkeen) käynnistää tietokoneen uudestaan [...]
# Posted on 10-Feb-08 at 10:28 am
El Blog del Jorge » Blog Archive » Como reiniciciar Linux cuando se frizee HA? si frizee wrote:
[...] lo lei en El Webmaster k lo leyo en Bocabyte k lo leyo en Fosswire [...]
# Posted on 29-Feb-08 at 6:21 am
hahaha.rootbox.or.id » Blog Archive » Ketik saja R-E-I-S-U-B wrote:
[...] Wikipedia: Magic SysRq Key Fosswire: Fix a Frozen System with the Magic SysRq Keys [...]
# Posted on 05-Mar-08 at 7:54 pm
LINUX 當機的時候該怎麼做? at sunflier’s blog wrote:
[...] via Digg and FOSSwire [...]
# Posted on 15-Mar-08 at 2:01 pm
Como reiniciar un Linux colgado de forma segura wrote:
[...] Visto en FossWire [...]
# Posted on 15-Mar-08 at 7:45 pm
links for 2008-03-25 « B-link List wrote:
[...] FOSSwire » Fix a Frozen System with the Magic SysRq Keys The Linux kernel includes a secret method of restarting your PC should it ever stop doing its job. [...]
# Posted on 25-Mar-08 at 12:22 am
go find us some lentils yonder « ændrük wrote:
[...] go find us some lentils yonder When it comes to rebooting a frozen Linux system, QWERTY keyboard users have it easy; spell “busier” backwards or simply raise some elephants. [...]
# Posted on 02-Apr-08 at 1:40 am
How to unfreeze Linux « Ainulindalë wrote:
[...] to own things like ATi graphic cards…), you can unfreeze back into the world of the living, without the (hard) reset button! [...]
# Posted on 11-May-08 at 5:25 pm
Comunidad GNU de Panamá » Blog Archive » Desbloquear Sistema GNU/Linux, se congeló… wrote:
[...] principal: Fosswire RSS Filed under: Trucos [...]
# Posted on 02-Jun-08 at 6:23 am
Comunidad GNU Panamá » Blog Archive » Sistema GNU/Linux Congelado wrote:
[...] principal: Fosswire RSS Filed under: Trucos [...]
# Posted on 04-Jun-08 at 3:40 pm
Kinox wrote:
To be doubly safe, I do RSEISUB.
# Posted on 29-Sep-08 at 6:09 am