linux server crash

Hi
I faced a problem while booting linux which is as follows;-
*************************************************
Inode 146180 has illegal block(s)

xauth:error in locking authority file /home/root/.Xauthority
Fatal Server Error:
Could not create lock file in /tmp/tXo-lock

xinit:Connection Refused (Errno 111): unable to connect to x server
xinit:NO such processe (errno 3): Server Error
****************************************************
It tells me to log as root for maintenance and further
suggests to use"fsck" manually.

This may have happened due to abrupt shutdown of computer

Any help in this regard is most welcome and extremely
solicitied

Thanks

You should do as suggested: log in as root and run the fsck command. Example syntax might be:

fsck -A

That will run the filesystem check on all filesystems on your system. If you find you are getting lots of errors, you can run:

fsck -A -a

to automatically repair. I would only suggest doing that if all your filesystems are ext2 (if you don't know, then they probably are).

You can also check a single filesystem with something like:

fsck /

That will check only the root filesystem.

HTH