Quote:
I have a server in office which cannot not be turned off.
|
You experience an irrational urge to turn the server off whenever you see it is switched on? This is a problem man: get someone to duck-tape you to your chair.
Quote:
I want to know does the hard disk has bad sectors or not.
|
man fsck
Quote:
I must not turn off the server or unmount the disk.
|
Then... what happens if you discover bad sectors?
Anyway, the following looks promising:
http://smartmontools.sourceforge.net/
The easiest way to avoid downtime to check the filesystem is to use a failover drive or server.