Connor's Web Guide
It all starts here ...

 

Learning Center » Ask Leo! » How do I fix bad sectors on a flash drive?
How do I fix bad sectors on a flash drive?

I have a flash drive and I found that some files on it were corrupted. When I recopied them from a backup, these files were corrupted again, sometimes immediately, but sometimes only after a few days or weeks.

Some folks have suggested I simply "buy a new one". But I think that this might be more or less the nature of flash memory, similar to dead pixels on an LCD display. So I'm thinking that a better way might be to mark bad clusters and keep using the drive.

I tried "chkdsk /R" and the result is "Windows has checked the file system and found no problems". Then I tried the old Windows 98 scandisk, and tried Write/Read test. I know that I shortened the flash memory's life by doing this? Again no error was detected.

I filled the disk with files exactly 32768 bytes long - the size of a FAT cluster on this drive - with random data content. I then checked the CRC for these files. I also overwrite these files with inverted data a few times and checked the CRC again. I found a few files where this failed from time to time, so I changed the attributes of these files to read-only and hidden. As long as no mechanism moves these files, this then prevents those bad clusters from being used again.

Is this a reasonable approach?

Let me put it this way: "buy a new one".

Your approach might be reasonable, sort of, but I don't agree with some of the assumptions you've made that lead you down this path.

And I can pretty much guarantee that it simply won't work on many newer flash drives.

Continue reading How do I fix bad sectors on a flash drive?
Tech Questions? Get Answers! - Ask Leo! ... by Leo Notenboom
Leo's Answers Newsletter - Ask Leo! in your inbox every week.

Source: How do I fix bad sectors on a flash drive?


Peer Rating System: Would you recommend this article?

1 2 3 4 5

0.00 out of 5, With 0 Votes

 


Articles:
Why is my internet connection slowing down?
Why am I getting "Windows cannot find" messages on startup?
What's the difference between Closing and Killing a program
What is the .NET Framework, and do I need all these versions?
Where did the Windows Live Hotmail Reply and Forward buttons go?
How can I get the old Windows Live Hotmail back?
Are there any issues listening to streaming music over the inter
Leo's Answers #152 - November 11, 2008
How to find the IP address of my computer?
Does sharing a router make me vulnerable to those I share with?
Nav:  [ 1 2 3 4 5 >> ]
 
 

All logos and trademarks in this site are property of their respective owner.
© 2002-2008 by TechSupportNet unless noted otherwise.

© Connors Web Guide. All rights reserved
Site Tree | All Links | OOF CMS

Home Feedback Search