How can I restore a formatted SD card using the command prompt?

Hello, I accidentally formatted my SD memory card, and now I'm looking for a free method to recover my formatted memory card data. Do you know how to utilize the Command Prompt (CMD) to restore files from a formatted SD card? Thank you!

It's no longer a novel issue for users to lose files and data during the formatting of a hard drive, SD memory card, USB, or other storage devices. When faced with this problem, you have two free methods to retrieve formatted data from a hard drive, SD memory card, or USB.

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

How to Recover Formatted Hard Drive/SD Card/USB with Command Prompt

大多是时候,当你删除、隐藏或格式化存有数据的设备,如USB、SD卡或硬盘驱动器时,CMD(命令提示符)命令行能帮你找回丢失的数据。

Notice:
When using the CMD command line to retrieve data from a formatted hard drive, SD card, or USB, extreme caution is necessary, as incorrect operations can lead to more significant issues. If CMD fails to locate your missing files or if you're unsure about using CMD, don't worry. You can bypass this method and directly employ the user-friendly Data Recovery Wizard tool to effortlessly accomplish the task.

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

Open CMD to restore formatted data.

2. Type: Command Prompt and right-click on Command Prompt, then select "Run as administrator." Click "Yes" to run Command Prompt with administrative privileges.

Run Command Prompt as administrator for file recovery.

3. Type: chkdsk F: /f in Command Prompt and press 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 press Enter to continue.

Confirm and select the device to restore formatted data.

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

Enter recovery command line to restore lost data.

Following this, all your lost files will be found and saved in a newly created folder on the SD memory card, USB drive, or hard drive. You can then change the file extension back to its normal format, making those recovered files usable once again. If this method does not work, proceed with the CMD alternative suggested below to assist you in reversing the format on your storage device on Windows 10/8/7.

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

Data Recovery Wizard Pro is an ideal alternative to CMD format recovery software designed to easily and quickly retrieve lost data from a formatted hard drive. In addition to formatted recovery, this powerful data recovery tool can also recover deleted files, lost partitions, corrupted hard disks, raw partitions, and more.

Now, activate this tool to start your data recovery as soon as possible. The sooner you act, the higher the chance of retrieving your data. And rest assured, your privacy is secure with our 100% clean and risk-free software. You can also reach out to our technical support team for online assistance anytime after activation. 

Note: To ensure a high chance of data recovery, install the data recovery tool on a different disk rather than the formatted one.

Step 1. Launch tools Data Recovery Wizard. Choose the hard drive partition that you've accidentally formatted and click "Scan".

Select a partition and click Scan

Step 2. The formatted hard drive recovery software will begin scanning for all lost data and files. Upon scanning, click "Filter" to filter a specific file type for a quick search of the files you need. Alternatively, click "Search files or folders" to select the data you wish to recover.

select scanned files

Step 3. Preview the scanned files, then select the ones you wish to recover and click "Recover". Choose a new location to store the files and click "OK".

recover files from formatted HDD

Consult with Tools Data Recovery Experts for personalized manual recovery assistance. After a FREE diagnosis, we can provide the following services:

  • Repair damaged RAID configuration, unbootable Windows operating system, and corrupted virtual disk files (.vmdk, .vhd, .vhdx, etc.)
  • Recover or repair lost partitions and reformatted drives
  • Unformat hard drives and fix RAID drives (including BitLocker encrypted drives)
  • Resolve disks converted to GPT-protected partitions

Bonus Tip: Format Hard Drive/SD Memory Card/USB to Reuse

After retrieving data from a formatted or unformatted SD memory card, USB, or hard drive, it is also essential to reformat the storage device to a functional file system (such as NTFS or FAT32, etc.):

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

You can also utilize the Disk Management utility on a Windows PC to format and reset formatted storage devices. Following this, you can reutilize the memory card or USB hard drive to save and store data once again.