Forked from mspalex/force linux reboot when "Input output error"
Created
May 17, 2023 07:56
-
-
Save UnconventionalMindset/60d7724f33718f9e1f7e46c6dabccc55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$reboot | |
bash: /sbin/reboot: Input/output error | |
$shutdown -r now | |
bash: /sbin/shutdown: Input/output error | |
# | |
# if the above reboot commands doesn't work try either forced reboot or shutdown | |
# | |
# force reboot | |
$echo 1 > /proc/sys/kernel/sysrq | |
$echo b > /proc/sysrq-trigger | |
# force shutdown | |
$echo 1 > /proc/sys/kernel/sysrq | |
$echo o > /proc/sysrq-trigger | |
# | |
# this basically does the same as REISUB (just the reboot part, the B), it reboots immediatelly | |
# got from here: https://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment