LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to scanning a mounted hard disk (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-scanning-a-mounted-hard-disk-614221/)

hcccc 01-17-2008 04:48 AM

How to scanning a mounted hard disk
 
I have a server in office which cannot be turned off. I want to know does the hard disk has bad sectors or not.

I must not turn off the server or unmount the disk. Does it is any tools let me scanning the hard without poweroff and unmount.


Thank you very much!

Simon Bridge 01-17-2008 05:51 AM

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.

Jirka11 01-17-2008 06:15 AM

Absolutly you need to unmount the partition which you want to scan by fsck, so if it's root partition you will need to switch the server off and propably boot from some CD and test it by fsck /dev/sdXX

_____________________________________________
My IP address

hcccc 01-18-2008 12:38 AM

Quote:

Originally Posted by Jirka11 (Post 3025682)
Absolutly you need to unmount the partition which you want to scan by fsck, so if it's root partition you will need to switch the server off and propably boot from some CD and test it by fsck /dev/sdXX

_____________________________________________
My IP address

But I cannot turn off my server. Do it have some tool for check bad sectors. I do not need to fix it, only check is OK.


All times are GMT -5. The time now is 11:38 AM.