Home » How-Tos » Corrupted USB Flash Drives Data Recovery Tutorial

Corrupted USB Flash Drives Data Recovery Tutorial


USB flash drives have revolutionized the way we transfer and share information with one another. Many people use these devices to store important files, pictures, and data without saving it on a backup mass storage device. Because of this many people lose valuable virtual belongings when the USB drives become corrupted, have read errors, or become unformattable. This could be for a variety of reason, ranging from viruses to improper peripheral device software removal. Regardless, vital data is missing and it needs to be recovered one way or another.

Let me start by saying I feel your pain! I remember working a huge writing project in college computer lab. (I was on a tight budget at the time and couldn’t afford my own laptop). So naturally I was saving my progress on a USB drive (Lexar Media). When I was finished I was pretty tired and accidentally logged off before ejecting the drive. The next time when I tried to use it, it showed up as a Removable drive rather than the usual Lexar Media drive and when I tried to open it, it said the drive was not formatted. Under Properties, it stated 0 bytes free and used space and file system “RAW”. Apparently the there was a bug in the Windows OS I was running on that corrupted the flash drive when it is removed without proper eject. There are literally hundreds of similar scenarios that people have run into throughout the years. Some things work, others really, really don’t. In this article we will be covering a couple of reliable methods you can use from home without paying hundreds of dollars with a Data Recovery Firm.

Now some of the following instructions will involve sensitive lines of code that could cause serious damage to your USB as well as your computer system if executed incorrectly. The makers of this blog and its contents are not responsible for any damage caused to any computer system or Universal Serial Bus devices. Never fear though! Just take your time, read through it twice, and leave a comment if you’re not absolutely sure about something before proceeding. I will reply!




  • Flash Technology – What is it?
  • USB Generic Troubleshooting – Tips and Advice
  • Data Recovery – Fixes and Procedures:
      1. Two Drives With the Same Drive Letter
      2. Check Disk for Errors
      3. Format a Flash Drive
      4. Recover a SanDisk Drive
      5. Using Data Recovery Software
      6. GNU ddrescue on Linux


Flash Technology – What is it?

Flash memory is a type of electrically erasable programmable read-only memory or EEPROM. It is non-volatile memory that memorizes its value without having to induce power. Flash drives are commonly used to store files and other objects on portable devices such as mobile phones, portable music players, USB drives, digital cameras, and various others. Flash memory electrical write/read/erase behaviors are drastically different from other normal memories, such as random access memory (RAM). With flash, the memory cells can only be written to a limited number of times, typically between ten thousand and one million times; Afterwards they typically become more and more unstable as they wear out.

There are currently two types of flash memory:

  • NOR flash – Permits and supports a fast random access speed, but at a very high cost.
  • NAND flash – Carries a larger storage capacity and achieves excellent execution for large read/write operations .

Both of these flash memory types have a common characteristic: Each bit in a flash chip is appointed a logical (1) where only a write operation can change its value from a (1) to a (0). However, the only method of performing this change is to go through an erase operation. NAND flash memory chips are compartmentalized into blocks. Each block has a predetermined number of pages which are fixed and scaled down into regions for storing data. There is also a free space region which is responsible for holding the status of the data region.

Erasing leaves a memory block that is filled completely with (1)’s. In NAND flash, erase blocks are divided further into pages. A page is usually a multiple of 512 bytes in size, to emulate 512 byte sector size commonly found in file systems on magnetic media. Additionally, a page carrying a surplus of 16 bytes of “out of band” storage space which is generally used for error correction and storing meta data. Some flash disk drivers use the concept of zones5 . A zone is a group of blocks, usually 256 to 1024. Contrary to blocks and pages, a zone is just a logical concept, there is no physical representation.

A NOR flash memory device functions differently by permitting bits to be wiped out individually until every bit is cleared. In NAND flash, only a few writes cycles are written to each page before the page’s content becomes undefined and has to wait for the next erase pass by the blocks where the page is located. So each time data is changed, the new data must be written to a different and available page in a different location. The old page where the data was written originally is known as a dead page. When a period of time has gone by, the amount of dead pages accumulated is reclaimed by the system, which initializes an erase operation to make the dead pages available again.

Flash memory has gained a lot of popularity during the past decade, because of its storage capabilities which have already reached multiple gigabytes of data, its fast information access speed, its non-volatile memory makeup, portability, durability, low power usage and its relatively low market cost.


USB Generic Troubleshooting – Tips and Advice

Have you done this already? Here are some general protocols for dealing with USB technical issues. Make sure to read through before attempting our further, more intricate diagnostics.


Back Up Your Data

A USB flash drive is just like any other computer hard drive or memory storage device. After time, it could become corrupted, fail, or break. Never completely rely on your USB flash drive to hold all of your most important information. Back them up on your home or office computer and a secondary portable hard drive to make sure you’ll always have a copy of your files. There are also a number of growing online mass storage sites where you can upload your information. Since, it’s through the internet, there’s less of a chance of data corruption, but a bigger risk of breached security. Either way, make sure you have a back up plan for your most important data.


Try It On Another Computer

If you’re having trouble opening your USB drive on a computer, try it in another computer. Pretty simple huh? Many times older computer models lack the specific drivers and software to properly utilize your flash drive. Computers sometimes are dealing with their own bugs and internal software issues that could be attributed to a virus or similar malware. In either case, it could just be your computer!


Never Remove A USB Drive While Data Is Being Transferred

Under no circumstances should you remove the USB drive while data is being transferred. Go to Safely remove hardware, stop the USB drive and when it says it is safe to remove it, then remove it. Always remove the USB drive after stopping it. If for some reason your files do not work, transfer another copy of the file with a renamed version – it may work. If you delete the file and re-transfer the same file with the same name and size, it probably gets written to the same area and will not work. A different name with a different size gets written to another area and can work. It’s better to transfer two copies of your file anyway.


Scan Your USB Drive For Possible Viruses

Like your computer, viruses can corrupt files located in your USB Drive. It’s important to check them just as often as you check your computer for viruses. Use an antivirus software to periodically check your drive and remove potentially harmful malware. If you are unable to remove a virus found on your USB Drive, format the USB Drive to make sure it is clean. Any computer you plug the USB drive into may also become infected so make sure you act quickly.


Try To Open A Corrupt File In Another Program

Sometimes a file you are trying to access may be corrupted and will not open correctly. In most cases, the file is damaged and isn’t repairable but there is a trick you can try. Double-click on a file in your USB drive and when it doesn’t open correctly or you get an error message, right-click on it and select the Open With option. It will give you a list of programs or a option for you to select a program. Try to open with another program that might be able to read the file better.


Data Recovery – Fixes and Procedures

Typically there are a few causes for USB drive error/corruptions. We’ll first go through the most likely and easiest methods to analyze and repair corrupt USB flash drives work. Then we’ll take a look at some of the more complicated methods to recover lost data or files from more serious USB flash drive error issues.


Two Drives With the Same Drive Letter

A computer will assign a drive letter (E, F, G) to a flash drive when plugged it in. If one of those drive letters is already in use, a different one will get assigned. So if a backup drive set at drive letter F, then the next flash drive installed will get assigned either E or G. Sometimes however, this process does not perform correctly and can cause the USB flash drives to not work or give an error message.


  • To fix this from a Windows PC, click on the start menu, then right-click on My Computer.
  • From there, click on Manage. The Computer Management window will then pop up.
  • Click on the Disk Management option.
  • In the right-hand panel, you should see all the attached drives listed. Right-click on the drive that you want to change the drive letter on.
  • Click on Change Drive Letter and Paths.
  • Click on the change button.
  • Finally, select a new drive letter. Windows will ask you to confirm, and click yes.


Check Disk for Errors

Windows has dedicated disk error software, labeled Chkdsk, installed for fixing basic drive corruptions. Chkdsk might take a bit of time to run, depending on the number of files and folders, the size of the flash drive, and disk performance. You can run Chkdsk from from the Command Prompt, or My Computer.

Chkdsk from Command Prompt


  • Click Start, and then click Run.
  • In Open, type cmd, and then press Enter. This will open the Command Prompt.
  • Type chkdsk e:/r, and then press Enter. The chkdsk command checks a disk for structure corruption. The e: tells it what drive letter to use and the /r tells it to repair the issues it finds. Make sure you type in the respective letter to the drive to wish to scan.


Chkdsk from My Computer


  • Double-click on My Computer.
  • Right-click on the drive you want to check.
  • Click Properties, and then click Tools.
  • Under Error-checking, click Check Now. A dialog box that shows the Check disk options will then appear.
  • Select the Scan for and attempt recovery of bad sectors check box.
  • Click Start.


Chkdsk will report back what it has done. It will give an Exit code of either 0 (No errors were found), 1 Errors were found and fixed, 2 (Disk cleanup, such as garbage collection, was performed, or cleanup was not performed because /f was not specified) or a 3 (Could not check the disk, errors were not fixed because /f was not specified.

Afterwards, go to My Computer and check out your flash drive. This is the most common method to fix corrupted drives.


Format a Flash Drive

Formatting is a very reliable method to restore the file structure and functions of a USB flash drive to their original manufacturers settings. Unfortunately, formatting the USB will ERASE all the files previously saved on your disk drive. Pictures, documents, and video will be unrecoverable after this point. But If you’re looking to really just recover the drive but never really had anything important on it, this is the quickest and most efficient method of doing so.


Format a USB drive from Command Prompt


  • Click Start, and then click Run.
  • In Open, type cmd, and then press Enter. This will open the Command Prompt.
  • Type Format/x G:. Here G: refers to your removable disk drive letter.
  • Press Enter.


Format a USB drive from My Computer

  • Double-click on My Computer.
  • Right-click on the drive you want to check.
  • Click Format.
  • Choose what type of File system you want. If your flash drive is less than 2 GB, select FAT, if your flash drive is 2 GB or higher, select FAT32.
  • Select Quick Format.
  • Click Start.


Your USB flash drive should be cleaned up and ready to go! Remember to take a look at USB Generic Troubleshooting – Tips and Advice to read through a few basic precautions to take with your drive and prevent corruption from reoccurring.


Recover a SanDisk Drive

While we try to keep tutorials generic without ‘naming names’, one USB brand encounters so many error issues and functional break downs, we had to give it its own section. We’re talking about SanDisk. Statistically, these flash drives are the biggest headache in the portable memory storage industry. People encounter so many problems with these drives that it would seem opening the Internet browser the wrong way would corrupt them. Ok, maybe we’re exaggerating a little bit, but it’s not that far off. In this section we’ll cover a SanDisk drive that could not be recovered through Windows using Disk Check or fixed with Data recovery software. This method will not work on USB flash drives from any other brand.

Usually with a SanDisk flash drive corruption, you’ll get errors like Please insert a disk into drive F: or There is no disk in drive F, Insert a disk, and then try again when you click the drive letter in My Computer. Opening the Disk Management component of the Computer Management console shows that the drive is connected, but there is no unallocated space to partition or format. Other things about the disk look normal. It shows up in the Device Manager as working correctly, without any warnings.

Ok, let’s get to fixing!

  • You’ll first need to download the SanDisk U3 Launchpad
  • Click Save File and save it to your desktop.
  • Double-click LPInstaller.exe
  • Click Next.
  • Select Accept and then click Next.
  • Select Yes, backup and restore all data. This will restore all your data and files after it is reformatted. Or, you can click on No, do not back up data that is currently on the drive. This will erase all data and files saved on the drive.
  • Click Next.
  • Click Next after confirmation of Installation Options. Do not unplug the USB while installing or you will permanently destroy the drive.
  • Click Finish after the Installation is completed.


Check your recovered SanDisk flash drive by navigating to My Computer and clicking on your Drive Letter icon.


Using Data Recovery Software

Data Recovery Software is composed of special programs dedicated to retrieving files and data from corrupted flash drives or hard disks. There are several companies that commercially distribute this type of software for pricing that vary from the low twenties to hundreds of dollars. There are also quite a few free data recovery softwares out there that perform just as well. That being said, tread carefully on which recovery software you decide to use. While there are many legitimate sites that sell this software, there are many others that are nothing but a hoax. I’d suggest staying away from buying data recovery software and focusing on free versions. On top of that I’d suggest using the other methods mentioned first since there is always a danger in downloading software from the Internet. 


GNU ddrescue on Linux

If you have a host computer running Linux OS then GNU ddrescue can recover your USB data. Much like the Window’s Chkdsk, but only better, GNU ddrescue is an efficient data recovery tool with the most sophisticated block-size-changing algorithm available. It can technically be classed as a data recovery software but it runs from your Linux terminal. It copies data from one file or block device to another in a stable and safe way. GNU ddrescue does not write zeros to the output when it finds bad sectors in the input, and does not shorten the output file if not asked to. So, every time you run it on the same output file, it tries to fill in the gaps without wiping out the data already rescued.


A failing drive tends to develop more and more errors as time passes. Because of this, you should rescue the data from a drive as soon as you notice the first error. Be diligent because every time a physically damaged drive powers up and is able to output some data, it may be the very last time that it ever will.


Here we’ll be rescuing a whole USB disc using GNU ddrescue from an Ubuntu Linux terminal.


  • Open the Terminal.
  • Locate information on your current devices and partitions (USB Device name, DVD Mount, USB Mount Point, USB File System, and ISO or DVD image). To do so, run:# dmesg | less
    # dmesg | egrep -i 'cd|dvd'
    # fdisk -l
    In this example, we'll be using the following device name:/dev/hdb
  • Run the following program: ddrescue -f -n /dev/hdb logfileddrescue -d -f -r3 /dev/hdb logfilefdisk /dev/hdbe2fsck -v -f /dev/hdb1e2fsck -v -f /dev/hdb2


This is a generic summary of the steps involved. Your drive may have many more components and partitions involved. In which case, your can visit GNU ddrescue to determine the various following commands.




Vincent Clarke

Vincent Clarke

Vincent graduated from the University of Hawaii in 2007 with a Bachelors in English. Vincent works as a writer and enjoys surfing and mountain climbing. Connect with Vincent on Google+ About Myself

More Posts

Follow Me:
TwitterFacebookLinkedInGoogle PlusYouTube

  • http://www.facebook.com/people/Hanry-Ford/100003509617237 Hanry Ford

    You can also try one of the best data recovery softwares here : http://www.recoverydeletedfiles.com/

    This software will show you the preview of recovered data in trial version.


  • Pingback: Quora

  • Pingback: Quora

  • John Cornor

    Great,This was a really quality post. In theory I’d like to write like
    this too – taking time and real effort to make a good article… but what
    can I say… I procrastinate alot and never seem to get something done.
    data doctors Houston

    • http://twitter.com/_VHClarke Vincent H. Clarke

       Hey John! Thanks for the kind words. Not to worry just put your mind to it and keep practicing. Your biggest enemy is often yourself.

  • Jsphn_2006

    Hi Vincent..
    pls help me out with my problem,, my usb flaskh disk doesnt  work anymore, but the light of it is on when i plug it.. i look the  device management still not there, storage volume or even in the universal serial bus controllers,, i cant afford to lose the files in my usb, they’re very important,,, i went internet cafe, then suddenly the pc turn off. then when it back on, my usb not working anymore, i tired it here in my pc. it is still not working.. pls help me out..
    forgive my english, im not good in english!
    here’s my ID pls add me if ur not busy, or just answer here :)

    • http://twitter.com/_VHClarke Vincent H. Clarke

      Hi Jsphn_2006,

      Not to worry! Did you run through all of my fixes in the article? If so then you probably have a pretty serious issue. Let me know when you’ve tried all of the recovery processes I covered in the tutorial and we can go from there. Best of luck!

  • Acorson5

    What if the chkdsk thru command prompt doesn’t work using my windows7 operating system? I received a message that says “the specified I/O operation on deviceharddisk1dr1 was not completed before the time out period expired.”

    I can be reached at acorson5@gmail.com

    • http://twitter.com/_VHClarke Vincent H. Clarke

      Hi Acorson5,

      This likely isn’t a problem with the Windows 7 operating system. Your computer may have a defective USB port. I’ve seen many people get this error when using their device either on their front USB port or on a USB Hub with many other USB devices. Simply try plugging in the drive into another USB port (preferably on the back side of your computer not the front) and see if that works. You can also try plugging the hard drive (or whatever other device you’re having the problem with) into another computer.

  • Immu1328

    hi vincent i have a seagate mass storge device which has my 100 gb data stored. when i m trying to open i get this msg: drive not accesable. file or directory corrupted and unreadable, i must hav unplugged it in a wrong way. i am also recieving an error when i plug the device to format disk i tried it on other computers but unable to open is there any way i can back up the data and then format???
    pls mail me at immu1328@gmail.com

    • http://twitter.com/_VHClarke Vincent H. Clarke

      Hi Immu1328,

      Well, either the drive is not accessible, or it is and some files and folders are corrupted. Can’t be both. Try backing up your data with Recuva in this case http://www.piriform.com/recuva let me know if this doesn’t work.

  • Pingback: usbtips.com | USB News | USB Tutorials | USB Specification » How to Fix a Slow USB Connection

  • Victor Alagwu

    i have a non digitally signed usb 2.0 port when inserted in my system, it always read that it can not function on less inserted in a high speed connector, when ever i try to transfer download or any files frm one computer to other is either so of the files do not appear or some are not accessible. file or directory corrupted and unreadable

    • http://twitter.com/_VHClarke Vincent H. Clarke

      Hi Victor,

      If your operating system says they’re not signed…just install them anyway! When you get that message…just click “Continue Anyway” and all of your files should boot up just fine.

  • Bert Leen

    Nice tutorial post you, but also a unit tool to resolve your all issue of flash drive try, Kernel for windows data recovery software to fix the every type of error in you flash drive and recover all over data from your corrupted hard disk.

  • Matt

    Hi Vincent,

    Great article.
    My usb drive is showing as a removable drive in my computer, with 0 bytes used and 0 bytes free. I have tried chkdsk but it says windows cannot access the disk. I have tried to format it, both through windows and cmd prompt, I get the error
    “The file type system is RAW. The new file system is FAT. Verifying 0.0 bytes. The specified cluster size is too big for FAT. Format failed.”

    I am not bothered about any files that were on there, but I would like to use the drive again if possible.

    I would appreciate any help or advice you could give to resolve my problem.

    Kind regards,


    • khaled

      i have the same problem can anyone know what is the solution please ???

    • http://www.usbtips.com/ Vincent Clarke

      What’s the size of the flash drive Matt? Keep in mind that you can’t format a volume larger than 32 GB in size using the FAT32 file system. Get back to me and we can troubleshoot from there.

  • Franklin

    Er, Vincent. I’ve got a Lexar 8GB drive, and when I insert it, it says “USB Device Not Recognized.” Is there a way to get the files off of it, still?

  • john marzich

    why so many errors though? Whether usb hard drive or usb flash drive endless chkdsk erros? Why is this? Have a 512gig flash and torture to add files. have to run chkdsk endlessly on added directories. USB hard drive same thing? Is the error correction writing useless?

  • Niña Natividad

    Hi! I have a problem with my 8GB flash drive. It suddenly became corrupted and unreadable. Before this, I copied movies from my laptop to the usb then inserted the usb into my friend’s laptop. After a few seconds, my usb suddenly could not be read. Whenever I tried formatting the usb, a message saying “Windows could not complete the formatting.” is shown repeatedly. I checked the properties and it has 0 BYTES in it. I hope you can help me. :( The flash drive was bought in HongKong, and it’s functioning well before it suddenly became corrupted. Thank you!

  • Pingback: usbtips.com | USB News | USB Tutorials | USB Specification » How to Remove Write Protection from Your USB Drive

  • Paul

    Hello Vincent I have a Lexar 16G, what happened is I was working with my project at home then suddenly my computer said that I have to reformat my USB, all my school files were in there, any suggestion on how to recover my files, I have tried some recovery software like find and mount and iCare but cant find any files in it. Please help me! Thank you

  • guest

    Thanks Vincent – I was pulling the thumb drive (16GB Lexar) out in the middle of movies and stuff, my fault. Windows kept freezing, couldn’t do anything. But! The command prompt reformatted the drive and it is okay now!
    I was just about to throw it away!

  • Happymik

    Vincent, You my friend are a champion, chkdsk worked a treat it restored everything on my flash drive (I also changed the disc name for good measure) I had hours of hard work stored on there , I will back up more often now, thank god for people like you on the net i hope a lot of good karma comes your way!!

  • smith kim

    The freeware PhotoRec and Recuva can be used to do the lost files recovery from USB. Personally I’m using another one: http://www.kvisoft.com/data-recovery/

  • Stacey

    What can I do instead of chdsk for a mac? I have a USB drive that has a folder that has just gone corrupt and emptied. I have some important documents on there.

  • kevin leigh

    vincent,my 2 gb flash is corrupt ,now has only 600kb and windows failed to format could you please help me out?

Copyright © 2014 · usbtips.com | USB News | USB Tutorials | USB Specification · All Rights Reserved · Posts · Comments