Can You Recover Files from USB Using CMD on Computer?

Can You Recover Files from USB using CMD? Use CMD to Recover Your Files

Do you know how to recover files from USB using CMD? Learn the best way to recover files from USB using Command Prompt.

Wondershare Recoverit Authors

Oct 13, 2020 • Filed to: USB Recovery • Proven solutions

0

How hard is it to recover deleted files from USB using cmd?

Recovering deleted files from USB using CMD is very complicated, if not a very hard task to do. But for those who are unaware of this fact, you can use Command Prompt to recover your deleted files from your USB Drive. Although, relying solely on CMD to recover files from your USB is not a good idea, but you can try it when you are in absolute need of recovery.

Part 1. The Best Way to Recover Deleted Files from USB Using CMD

If you know how to recover files from USB Drive using CMD, then the task of recovering deleted files might get a little easier for you. Command Prompt is an integrated command-line feature in Windows that allows you to perform various functions like Formatting Drives, Unlocking Drives, and Recovering deleted files from USB as well. You can recover files from USB using CMD and by simply giving several commands. By the end of the process, you shell have all of your deleted files from USB recovered.

Follow the Detailed Steps to Recover Deleted Files from Your USB Drive by only using CMD:

Step 1. To start with the recovery of your files from USB using CMD, you first need to plug in your USB Drive to your System. Do make sure if your USB Drive is detected by the System or not. You can also go to, "This PC" and look for your Drive to confirm that it's successfully connected to your System.

Step 2. Now, from the home screen, go to the search panel of your taskbar and search for "CMD". Or you can also use the shortcut key "Window+R" to access the "Run" program and search for "CMD". In both cases, you need to access the "Command Prompt" window as an "Administrator".

recover files from usb using cmd 1

Step 3. Once you are on the Command Prompt window, you will have to process in a few commands by typing those commands and pressing "Enter". Type command "chkdsk #: /f" and press Enter to process the command. Before you click the Enter, you need to replace "#" in the command with the Drive letter of your connected USB drive from which you want to recover files.

Step 4. Now, type "Y" and press Enter. You will see the command line starting again. You need to type the Drive Letter again on the command line and press Enter. As soon as the command is processed, the command line will get restored to its initial position.

Step 5. Finally, give the command "#: \ >attrib –h –r –s /s /d *.*" and press Enter ("#" needs to be replaced with the Drive letter). This is the command that will initiate the recovery of all of your files from USB Drive.

recover files from usb using cmd 2

In the given command "#: \ >attrib –h –r –s /s /d *.*" :

-h applies the Read-Only attribute to selected files.

-s applies System Attribute to selected files.

-h applies Hidden Attribute to selected files.

/S commands the search for specific paths.

/D commands the searching and processing of folders.

Step 6. After the last command is processed, all of your deleted files from USB Drive will be recovered successfully using CMD. You can now access all the restored files at location "attrib -r -s drive:\\" in your storage Drive.

Although Command Prompt is an integrated feature and is capable to recover your deleted files from USB in most cases, it is known to fail in some cases. You can not always rely on CMD to recover your extremely important data from your USB Drive. Command Prompt can be used as a free way to attempt the recovery of your data, but it can not recover your data as efficiently as other data recovery tools. Thus, if Command Prompt fails to recover data from your USB Drive, you should immediately take the use of a good data recovery software to undo the damage and recover all the files from USB instantly.


Part 2. How to Recover Deleted Files from USB When CMD Doesn't Work? Try Recoverit Data Recovery Tool

When you fail to recover files from USB using Command Prompt, then the risk of your data getting lost permanently increases further. In that case, we recommend you to rely on the Recoverit Data Recovery tool. Recoverit can help you in recovering all of your deleted files from USB Drive, even after CMD fails to do so.

Recoverit comes with a much easier and efficient process to recover your data from USB compared to CMD. Recoverit is also very affordable when compared to other data recovery tools in the market. Unlike Command Prompts coding-like UI, which is complicated to understand and follow, Recoverit provides you with a very easy to use graphical interface for efficient recovery.

deleted data recovery

Recoverit Data Recovery - The Best File Recovery Software

  • You can recover 1000+ types of deleted files from USB Drive.
  • You can recover files from USB Drive, Pen Drive, Computer, Mobile devices, HDDS, SSDS, and many other kinds of storage devices.
  • You can Pause, Play, and Filter the scanning process for better results.
  • You can Preview and Recover lost files from your USB Drive in 3-easy-steps.

User guide:

Step 1. Storage Drive Selection

First, plug in the USB Drive, and then launch the Recoverit tool. In the tool UI, the first window you will see is the "Storage Drive Selection" window. On this window, look for your USB Drive under the External Devices section. Select the USB Drive from which you want to recover files and click "Start".

external device recovery

Step 2. Scanning and Filtering

Now, once the scanning has started, you can filter the scanning process by using many Filters like File Type, Name, Size, etc. located at the right-hand and left-hand panel of the window. After the scanning is finished you will see all of the recoverable files.

scan external device

Step 3. Preview and Recover

You can search for the files or navigate to them. Once you find the files you want to recover, then you can use the "Preview" option to make sure of the file and its quality before recovery. Now select all the files that you wish to recover and click "Recover". Choose a secure location on your System for restoring the files and click "OK".

preview recovered photos

The very time you will click OK, all of your deleted files from USB will get restored in the PC. You can simply navigate to the location and can access all the files.


Conclusion:

You should know how to recover deleted files from USB using CMD, as it is a free and integrated data recovery method for your Windows system. But you can't always rely on Command Prompt to recover all of your deleted files. When the data is important, then you need something more reliable. Thus, using the Recoverit data recovery tool is highly recommended in risky situations.

Recoverit author

Sue Wayne

staff Editor

(Click to rate this post)

Generally rated4.5(105participated)

Home > Resources > USB Recovery > Can You Recover Files from USB using CMD? Use CMD to Recover Your Files