[Gllug] headless server and fsck

ccooke ccooke-gllug at gkhs.net
Tue Aug 9 12:25:56 UTC 2005


On Tue, Aug 09, 2005 at 01:10:45PM +0100, Tom Schutzer-Weissmann wrote:
> We run a headless server which got turned off by mistake. It restarted
> without any problems, but I was wondering if there was a way of checking
> the root filesystem without attaching a monitor and keyboard
> 
> Given that I believe it's unwise to run fsck on a mounted filesystem,
> the only thing I can think of is to reboot the server with a live CD
> that will start up sshd so I can go in and check out the hard disks.
> 
> Does anyone know a better way?

If you absolutely have to run it headless, then you can kick off all the
users, kill every single process except your ssh session and remount the
relevant partition read-only. This should make it safe to fsck.

-- 
for((P=10**8,Q=P/100,X=320*Q/(`tput cols`-1),Y=210*Q/`tput lines`,y=-105*Q,v=\
-220*Q,x=v;y<105*Q;x=v,y+=Y));do for((;x<P;a=b=i=k=c=0,x+=X));do for((;a*a+b*\
b<2*P*P&&i++<99;a=((c=a)*a-b*b)/P+x,b=2*c*b/P+y));do :;done;(((j=(i<99?i%16:0\
)+30)>37?k=1,j-=8:0));echo -ne "\E[$k;$j"mE;done;echo -e \\E[0m;done # ccooke
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list