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

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.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.4

Table of Contents

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.

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.

Notice:
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. 

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.4

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. 

Note: To guarantee a high data recovery chance, install EaseUS data recovery software on another disk instead of the formatted disk. 

Step 1. Choose the formatted hard drive 

Choose the hard drive partition which you've accidentally formatted and 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. Then use "Other Lost Files" or "Files Lost Original Name", "Tags", etc. in the left pane to locate your files.

select files

Step 3. Recover files to a secure location

Select the data that you wish to recover and click "Recover". Choose a new 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.

Was This Page Helpful?

Updated by Cedric

Cedric Grantham is one of the senior editors of EaseUS who lives and works in Chengdu, China. He mainly writes articles about data recovery tutorials on PC and Mac and how-to tips for partition management. He always keeps an eye on new releases and likes various electronic products.

Read full bio

Written by Tracy King

Tracy joined in EaseUS in 2013 and has been working with EaseUS content team for over 7 years. Being enthusiastic in computing and technology, she writes tech how-to articles and share technical solutions about Windows & Mac data recovery, file/system backup and recovery, partition management and iOS/Android data recovery.

Read full bio

Product Reviews

TrustScore 4.7 | 323 reviews
  • EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition.

    Read More
  • EaseUS Data Recovery Wizard is the best we have 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.

    Read More
  • EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair.

    Read More