Files
firestuff/markdown/2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.md

31 lines
1.3 KiB
Markdown
Raw Normal View History

<!--# set var="title" value="Rebooting Linux when it doesnt feel like it" -->
<!--# set var="date" value="February 2, 2006" -->
<!--# include file="include/top.html" -->
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 its I/O failures, I guess :)
If your machine wont 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 theres 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 Ive seen kernel bugs cause problems like this, the likely cause is disk or controller hardware failure. If your disk blew up, rebooting isnt going to do you alot of good.
/derf-question
<!--# include file="include/bottom.html" -->