On Tue, Aug 12, 2003 at 10:58:06AM -0400, Todd Cole wrote: > Newbie question, > > > > I have a Debian machine that is only accessible remotely via SSH (no > keyboard or monitor attached). In order to perform filesystem maintenance > with e2fsck, I believe I need to put the machine into single-user mode, but > with SSH running. (Currently when I try to run e2fsck in run level 2 I > receive messages that the "device is busy.")
Why on earth would you want to run fsck? If your file system screws itself up from time to time, switch to ext3. You won't have to run fsck ever again. > It would seem that the best way to do this would be to remove the K20ssh > script from /etc/rc1.d and replace it with the S20ssh script from run level > 2. When I tried this, however, I still lost my ssh connection and had to > (shutter) reboot the machine via power-cycle. Going into single-user mode probably kills your network connection or maybe your sshd during 'killing all processess...', I think. > Can someone give me a hand and tell me what they are doing that accomplishes > this safely? I don't do this. I run a journalling filesystem (ext3). Even if I simply pull the plug during heavy disk write activity, rebooting doesn't require a fsck. Ever. Of course, some data hasn't been completely written to disk, ;-) David -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]