Portal Home > Knowledgebase > Articles Database > What command to check for bad sector
What command to check for bad sector
Posted by rin7788, 12-22-2008, 09:40 AM |
What command to check for bad sector
I am using linux centos.
Not sure how to check the bad sector for my harddisk.
Thank you
|
Posted by fava, 12-22-2008, 11:29 AM |
fsck.ext2 -c' and 'fsck.ext3 -c' will both check for bad blocks. You can also call badblocks directly but you should only do that if you know exactly what you are doing.
Even though fsck will generally call fsck.extX, the -c option does not work on the base program. If you are using reiserfs or some other file system than check the fsck.xxxx man pages.
fava
|
Posted by tanfwc, 12-22-2008, 11:58 AM |
Do not run fsck on a live file system. REMEMBER THIS.
__________________tanfwcSecureAX Internet (RCB No. 53114068K) - 99.9% Uptime Affordable
|
Posted by majoosh, 12-22-2008, 03:06 PM |
Quote:
Originally Posted by rin7788
I am using linux centos.
Not sure how to check the bad sector for my harddisk.
Thank you
Check out this link http://smartmontools.sourceforge.net/badblockhowto.html
Majoosh
|
Add to Favourites Print this Article
Also Read
DoS Problems (Views: 581)