{"id":102,"date":"2011-10-14T08:59:10","date_gmt":"2011-10-14T06:59:10","guid":{"rendered":"http:\/\/svalgaard.net\/jens\/blog\/?p=102"},"modified":"2011-10-14T08:59:10","modified_gmt":"2011-10-14T06:59:10","slug":"force-reboot-a-linux-computer","status":"publish","type":"post","link":"https:\/\/svalgaard.net\/jens\/blog\/2011\/10\/force-reboot-a-linux-computer\/","title":{"rendered":"Force reboot a Linux computer"},"content":{"rendered":"<p>Sometimes when rebooting the computer instead hangs waiting for some process to finish.<!--more-->Luckily you can force it to reboot\/shutdown immediately ignoring the shutdown script &#8211; but also ignoring syncing hard disks etc.<\/p>\n<p><strong>Enable sysrq and sync disks<\/strong><\/p>\n<p>echo 1 &gt; \/proc\/sys\/kernel\/sysrq<br \/>\necho s &gt; \/proc\/sysrq-trigger<\/p>\n<p><strong>Force reboot<\/strong><br \/>\necho b &gt; \/proc\/sysrq-trigger<\/p>\n<p><strong>Force shutdown<\/strong><br \/>\necho o &gt; \/proc\/sysrq-trigger<\/p>\n<p>From <a href=\"http:\/\/smshaker.wordpress.com\/2009\/03\/02\/linux-force-rebootshutdown\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes when rebooting the computer instead hangs waiting for some process to finish.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":3,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}