zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Reboot with Magic SysRq

October 4, 2011 by Igor Drobot Leave a Comment

In some situations you cant reboot your server with “reboot” or “init 6” commands. Try this magic solution:

System will just make a hard reset as if you pressed a reset button, without running any shutdown scripts or umounting of your filesystem.

First enable SysRq:

1
echo 1 > /proc/sys/kernel/sysrq

echo 1 > /proc/sys/kernel/sysrq

Now your can send magic commands, example reboot:

1
echo b > /proc/sysrq-trigger

echo b > /proc/sysrq-trigger

Hard Shutdown of your system immediately (Like Power Off button):

1
echo o > /proc/sysrq-trigger

echo o > /proc/sysrq-trigger

Filed Under: Linux Tagged With: reboot, Shutdown, SysRq

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok