How To Recover Files From Usb Using Cmd


USB drive recovery

USB drives are one of the most convenient ways to store and transfer data. However, they can also be prone to corruption and data loss. If you have lost important files from your USB drive, don't worry. You can use the Command Prompt or CMD to recover your lost files. In this article, we will guide you through the process of recovering files from USB using CMD.

What is CMD?

CMD

Before we begin, let's first understand what CMD is. CMD or Command Prompt is a command-line interface that allows you to execute commands and perform various tasks on your computer. It is a powerful tool that can be used for a variety of purposes, including recovering lost files from USB drives.

Step 1: Connect the USB Drive

USB drive

The first step is to connect the USB drive to your computer. Make sure that the USB drive is properly connected and recognized by your computer.

Step 2: Open CMD

CMD

Next, you need to open the Command Prompt or CMD. To do this, press the Windows key + R on your keyboard to open the Run dialog box. Type "cmd" in the Run dialog box and press Enter or click OK. This will open the Command Prompt.

Step 3: Navigate to the USB Drive

CMD navigate

Once the Command Prompt is open, you need to navigate to the USB drive. To do this, type "cd /d [drive letter]" and press Enter. Replace "[drive letter]" with the letter of your USB drive. For example, if your USB drive is assigned the letter "E", type "cd /d E:" and press Enter.

Step 4: Check for Lost Files

CMD chkdsk

Now, you need to check for lost files on your USB drive. To do this, type "chkdsk [drive letter]: /f" and press Enter. This will scan your USB drive for lost files and attempt to recover them.

Step 5: Recover Lost Files

CMD recover

If the scan finds any lost files, you can recover them using the "attrib" command. To do this, type "attrib -h -r -s /s /d [drive letter]:*.*" and press Enter. This will unhide, remove the read-only attribute, and remove the system attribute from all files and folders on your USB drive. This will also make all files and folders on your USB drive visible.

You can now navigate to your USB drive and locate the recovered files. Copy and paste the recovered files to a new location on your computer to ensure that you do not lose them again.

Conclusion

Recovering lost files from USB using CMD is a simple and effective way to retrieve your valuable data. By following the above steps, you can easily recover your lost files and prevent data loss in the future.


0 Post a Comment

Posting Komentar