Command line is a very useful tool for us to solve problems like data recovery. This article shares all the situations of data recovery which can be solved by command line, like how to recover lost files from different media on Windows PC including Windows 10, 8.1/8, 7, Vista and XP using command prompt, and introduce a utility which can help you make it in the easiest way.
Is it possible for you to recover lost files from a hard drive, external HDD, USB flash drive or memory card with help of command prompt?
More than one person has asked the same question. See following case:
"My external hard drive stopped working after dropping on floor. I am wondering if I can run command prompt to recover lost data from the corrupted external HDD."
This user ran into one of the most common data loss situations. As you know, files probably got lost from various digital devices due to more other reasons like deleting, formatting. Then, can you restore all lost files using CMD in every data loss problem? Well, every lost file in any case is recoverable, but CMD has nolimited ability to recover your any data. Now I will list all the situations you can solve by command line and show you how..
Virus infection may hide some or even all files stored on a storage media. In this situation, you can show hidden files and get back all of them by CMD. If it is a memory card or flash drive, you need to connect it to your Windows computer.
Step 1: Run CMD Command
Step 2: Type "attrib -s -h -r c:/*.* /s /d" (c: is the drive letter). This command will show all hidden files in C drive.
You can also watch this video tutorial about how to find your hidden files by CMD command:
If the command line fails to find all hidden or missing files from a virus infected memory card, flash drive or hard disk, please try iCare Data Recovery Pro to find more lost files.
When a hard disk or USB hard drive has bad sectors, you can run CHKDSK from command prompt to scan and repair bad sectors on it. After running CMD, you can type the command "chkdsk drive letter: /r/f" (e.g. chkdsk d: /r/f)
Step 1: run CMD command
Step 2:you can type the command "chkdsk drive letter: /r/f" (e.g. chkdsk d: /r/f)
This command is able to fix bad sectors on the selected drive without touching any file. For the security of data, it is recommended to make a backup before using this command.
CMD is a command that can be launched on any Windows operating system. The methods to access command line are various on different Windows. Here are some common methods:
1. Click "Start" button > "Run" > type "cmd.exe" and press Enter button
2. For different Windows
3. Click "My Computer" and open C: > Windows > system32 > cmd.exe to create a command prompt shortcut
You can run CMD to delete files from a hard disk or USB disk following the tutorial below:
Step1. Click "Start" > "Run > type "cmd" to launch command prompt.
Step2. Type the command
E.g. If you want to delete a fine named 111.txt located in D drive 456 folder, you can type "del/f/s/q d:\456\111.txt" and press Enter button. This option delete the 111.txt file but not erase the 456 folder. If you want to delete the file with the folder containing it, you can type "rd/s/q d:\456" and press Enter button.
Files deleted using CMD won’t go to recycle bin, but be deleted immediately. Therefore, you cannot recover deleted files from recycle bin, but need to rely on data recovery software.
If you want to recover files after format, you cannot run command line to complete it because this command is not helpful with format recovery. A format recovery tool is needed for files restoring after formatting or reformatting.
You are not allowed to run CMD to recover formatted hard drive or other removable media, but you can run this command to format a disk including internal HDD and USB disk.
Recommend: This page guides you to format different media using CMD: Diskpart to format>>
Running command line, users can fix some errors under different Windows operating system sometimes. Disk drive raw or says not formatted is a common problem that you can run CMD to fix.
Command line is not a professional data recovery tool, during the most situations you can not recover your data by command line. That’s why you need a useful tool to help you with data recovery problem.We will introduce this point later.
Step 1: Run CMD.
Convert memory card with CMD diskpart
Step2: Type“format K: /fs:fat32”(K is the drive letter of your SD card)
Then your SD card will be converted into FAT 32 file system, you can use “ntfs” to instead of “fat32” in the command window if you want NTFS file system.
Although you cannot use command prompt directly for file recovery, it is able to help you get rid of data loss problem sometimes.
When any storage device changes to RAW file system, you can run command line to convert RAW to NTFS or FAT32. Can you convert RAW drive to FAT32 / NTFS without losing files using command line? Yes! You can use the iCare Recovery Pro to perform file retrieval from the RAW drive firstly in case of data loss after file system conversion.
To change RAW to NTFS/FAT32 with CMD, you have to choices:
Recommend: Here is the tutorial to use command line for RAW to NTFS or FAT32 conversion: Change RAW to NTFS FAT32 with CMD>>
Here, we would like to share an alternative, namely a data recovery tool, for lost files recovery when command prompt fails. Whether you believe it or not, a data recovery utility always provides the best solution for data recovery in all situations. Here, it is recommended to use iCare Data Recovery Pro. It is a user-friendly data recovery program, which can work on all Windows OS for deleted files recovery, format recovery, RAW drive recovery and resolve almost all data loss issues from any media like memory card, flash drive, pen stick, USB hard drive, etc.
Step1. Free download, install and run iCare Recovery Pro. Select "Deep Scan Recovery" module.Step 1 to recover data when your computer says”you need to format the disk in drive”
Step2. Select the device where data got lost and then wait the software to scan.Step 2 to recover data when your computer says”you need to format the disk in drive”
Step3. Preview and save the files you want to recover.Step 3 to recover data when your computer says”you need to format the disk in drive”
iCare Recovery is a very professional data recovery tool which can solve many data loss problems for you. This is a 100% safe software without virus or malware.
1. Don’t save all your data to one device. Make a backup at somewhere else will be useful.
2. Don’t install any malware on your computer or mobile phone.
3. Safely eject your USB flash drive, memory card, external hard drive disk from your computer.
4. When you deleted some files from your device, you need to stop put anything on it, rewriting your disk will cause trouble to your data recovery.
Data Recovery Solutions
Popular on iCare
How to convert raw external drive without formatting> Posted by Jan·August 12
How to convert raw usb flash fat32 Posted by Jean·Feb 19
Formatted usb flash drive by mistake> Posted by Mike·August 03