RSS



How to gracefully reboot your Ubuntu/Debian system if all else fails

Tue, Dec 12, 2006

ArsGeek, Linux, Ubuntu

Talk about it in our Forums

Crash!

There you are, staring at a crashed Gnome session, CTRL-ALT-BKSPC does nothing. ALT-CTRL-F1 won’t bring you to a terminal where you could cd to /etc/init.d and restart gdm. In short, your choices seem to be limited to holding down the power button and chancing file system corruption or nothing.

But wait! There’s two more options that you may not have known about!


Here are two ways to first try and kill just the process on your current terminal (thus allowing you to get back into your machine and at least attempt a ’shutdown -h now’ command) and if that fails, to bring your machine down in a more graceful manner than a hard shutdown.

First, we’ll try and kill all the process on your current terminal. To do this, hold down the following keys -

ALT + SysReq + k

What the heck is a SysReq key? Look for it on your PrtSc or Print Screen key. The k in this instance stands for Kill.

If that doesn’t work for you, it’s time to take drastic action. You’ll now enter a series of keystrokes that will tell your computer to do some housekeeping before shutting down.

ALT + SysReq + r

This stands for Raw keyboard mode.

ALT + SysReq + s

This syncs the disk.

ALT + SysReq + e

This terminates all processes

ALT + SysReq + i

Kill’s all processes that weren’t terminated nicely.

ALT + SysReq + u

Remounts all filesystems as read only.

ALT + SysReq + b

Reboots.

That’s a heck of a lot better than simply holding down the power button and hoping everything works out okay.

How will you ever remember all those keystrokes? There is a long held mnemonic that makes it a bit easier:

Raising Skinny Elephants Is Utterly Boring - RSEIUB

You should use this method only if other methods (mentioned above) fail.

Technorati Tags: , , , , , ,

Thanks to broadband, we now have numerous dedicated servers to choose from. There are business web hosting options as well as personal web page hosting options. There is cheap web hosting as well as not so cheap one. However, the service promising the best email hosting should be preferred over the one promising compatibility with any web site design due to sem reasons. After all the comfort brought by wireless internet, some effort should be invested in proper research as well.

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

29 Comments For This Post

  1. David Says:

    Wow, this is useful, but is there a shorter sequence, this one is really hard to remember.

  2. arsgeek Says:

    David,

    Unfortunately there’s not a sequence that’s shorter that will also allow your computer to shut down in a manner that won’t harm filesystems or files.

  3. Casper Gielen Says:

    SSSSUB will sync your discs
    Always sync at least 3 times, with 10 seconds in between. Your machine might be very busy, and will need time to write all that data to disc. In that time new data might have gathered. If you want to be sure do e or i first, to killall all tasks.
    After all the data has been written out, you just unmount the disks, and reboot the system.
    Not nice, but not all that bad either. For desktop machines it really doesn’t matter all that much.

  4. David Says:

    Will this work under the Gnome desktop for other distributions like Suse?

  5. arsgeek Says:

    Honestly, I haven’t tried it under Suse, but I have a feeling that it will work. As I understand it, this is a fairly standard *nixism.

  6. Béranger Says:

    It also depends on the kernel config option CONFIG_MAGIC_SYSRQ.

    See http://beranger.org/index.php?article=2125

  7. Binny V A Says:

    I thought crashing was reserved for windows systems. ;-)

    You forgot to include the old Ctrl+Alt+Del method.

  8. arsgeek Says:

    Hey Binny, the hallmark of any good sysadmin is the ability to crash just about anything in the world, including Linux machines, expensive automobiles and the stock market. :)

  9. Ryan Says:

    You can also attempt to ssh in from another PC and shutdown. This is handy when the terminal appears to be locked up.

  10. Ubuntu Tutorials Says:

    Hey this is a good tip. My laptop has issues sometimes and I have to hard power-off. I’ll try this next time. Remember “raising skinny elephants is utterly boring” ;)

  11. Bob Says:

    These magic keystrokes are basically talking to the Kernel directly, some variation of them should work on all *nix

  12. Erm Says:

    Thanks for writing this it was very informative. I sorta wish I would have known about it 2 years ago :)

  13. Stijn van Drongelen Says:

    On most modern desktop systems, clicking the power button (instead of holding it for ~4.8 seconds) sends an interrupt to the operating system, to which most operating systems will respond by starting the ‘gracefully shutdown’-routine. In case you’re using Linux, it’ll often be almost equal to saying ‘reboot’ or ‘init 6′.

    It has always worked for me, provided that it was a ATX-like system. Or something.

  14. John Cromer Says:

    Hello
    Re>There is a long held mnemonic that makes it a bit easier:

    > Raising Skinny Elephants Is Utterly Boring - RSEIUB

    >You should use this method only if other methods (mentioned above) fail.
    Thanks for the useful help! I understand how mnemonics work, but afraid I am still at a loss to see how this one relates to the above instructions.
    Can you clarify?
    Regards
    John

  15. Arik Says:

    That worked great for me. thanx!

  16. Izkata Says:

    A much easier way to remember the same thing:

    REISUB - BUSIER backwards.

  17. adam Says:

    Is there a way to do this without the SysRq key? I run Ubuntu on a MacBook Late ‘07, and there’s no SysRq/PrtScr key.

  18. Patrick Says:

    Nice tips, thanks

  19. stewie Says:

    is there a beginner article?

  20. hussaibi Says:

    A better mnemonic is Restart System Even If Utterly Broken.

  21. Ben Says:

    I learned the where you terminate all processes before syncing the disks. This makes remembering it much easier as it is simply “BUSIER” backwards.

  22. Esteban Says:

    Also, to remember RSEIUB I use:

    “Reboot System Even If Utterly Broken”

    I find it easy to remember… and makes more sense xD

  23. simplistic thoughts Says:

    What is the possible damage that can be done if you just hit the power button?

  24. John Smith Says:

    Tried it today, it worked. Thanks.

  25. ClubPenguinCheats Says:

    Hey this is a good tip. My laptop has issues sometimes and I have to hard power-off. I’ll try this next time. Remember “raising skinny elephants is utterly boring”..

  26. Racka Says:

    Honestly, I haven’t tried it under Suse, but I have a feeling that it will work. As I understand it, this is a fairly standard *nixism.

  27. ??????? ??????? Says:

    The problem with the reboot, the computer simply does not restart.
    Downloads I386 for x86 systems
    I tried to put KUbuntu / Ubuntu, Debian.
    In windose everything is normal.
    Shutting down is fine. Restating system crashes and saves the hard reset. But this is why some settings in the graph. interface are not saved.

  28. L4NiK Says:

    Thx
    ALT + SysReq + r - note)

  29. Roma Syrell Says:

    Thanks for sharing this great tips. It really helps me how to reboot if something bad happens.

23 Trackbacks For This Post

  1. iThouGht - » 怎样优雅的重启你的Ubuntu/Debian系统 Says:

    [...] 还有记住当上面的方法不起作用时再用(来源 ArsGeek 感谢) [...]

  2. Prime News Blog » Blog Archive » xmen cartoons the whole gang How to gracefully reboot your Ubuntu/Debian system if all else fails Says:

    [...] xmen cartoons the whole gang There you are, staring at a crashed Gnome session, CTRL-ALT-BKSPC does nothing. ALT-CTRL-F1 won ’t bring you to a terminal. In short, your choices seem to be limited to holding down the power button and chancing file system corruption or nothing. But wait! There’s two more options that you may not have known about. wonder woman nuderead more | digg story [...]

  3. Cartoons Fans Lounge » Blog Archive » X Men 3 trailer How to gracefully reboot your Ubuntu/Debian system if all else fails Says:

    [...] X Men 3 trailer There you are, staring at a crashed Gnome session, CTRL-ALT-BKSPC does nothing. ALT-CTRL-F1 won ’t bring you to a terminal. In short, your choices seem to be limited to holding down the power button and chancing file system corruption or nothing. But wait! There’s two more options that you may not have known about. X Men the last standread more | digg story [...]

  4. botheredByBees » links for 2006-12-14 Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails ALT + SysReq + R S E I U B - Raising Skinny Elephants Is Utterly Boring - use if CTRL-ALT-BKSPC does nothing and ALT-CTRL-F1 won’t bring you to a terminal where you could cd to /etc/init.d and restart gdm or ALT + SysReq + k fails (SysRq = print screen (tags: linux ubuntu reboot sysadmin howto debian hack) [...]

  5. SharkSpace Blog » Ubuntu (the free linux operating system) guides and resources. Says:

    [...] How to gracefully reboot your Ubuntu system during a lockup - title says it all. [...]

  6. No Expert - Gracefully Powering Down a Frozen Debian (Based) Machine Says:

    [...] great guide from ArsGeek shows how to issue keystrokes that speak directly to the kernel, bypassing the need for an xterm or [...]

  7. 101 Ubuntu Tutorials : lxpages.com blog Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  8. 101 Ubuntu Tips, Tricks and Tutorials : lxpages.com blog Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  9. Graceful rebooting « Fourth Floor Studio Says:

    [...] under: geekery, linux, administration — chris @ 1:11 am When things go wrong, there are more options than the hard [...]

  10. Ubuntu Life » Blog Archive » 101 Trucos y tutoriales para Ubuntu Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  11. Blux 2.0 » Blog Archive » 101 Tips, trucos y tutoriales de Ubuntu Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  12. ernie.cz » Archiv » 101 ubuntu tips, tricks and tutorials Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  13. How to gracefully reboot your Ubuntu/Debian system if all else fails « See the Post Says:

    [...] read more | digg story Posted by seethepost Filed in news [...]

  14. How to gracefully reboot your Ubuntu/Debian system if all else fails « Linux and Unix Top News Says:

    [...] read more | digg story [...]

  15. rfnaufal blog! Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  16. 100 Ubuntu Tips « TTC Shelbyville - Technical Blog Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  17. Tutorial Ubuntu « Flame of Akane Division Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  18. 101 Tutorial Ubuntu « Welcome to Ikhwan’s world Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  19. 101 Tips, Trucos y Tutoriales de Ubuntu « Telematica & Linux Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  20. Tutorial Ubuntu dan 101 tips, triks « Membuka Mata Hati Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  21. The Center of the Information And Communication Technology » Tutorial Ubuntu dan 101 tips, triks Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  22. Tutorial Ubuntu dan 101 tips, triks « ICT Center Kabupaten Malang Says:

    [...] How to gracefully reboot your Ubuntu/Debian system if all else fails [...]

  23. Links semanais « Lines of Code Says:

    [...] http://www.arsgeek.com/2006/12/12/how-to-gracefully-reboot-your-ubuntudebian-system-if-all-else-fail... [...]

Leave a Reply