Something nasty happened and need to reboot?

I've got a server which something nasty has happened to. The filesystem is giving me errors and although I can log in to ssh (it's loaded into memory) I can't run any commands. Now normally I'd copy off what I could and plug in a rescue CD. However in this case I think it might have been a temporary issue and all I need to do is reboot. How do you reboot if /sbin/reboot isn't available? Simple -

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger


In this case I think I knocked the SATA cable on the live running system. Stupid I know but these things happen. If it really is a disk problem then you're better not rebooting I guess, unless you can get a rescueCD put in the machine first of all!

By Primitive Designs Last updated: 30 August 2013, 10:44