Tagged: sysrq

Forced Reboot/Shutdown on Linux

In my previous post, I mentioned my old PC that had Slackware Linux on it went haywire because of hardware issues, and I installed Gentoo Linux for experimemts. At the last part of the installation, I couldn't reboot the system with the following error message:# reboot bash: /sbin/shutdown: Input/output error

I searched the Net and they said the error was due to bad blocks or something hard drive related issues. But it's a brand new hard disk and I most likely messed up the installation somewhere. Another quick research showed me ways to reboot/shutdown without the commands or pressing tje button.

Disclaimer:
The information in this site is the result of my researches in the Internet and of my experiences. This information below is solely used for my purpose and may not be suitable for others.

To force reboot or shutdown, follow below steps.

Reboot:# echo 1 > /proc/sys/kernel/sysrq # echo b > /proc/sysrq-trigger Forced Shutdown:# echo 1 > /proc/sys/kernel/sysrq # echo o > /proc/sysrq-trigger

That's all!
-gibb