View previous topic :: View next topic |
Author |
Message |
Kobboi l33t


Joined: 29 Jul 2005 Posts: 673 Location: Belgium
|
Posted: Sun May 04, 2008 7:27 pm Post subject: Unreadable cluster (+ how to do sector checks?) |
|
|
I'm doing a fsck -t on a FAT32 filesystem on a USB disk. The test is still running, but I already get confirmation about a file that I was unable to read properly. The message speaks of three unreadable clusters. Now I'm wondering if this is some sort of filesystem corruption (maybe due to an incomplete write operation and meaning that if I remove the file, the problem is fixed), or that this is the consequence of bad sectors. So I guess my question really is "what exactly is an unreadable cluster ?". Also, are there Linux tools to do sector based checks? |
|
Back to top |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Sun May 04, 2008 7:42 pm Post subject: |
|
|
The usual recommended method is by running "badblocks" on the device - this will list unreadable 1KB blocks.
The recommended way to fix these is, in the case of only a couple bad spots, writing over them (the drive will then reallocate the sector from a different spot on the disk), or if there are either many ranges of bad blocks (more than a couple ranges), or many total bad blocks (more than, say, 100), then it's advisable to replace the drive because it may be beginning to fail.
Recent versions of hdparm have an option to directly write sectors (which would be suitable for repairing the bad spots), but I'm not sure of the specifics on how to use this option. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|