Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old December 9th, 2006   #1
xyz
Chocolate-Covered Ubuntu Beans
 
xyz's Avatar
 
Join Date: Oct 2005
Location: Fribourg,Switzerland
Beans: 2,202
HOW-TO reboot only if all else fails

I searched the forum but didn't find this HowTo. Sorry if I missed it somehow.

I learned it when I was using Mandriva.
If your system doesn't react at all, you are totally stuck, and even Ctrl+Alt+backspace gives nothing, try and 'save' the following phrase somewhere in your mind:

Raising Skinny Elephants Is Utterly Boring

Hit the following key sequences; do give it some time between each keystrokes:
( SysRq = print screen ) (Use the LEFT Alt key )
Code:
Alt+SysRq+r 
Alt+SysRq+s
Alt+SysRq+e
Alt+SysRq+i
Alt+SysRq+u
Alt+SysRq+b
Quote:
The r stands for put keyboard in raw mode
The s for sync the disk
The e for terminate all processes
The i for kill all processes
The u for remount all filesystems read only
The b for reboot the system
Use it as a procedure only if all else fails!!

Please pay attention to the following:
Quote:
PS: If your filesystem is Ext3 or ReiserFS and on reboot it wants you to do a filesystem check, don't touch any key when it asks you to press "Y" and let it recover the journal automatically.

NOTE: For the skinny elephants to work you need to have the sysrq-key enabled in the kernel. (CONFIG_MAGIC_SYSRQ)
You can check if it is enabled by typing 'ls /proc/sys/kernel/sysrq' if it's there, it's enabled.
Thanks to Mischa for pointing this out.
I found out about this here:
BY BRUNO
__________________
my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755

Last edited by xyz; February 24th, 2007 at 08:19 AM.. Reason: additional info
xyz is offline   Reply With Quote
Old December 9th, 2006   #2
outofnicks
A Carafe of Ubuntu
 
outofnicks's Avatar
 
Join Date: Feb 2006
Location: SW Wisconsin, USA
Beans: 100
Kubuntu 8.04 Hardy Heron
Re: HOW-TO reboot only if all else fails

Is this preferable to a hard shutdown? That is, holding the power button in on my Dell tower until it powers down--?
__________________
Kubuntu Hardy Heron
Registered Linux user #422217
outofnicks is offline   Reply With Quote
Old December 9th, 2006   #3
xyz
Chocolate-Covered Ubuntu Beans
 
xyz's Avatar
 
Join Date: Oct 2005
Location: Fribourg,Switzerland
Beans: 2,202
Re: HOW-TO reboot only if all else fails

I think ANYTHING is better than a hard shutdown!
The "Raising Skinny Elephants Is Utterly Boring" allows for gradual 'shutdown'.
__________________
my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755
xyz is offline   Reply With Quote
Old December 9th, 2006   #4
kackler
First Cup of Ubuntu
 
kackler's Avatar
 
Join Date: Dec 2006
Beans: 6
Ubuntu 6.06 Dapper
Re: HOW-TO reboot only if all else fails

run the command "shutdown -r now" to reboot or "shutdown -h now" to power down completely.
kackler is offline   Reply With Quote
Old December 9th, 2006   #5
dbott67
Chocolate Ubuntu Mocha Blend
 
dbott67's Avatar
 
Join Date: Mar 2005
Location: St Catharines, ON, Canada
Beans: 1,770
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to dbott67
Re: HOW-TO reboot only if all else fails

Quote:
Originally Posted by kackler View Post
run the command "shutdown -r now" to reboot or "shutdown -h now" to power down completely.
As the original poster mentions:
Quote:
If your system doesn't react at all, you are totally stuck, and even Ctrl+Alt+backspace gives nothing, try and 'save' the following phrase somewhere in your mind
If you're system is locked/frozen/stuck, you won't be able to open a terminal...
dbott67 is offline   Reply With Quote
Old December 9th, 2006   #6
ajm2005
5 Cups of Ubuntu
 
ajm2005's Avatar
 
Join Date: Oct 2006
Beans: 29
Re: HOW-TO reboot only if all else fails


Last edited by ajm2005; December 7th, 2008 at 07:26 AM..
ajm2005 is offline   Reply With Quote
Old December 9th, 2006   #7
flargen
Gee! These Aren't Roasted!
 
Join Date: Jul 2005
Beans: 63
Re: HOW-TO reboot only if all else fails

I prefer to use alt + sysrq + k to kill all processes on the current terminal. It is especially useful if the X server dies and alt + ctrl + backspace doesn't work, because it allows you to log in again without restarting you computer.
flargen is offline   Reply With Quote
Old December 12th, 2006   #8
xyz
Chocolate-Covered Ubuntu Beans
 
xyz's Avatar
 
Join Date: Oct 2005
Location: Fribourg,Switzerland
Beans: 2,202
Re: HOW-TO reboot only if all else fails

Quote:
alt + sysrq + k
Just wondering if that wouldn't be a bit drastic?
__________________
my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755
xyz is offline   Reply With Quote
Old December 12th, 2006   #9
mdowney
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 4
Re: HOW-TO reboot only if all else fails

Is there any way to do this with a Mac keyboard? I don't have a SysRq key.
mdowney is offline   Reply With Quote
Old December 12th, 2006   #10
outofnicks
A Carafe of Ubuntu
 
outofnicks's Avatar
 
Join Date: Feb 2006
Location: SW Wisconsin, USA
Beans: 100
Kubuntu 8.04 Hardy Heron
Re: HOW-TO reboot only if all else fails

My Macs don't have Ubuntu so don't know if this would work but the F13 key is in the same location, and also is labeled "Print Screen" as on the PC keyboard. But on my 97-key USB Mac keyboard, which you may have, that block of keys doesn't exist. There is a "help" key to the right of the F12 key, which may also work? Or possibly this is a PC-only thing?
__________________
Kubuntu Hardy Heron
Registered Linux user #422217
outofnicks is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:25 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry