Force Reboot a Linux Box

There are times that your sysetm is not stable and you can not reboot it, if you have access to console:

Alt+SysRq+u    will force unmount all filesystems

Alt+SysRq+i    will force kill all tasks

Alt+SysRq+b    will force reboot

Alt+SysRq+o    will force poweroff

 

If you are on a ssh shell you can not issue these commands and should do this:

enable feature:

     echo 1 > /proc/sys/kernel/sysrq

issue a command (reboot for example):
     echo b > /proc/sysrq-trigger

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s