How to recover from Linux freezes with "Raising Skinny Elephants Is Utterly Boring"
In the rare cases that a Linux machine freezes, it can usually be rebooted with the Ctrl-Alt-Backspace key combination. However, if this doesn’t work you can try raising the elephant:
To be able to use this functionality, your kernel needs to be compiled with the CONFIG_MAGIC_SYSRQ option on. If your kernel was compiled with this option, entering the following command on the command line should cause the same path to be echoed out:
ls /proc/sys/kernel/sysrq
A simple mnemonic to remember the combination of keys to raise the elephant is "Raising Skinny Elephants Is Utterly Boring" (RSEIUB). Hold down the left Alt and the SysRq (sometimes labelled "Print Screen") keys and press the following letters in this order, making sure that you give a few seconds pause between keystrokes:
- R – put keyboard in raw mode
- S – sync the disk
- E – terminate all processes
- I – kill all processes
- U – remount all filesystems read-only
- B – reboot the system
If your system uses an ext3 or ReiserFS filesystem and it requests to do a filesystem check while rebooting, you should let it automatically recover the journal by not pressing any key when you are prompted to press "Y".