Force reboot a Linux computer

Sometimes when rebooting the computer instead hangs waiting for some process to finish.Luckily you can force it to reboot/shutdown immediately ignoring the shutdown script – but also ignoring syncing hard disks etc.

Enable sysrq and sync disks

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

Force reboot
echo b > /proc/sysrq-trigger

Force shutdown
echo o > /proc/sysrq-trigger

From here.

Skriv et svar

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>