From 7b40fa4abb2ae1be04e053ec28d788314d97552c Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 21 Apr 2019 17:04:03 +0000 Subject: [PATCH] =?UTF-8?q?Rebooting=20Linux=20when=20it=20doesn=E2=80=99t?= =?UTF-8?q?=20feel=20like=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ing-linux-when-it-doesnt-feel-like-it.html | 32 +++++++++++++++++++ index.html | 1 + ...oting-linux-when-it-doesnt-feel-like-it.md | 30 +++++++++++++++++ markdown/index.md | 1 + 4 files changed, 64 insertions(+) create mode 100644 2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html create mode 100644 markdown/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.md diff --git a/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html b/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html new file mode 100644 index 0000000..981e464 --- /dev/null +++ b/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html @@ -0,0 +1,32 @@ + + + + + +

Linux seems to have a unique knack to just not want to shut down sometimes. This gets caused by everything from I/O failures stopping you loading the “shutdown” application, to I/O failures putting processes in “D” state, to I/O failures stopping you unmounting filesystems. So mainly it’s I/O failures, I guess :)

+ +

If your machine won’t shut down, try these in order:

+ +
shutdown -h now
+halt
+telinit 0
+halt -f
+echo o > /proc/sysrq-trigger
+
+ +

For reboots, try:

+ +
shutdown -r now
+reboot
+telinit 6
+reboot -f
+echo b > /proc/sysrq-trigger
+
+ +

The first three commands in each block have the possibility to leave you halfway through a shutdown if there’s something that prevents the normal shutdown scripts from working properly. The last two commands will take the system down harshly, requiring fscks on reboot (and possibly manual fscks, depending on your distribution) and possibly corrupting data.

+ +

While I’ve seen kernel bugs cause problems like this, the likely cause is disk or controller hardware failure. If your disk blew up, rebooting isn’t going to do you alot of good.

+ +

/derf-question

+ + diff --git a/index.html b/index.html index caee785..995fe44 100644 --- a/index.html +++ b/index.html @@ -40,6 +40,7 @@
  • 2009-Sep-11: Confusing BIND with CNAMEs
  • 2009-Feb-19: The odd case of my mugging
  • 2009-Feb-03: 5-packet TCP connection?
  • +
  • 2006-Feb-02: Rebooting Linux when it doesn’t feel like it
  • 2006-Jan-25: New MySQL toys
  • 2006-Jan-24: Finally, sane MySQL clustering
  • 2006-Jan-23: IBM ThinkCentre A50 Slowdown
  • diff --git a/markdown/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.md b/markdown/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.md new file mode 100644 index 0000000..850369a --- /dev/null +++ b/markdown/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.md @@ -0,0 +1,30 @@ + + + + + +Linux seems to have a unique knack to just not want to shut down sometimes. This gets caused by everything from I/O failures stopping you loading the “shutdown” application, to I/O failures putting processes in “D” state, to I/O failures stopping you unmounting filesystems. So mainly it’s I/O failures, I guess :) + +If your machine won’t shut down, try these in order: + + shutdown -h now + halt + telinit 0 + halt -f + echo o > /proc/sysrq-trigger + +For reboots, try: + + shutdown -r now + reboot + telinit 6 + reboot -f + echo b > /proc/sysrq-trigger + +The first three commands in each block have the possibility to leave you halfway through a shutdown if there’s something that prevents the normal shutdown scripts from working properly. The last two commands will take the system down harshly, requiring fscks on reboot (and possibly manual fscks, depending on your distribution) and possibly corrupting data. + +While I’ve seen kernel bugs cause problems like this, the likely cause is disk or controller hardware failure. If your disk blew up, rebooting isn’t going to do you alot of good. + +/derf-question + + diff --git a/markdown/index.md b/markdown/index.md index b927df9..09fc7b6 100644 --- a/markdown/index.md +++ b/markdown/index.md @@ -39,6 +39,7 @@ 1. 2009-Sep-11: [Confusing BIND with CNAMEs](2009-09-11-confusing-bind-with-cnames.html) 1. 2009-Feb-19: [The odd case of my mugging](2019-02-19-the-odd-case-of-my-mugging.html) 1. 2009-Feb-03: [5-packet TCP connection?](2009-02-03-5-packet-tcp-connection.html) +1. 2006-Feb-02: [Rebooting Linux when it doesn’t feel like it](2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html) 1. 2006-Jan-25: [New MySQL toys](2006-01-25-new-mysql-toys.html) 1. 2006-Jan-24: [Finally, sane MySQL clustering](2006-01-24-finally-sane-mysql-clustering.html) 1. 2006-Jan-23: [IBM ThinkCentre A50 Slowdown](2006-01-23-ibm-thinkcentre-a50-slowdown.html)