How to Recover Formatted Hard Drive/SD Card/USB Data Using CMD

Tracy King updated on Sep 27, 2019 to Format Recovery | How-to Articles


Don't worry if you have formatted a hard drive, SD memory card, or USB pen drive in Windows 10/8/7. In this situation, you can recover formatted data from hard disk or SD card using CMD. If this fails, you can still use format recovery software to recover the formatted data in a few simple clicks.

How can I recover a formatted SD card using command prompt?

"Hi there, I got my SD memory card formatted by accident, and now I need a free way to get my formatted memory card data back. Do you know how to use CMD to recover files from formatted  SD card? Thanks!" 

It's no longer a new problem for users to lose files and data while formatting a hard drive, SD memory card, USB, or other storage devices. When coming across this problem, you have two free methods to recover formatted data from hard drive/SD memory card/USB.

Recover formatted hard drive using CMD
Recover formatted data with a data recovery tool

Now, follow the depth details given below to recover deleted files from formatted storage devices effectively. 

How to Recover a Formatted Hard Drive/SD Card/USB Using CMD

Mostly, when you delete, hide or format a storage device like USB, SD card, or hard drive with data, CMD (Command Prompt) command line will give you a chance to find lost data.

You must be very careful while using CMD command line to recover data from formatted hard disk, SD card, or USB because misoperation can cause more severe problems. If CMD fails to find your lost files, or if don't know how to use the CMD, don't fret, you can skip this method and directly use the format hard drive recovery software to help you do it without effort. 

1. Connect your Hard disk/SD card/USB with the system. Right-click on the Windows icon and select "Search".

Open CMD to restore formatted data.

2. Type: command prompt and right-click on Command Prompt, select "Run as administrator". Click "Yes" to run Command Prompt as administrator.

Run Command Prompt as administrator for file recovery.

3. Type: chkdsk F: /f  in Command Prompt and hit Enter. (Replace F: with the drive letter of the device where you lost files or data.)

Enter command line to restore formatted file.

4. Type: Y and hit Enter to continue.

Confirm and select device to restore formatted data.

5. Type: F and hit Enter again.
Type: F:\>attrib -h -r -s /s /d *.* and hit Enter. (Replace F with the drive letter of the device where you lost files or data.)

Enter recovery command line to restore lost data.

After this, your lost files will all be found and saved in a newly created folder on SD memory card, USB drive or hard drive. You can change the file extension back to a normal format and then make those found files reusable again. If this method is unsuccessful, continue using CMD alternative recommended below to help you out and undo the format on your storage device on Windows 10/8/7.

How to Recover a Formatted Hard Drive/SD Card/USB with Data Recovery Tool

EaseUS Data Recovery Wizard is a perfect CMD alternative format recovery software which is developed to recover & restore lost data from the formatted hard drive in a simple and fast way. Except for the formatted recovery, the powerful data recovery software also can recover deleted files from emptied recycle bin, lost partition, corrupted hard disk, raw partition, and more. 

Now, activate this tool to start your data recovery as soon as possible. The sooner you act, the more likely your data will be recovered. And of course, your privacy will be safe with our 100% clean and risk-free software. You may also contact our tech support team for online help anytime after the activation. 

Step 1. Choose the partition.

Launch EaseUS formatted data recovery software after the installation. Choose the hard drive partition which you've accidentally formatted. Click "Scan".

select a partition and click scan

Step 2. Select wanted files.

After the scanning process, you can click "Filter" to filter a specific file type to quickly find wanted files.

select files

Step 3. Recover files to a secure location.

Select the data files you wish to recover. Click "Recover". Choose a location to store the files and click "OK".

recover files
Do You Need Specialized Data Recovery Services?
You may need further help for tough data loss situations like reformatting drive, RAW disk, partition loss, repartition failures and system boot error. Consult with EaseUS Data Recovery Experts for cost-efficient one-on-one manual recovery service. They could offer the following services after FREE diagnosis:
1. Unformat the drive
2. Repair the RAID, RAW disk or operating system
3. Recover lost partition (the one that cannot be recovered by software)

Bonus Tip: Format Hard Drive/SD Memory card/USB to Use Again

After restoring data from formatted or unformatted SD memory card, USB or hard drive, formatting storage device to workable (NTFS or FAT32, etc.) again is also necessary:

  1. 1. Connect the formatted or unformatted storage devices to your PC.
  2. 2. Open This PC or My computer, right-click your device and select "Format".
  3. 3. Reset the system file to NTFS or FAT32 to make them usable again.

You can also apply the Disk Management tool in Windows PC to format and reset the formatted storage devices. After this, you can reuse the memory card or USB, hard drive to save and store data again.


100% of people found this article helpful.


Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.