How to recover deleted files from SD card using CMD?

​"When I connected the SD card with important data to the computer last night, I found that the SD card was empty! I didn't do anything, what's the situation? I checked online and said that it can be recovered with CMD, But I don't know how to use CMD at all, so I would like to ask everyone how to operate, can anyone tell me how to use CMD to recover deleted files from SD card? Thanks!"

How to recover files from SD card using CMD?  

Using the "attrib" command to recover lost files is a common method that can help you recover files lost or hidden due to incorrect settings or virus attacks from USB devices, hard drives, SD cards or other storage devices .

1. Run CMD as administrator.

2. Enter the drive letter where the data needs to be recovered. For example G:, and press "Enter".

3. Then, enter attrib -s -h -r /s /d *.* and press Enter to check whether the files are restored.         

Recover Deleted Files from SD Card Using CMD Commands  

Microsoft has released a tool called Windows File Recovery, which can recover deleted or lost files through the command prompt. It supports NTFS, FAT, exFAT and ReFS file systems and allows you to recover deleted or lost files from hard drives, USB devices and SD memory cards.      

Before using it, you need to remember its syntax and the meaning of the parameters:       

winfr source-drive: destination-drive [/mode] [/switches]        

  • source-drive: the disk where the missing file is located

  • destination-drive: the drive where the files are restored

  • [/mode]: mode selection, please select the mode according to the file system of the disk.

l[/switches]: command selection, please select the command as required.

1. Download and install Windows File Recovery on your computer from Microsoft Store, then open it.

2. Right click on the SD card and select "Properties" to view the file system of the SD card.

3. Determine the mode and command according to your file system and loss situation, and then enter the command and wait for completion.     

How to recover deleted files from SD card more easily?  

As you can see, although you can use CMD to recover deleted files from SD card through the above methods, these methods are cumbersome to operate. For ordinary users, it may take more time to learn to use CMD than to operate. Many, and if you enter the wrong command, it may lead to more serious consequences, so this method is not suitable for ordinary users.

Besides the above methods, you can also use professional data recovery software to recover deleted files. When it comes to data recovery software, you can use AOMEI Recovery Star. The software is easy and fast to use, it can automatically scan and filter all lost or deleted files, besides that, this software has the following advantages:

  • It is specially designed for Windows system and supports Windows 11/10/8/7 and Windows Server.

  • Recovery is fast and easy to operate.

  • Files can be restored to where they were when they were lost or deleted.

  • Support HDD/SSD/USB/SD card and other devices, and recover more than 200 types of files.

  • Support NTFS/FAT32/exFAT/ReFS file system.

1. In the main interface of AOMEI Recovery Star, select the disk where the files are lost, and then click "Start Scan".

2. The software will automatically select the scanning method according to the file system and data loss situation, and you only need to wait patiently for the scanning to complete.

3. After the scan is complete, select the files you need, then click "Recover x files", and then select the location to save the recovered files.

Guess you like

Origin blog.csdn.net/meiyimin/article/details/129935091