I had a remote server running Debian Sarge that experienced some HDD failure and I meant to reboot it hoping that fsck could repair the errors automatically. I eventually drove out there and replaced the faulty disks...
But I was wondering: What other ways are there to force a Linux system to reboot that do not require hard drive access?
What I had tried:
shutdown -r nowDid not work, asshutdownis a program that would have to be loaded from disk, the error shown in the terminal wasbash: /sbin/shutdown: Input/output errorinit 6same as abovetelinit qsame as abovekill -2 1This did not print an error, but did not work either. (However, it is possible that the Sarge init did not implementSIGINT, the sarge manpages did not mention it. So it could work in a more recent version of Debian)- This guide on PCFreak.net. However, this failed at
sysctl, which was not in memory either.
sysrqcapabilities withsysctl... which sadly is a program and not a builtin. Though I have to admit now, that I did not really check whethersysrqwas already enabled – dualed Oct 17 '12 at 15:49initis always in memory and thusinit 6would work. Not sure if it's possible forinitto be paged now – dualed Dec 19 '13 at 16:03