Alternate way to reboot or shutdown a Linux system

Robert Leong -

Scope

If normal methods to reboot or shutdown a Linux box does not work for whatever reason, the method below is another alternative.  It is like presetting the reset or power switch, it does not shutdown Linux gracefully and will not flush or sync files etc....

Some reasons why this might be need is:

  • Typical Linux reboot commands are not working.  Could be a result of disk errors returning Input / Output Errors and the command does not execute.
  • Access to the physical reset switch and the power switch not possible or has side effects causing a partner unit to behave undesirably due to the shared power switch (3u MDS).

Reboot

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

Shutdown

echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger

Source

http://smshaker.wordpress.com/2009/03/02/linux-force-rebootshutdown/

 

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.