Thursday, December 11, 2008

Safe Reboot Of Linux Using Magic SysRq Key

Great, I was looking for kind of the STOP + A key in solaris for Linux and here it is.

I have summarized this great article to:

Safe Reboot Of Linux Using Magic SysRq Key: "First, you need to enable the SysRq key, as shown below.

echo '1' /proc/sys/kernel/sysrq

Following are the command keys available for Alt+SysRq+commandkey.
b’ - Immediately reboot the system, without unmounting partitions or syncing.

So: Alt+SysRq+b

We can also do this by echoing the keys to the /proc/sysrq-trigger file. For example, to re-boot a system you can perform the following.

echo 'b' /proc/sysrq-trigger

Perform a Safe reboot of Linux using Magic SysRq KeyTo perform a safe reboot of a Linux computer which hangs up, do the following. This will avoid the fsck during the next re-booting. i.e Press Alt+SysRq+letter highlighted below.

reBoot."

So: Alt+SysRq+B
blog comments powered by Disqus