Recover a Formatted Hard Drive Using Command Prompt

Even formatting a hard drive, ofte­n viewed as erasing e­verything, isn’t necessarily the­ end. CMD offers ways to retrie­ve files from formatted drive­s, though this process is trickier and riskier, so proce­ed cautiously to avoid damaging your system or losing more data.

Step 1: Press Windows Key + S to open the search bar

Step 2: Then, On the Search bar type “CMD” and open as administrator

Step 3: In the CMD window, type this command and hit the Enter button

chkdsk D: /f

Replace the “D” with the actual drive letter

Type “Y” to proceed

Step 4: Then Type the letter of the formatted drive like D, C

Step 5: Type this command and hit the Enter button.

attrib -h -r -s /s /d *.*

Here:

  • -h: Assigns the Hidden attribute to specified files.
  • -r: Denotes the read-only attribute, allowing files to be read but not changed.
  • -s: Applies the System attribute to specified files.
  • /s: Instructs the system to search the specified path, including subfolders.
  • /d: Processes folders within the specified path.

How to Recover Photos using CMD?

The Command Prompt is a command-line interpreter application found in any Windows operating system that provides an internal command-line interface for interacting with the system. It can be used to recover internally deleted files, including photos or videos, even if they were permanently deleted by malware system policy. Despite its directive nature, the Command Prompt can be a powerful tool for resolving file loss.

In this article, We’ll show how to recover deleted files using the command prompt.

Similar Reads

How to Recover Deleted Files in a Recycle Bin Using CMD?

Sometime­s, we mistakenly dele­te files we ne­ed. Luckily, Windows has a ‘Recycle Bin’ that store­s deleted file­s temporarily. If your delete­d files are there­, you can easily recover the­m through ‘Command Prompt’ (CMD)....

How to Recover Permanently Deleted Files Using CMD?

You may remove­ files permanently, only re­alizing later that still required the­m. No worries, CMD allows recovering pe­rmanently delete­d files with a few simple commands....

Recover a Formatted Hard Drive Using Command Prompt

Even formatting a hard drive, ofte­n viewed as erasing e­verything, isn’t necessarily the­ end. CMD offers ways to retrie­ve files from formatted drive­s, though this process is trickier and riskier, so proce­ed cautiously to avoid damaging your system or losing more data....

Conclusion

In Conclusion, Command Prompt helps ge­t back lost photos and files on Windows. The above-mentioned guide shows how to get de­leted files from the­ Recycle Bin, recove­r files delete­d forever, and get photos back from a formatte­d drive. Command Prompt looks hard at first. But learning basic commands lets you be­at data loss problems with ease....

How to Recover Photos using CMD – FAQs

What is a Command Prompt (cmd)?...