How to Fix Corrupted Files on SD Card or Pen Drive Using CMD

Is your SD card or pen drive damaged? or the files got corrupted and unable to access it? don't worry you can fix it by using command prompt. However, fixing it can be easy if your are an advanced user of CMD, but it may be little complicated if you are new user and I wouldn't recommend to do it.


Pen drive and SD cards are the two most essential and commonly used secondary storage devices for storing data in today's technology. It also comes with wide variety of data capacity for storing data, which is highly portable and can easily fit in any devices. So, for these reasons they are most commonly used secondary storage device.

As our data can be very important and hence we don't want to loose any of those, because the data can be more important than the device.


Repair Corrupted Files on SD Card or Pen Drive Using CMD.

The SD card can be fixed by using the 'chkdsk' command followed by the prefix commands like /f, /r etc. The chkdsk command checks the file system metadata of a volume for any physical and logical errors. However, using only chkdsk will display the status of the volume but does not fix any errors.

To fix these errors, follow the simple steps below.

Step 1: Open command prompt with administrator.

how to repair pendrive or sd card in cmd


Step 2: Type chkdsk d: /f and hit Enter.

Where 'd' is the drive letter of your Pendrive or SD card. But you can replace your drive's specific letter.

how to repair pendrive or sd card in cmd


Step 3: Press 'y' to proceed further, and wait 2 minutes until windows finishes the process.

how to repair pendrive or sd card in cmd


Done!

Now windows has fixed your driver for all corrupted files and all the files are good to go.

/f - used for fixing damaged files or the devices.

/r - used to locate bad sectors and repair physical errors on disk.

There is no much difference between chkdsk /f /r and chkdsk /r /f. It's both are same, but just works in different order. chkdsk /f /r command will check and fix errors in the disk and then locates bad sectors and recover readable information from bad sectors, while chkdsk /r /f performs these tasks in the opposite way.

That's it!

Post a Comment

0 Comments