LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Check system (https://www.linuxquestions.org/questions/linux-newbie-8/check-system-896134/)

ust 08-08-2011 02:17 AM

Check system
 
I use Redhat system , I suspect the HD has had sector , can advise is there to check if the system has had sector ?

Thanks

angel115 08-08-2011 02:33 AM

You can use SMART to check if your disk ever encounter en hardware issue. If it has, it has been recorded so you will know.

You can find more info here on how to use it:
http://www.linuxjournal.com/magazine...rd-disks-smart

ust 08-08-2011 11:04 AM

Thx reply ,

SMART seems need to be install , can advise is there any existing command can check it ?

Thanks.

mikey99 08-08-2011 11:14 AM

Quote:

Originally Posted by ust (Post 4436901)
Thx reply ,

SMART seems need to be install , can advise is there any existing command can check it ?

Thanks.

Run e2fsck with the -cc option. It will do a (safe) non-destructive check
for bad blocks

Code:

# e2fsck -cc /dev/sda1

ust 08-08-2011 11:32 AM

Quote:

Originally Posted by mikey99 (Post 4436913)
Run e2fsck with the -cc option. It will do a (safe) non-destructive check
for bad blocks

Code:

# e2fsck -cc /dev/sda1

thx reply ,

it can be used to check badsector ? if not , what command / tools can use to check ?

thanks.

mikey99 08-09-2011 05:15 AM

Quote:

Originally Posted by ust (Post 4436927)
it can be used to check badsector ? if not , what command / tools can use to check ?

Are you sure its bad sectors you want to check, rather than bad blocks? You may have to so called "low-level" format to update the drives' bad sector table. Download the drive manufacturer's software tools to do this. It will test each sector with a read and write, so it is destructive - you need to backup your data first.


All times are GMT -5. The time now is 11:40 PM.