How do I enable remote access for single-user mode?
I'm a relative Linux newb, but in my haze of newfound love for Debian I've bitten off a bit more than I can chew and I need some help!
I've installed a co-located Debian Sarge box at my local ISP, and I am using it to provide webhosting and email boxes.
I started off using two SATA RAID-1 hard drives, but this was inherently unstable with kernel 2.6, so I re-installed the entire system onto the primary drive (with 4 or so partitions.) The second drive is just for backups.
However, I've run into the situation a few times now (particularly when RAID-1 kept crashing and burning) where the box boots but then sits in single-user mode waiting for some kind of input - from the local console.
Obviously this doesn't help me at all, since I can only log in remotely via ssh. The only other command I have is a remote reboot via a console that my ISP provides, i.e. power on, power off.
I'm in the situation again where the box has rebooted but is completely cut off from the outside world, and tomorrow morning I'll have to get in my car and drive 20 km to my ISP.
What I'd like to know is how do I set up an environment where the box will ALWAYS boot up and provide remote terminal support? e.g. putting a completely stripped down Linux installation on a separate hard drive? Or maybe something as simple as forcing ssh to start in single user mode? Or telling the system to always bypass single-user mode and skip fsck?
I know a lot of you will be saying "No! You CAN'T skip a manual fsck!" But in my current situation it's my backup partition that died, and in the process hung the SATA controller. I had no option other than to remote reboot, hoping that in 45 seconds I'd have my system back. But I don't.
Anyway, just wondering if anyone else has had the same wish or if there are any clever solutions out there.
Thanks a mil,