Repairing Guides

how to repair a usb drive using command prompt

by Aniya Maggio Published 3 years ago Updated 2 years ago
image

Repair Corrupted USB Flash Drive Using CHKDSK Command.

  • Connect the corrupted flash drive to your PC.
  • On your computer click Start and type CMD in the search bar and hit ENTER.
  • A new command prompt window will get open.
  • Now type the following command: chkdsk /X /f H: or chkdsk H: /f and hit ENTER. Here you need to replace the H: drive with your corrupted pen drive/SD ...

To repair files on a USB flash drive with CHKDSK:
  1. Open the start menu and type “cmd”. Hit Enter on your keyboard.
  2. Enter the following command (make sure to replace DRIVE_LETTER with the letter assigned to the hard drive you want to fix) and press Enter: chkdsk DRIVE_LETTER: /r.
  3. Wait for CHKDSK to finish.
Jan 21, 2022

Full Answer

How to fix corrupted flash drive in Windows 10?

Step 1: Connect the corrupted flash drive (pen drive, memory stick, SD card or external hard drive) to your Windows computer. Step 2: Click START and type CMD in the search bar and hit ENTER to open the command prompt. Alternatively, you can also open the command prompt by pressing Windows Key + R followed by typing CMD in the RUN box that pops up.

How to repair a hard disk using command prompt?

You can use Windows build-in Command Prompt to repair a hard disk in different types of scenarios. For example, suppose you are a Windows 7 user and are not inclined towards downloading extra third-party software to get the hard drive repaired, then using the command prompt will the best option to go for.

How to format write-protected USB drive using CMD in Windows?

Click Start menu, type cmd, right-click Command Prompt to run it as administrator. Then type the following commands to format write-protected USB using CMD. Press Enter after each command.

How to repair RAW USB stick with CMD?

Before introducing the cmd steps, there are better options for repairing raw usb stick with usb flash drive repair tools. Before starting cmd, open your computer and see what drive letter your pen drive has in your computer, and then start cmd chkdsk h: /f (h shall be replaced by your own flash drive drive letter)

image

How do I fix a corrupted flash drive?

For Windows users:Right-click Start icon and choose Device Manager.Click Disk drives and find the driver name of the corrupted USB.Right-click on the name and choose Uninstall device.Unplug the USB drive.Replug the USB drive into the computer and it will reinstall the latest driver automatically.

How do I fix corrupted USB and SD card with CMD?

Repair corrupted Pen Drive or SD card using CMDConnect the corrupted pen drive or SD card to your computer.Hover your mouse on the Start button and Right Click.Click Command Prompt (Admin). ... Type diskpart and press Enter.Type list disk and press Enter. ... Type select disk and press Enter.More items...•

How do I restore a flash drive using command prompt?

1. Recover Deleted Files from USB Drive Using CMDConnect the USB flash drive to your computer.Open the Start menu, type "cmd" , and hit Enter on your keyboard.Type "chkdsk X: /f" in the Command Prompt window and hit Enter. ... Finally, type "ATTRIB -H -R -S /S /D X:*. ... Wait for the process to be completed.

Can a corrupted pen drive be fixed?

The CHKDSK command is a highly effective method for you to repair a corrupted, damaged, and non-working USB flash drive, pen drive, SD card, or hard drive partition. It can also be applied to repair a corrupted external hard drive or HDD/SSD with ease.

How do I fix a corrupted flash drive without formatting it raw?

how to fix a corrupted flash drive without formattingStop using the USB drive.Do not add new items to USB stick.Do not reformat the USB flash drive.Open CMD. ... Check if your drive has bad sectors. ... chkdsk H: /f (H is the drive letter of USB drive. ... Type Y if the drive is in use and hit Enter key to proceed.More items...•

How do I force a USB drive to format?

Right-click the external drive or USB you intend to format and choose "Format". Set the Partition label, File system (NTFS/FAT32/EXT2/EXT3/EXT4/exFAT), and Cluster size, then click "OK". Click "OK" to continue. Click the "Execute Operation" button and click "Apply" to format the hard drive partition.

How can I recover my USB device not recognized?

USB Device Not Recognized Error: Fixed [8 Possible Solutions]#1) Restart Your Computer.#2) Update Computer.Tenorshare 4DDiG.#3) Change USB Root Hub Settings.#4) Update USB Driver.#5) Check And Change Ports.#6) Change USB Selective Suspended Settings.#7) Format Your Drive.More items...•

How do I recover files from a corrupted hard drive using command prompt?

Try to Recover Corrupted Files From USB Using CMDOpen a command prompt on your Windows system.In the prompt, type chkdsk H: /f where H is the drive letter of the corrupt USB drive and hit Enter.Use this command to recover the lost files on the drive: ATTRIB -H -R -S /S /D “drive letter”:*. *

How do I recover files from a corrupted hard drive using command prompt?

Try to Recover Corrupted Files From USB Using CMDOpen a command prompt on your Windows system.In the prompt, type chkdsk H: /f where H is the drive letter of the corrupt USB drive and hit Enter.Use this command to recover the lost files on the drive: ATTRIB -H -R -S /S /D “drive letter”:*. *

How can I format my memory card using CMD?

How to Format SD Card Using CMDStep 1: Open Command Prompt. ... Step 2: Start Diskpart. ... Step 3: List the Disks. ... Step 4: Select Your SD Card from the List. ... Step 5: Clean the SD Card. ... Step 6: Create A New Partition. ... Step 7: Run the Format Command. ... Step 8: Assign a Drive Letter.

How do you fix a corrupted SD card?

Try Another USB Port or Change the Adapter or Card Reader.Fix a Card by Trying CHKDSK Command to Check for Memory Card Errors.Use SD Card Data Recovery Software to Recover Files.Try to Use SD Card on Another Device/PC.Assign a New Drive Letter.Reinstall SD Card Drivers.Fix SD Card Using Windows Repair Tool.More items...•

How Can I Repair My USB Flash Drive?

Well, as mentioned above, you can follow the above command prompt (CMD) to repair corrupted USB flash drive, SD memory card, memory sticks. On the...

How Do I Remove Write Protection?

Many USB drives, memory stick, pen drive, SD card come with the feature of write-protection. But sometimes it creates problems and when it creates...

How Do You Fix An Unrecognized USB?

Well, there are also many users out there, whose USB drive does not get detected or does not get recognized by the computer. In such a situation, t...

Flash Drive Repair Utilities VS CMD

We say usually we would recommend users fix damaged pen drive with free repair tools other than the cmd since mostly the free flash drive repair tools are easier to manage with simple user interface even for non-techie users to get the errors and problems fixed on flash drive.

3 CMDs to Fix Damaged Flash Drive

Here are the exact command lines that you may use for fixing damaged pen drive if you insist on using cmd to get the repair job done.

Still not working? Here are more solutions for your damaged usb stick

Note: if your flash drive was infected by virus, you may undelete files from flash drive after virus using cmd.

How to Repair Hard Drive Using Command (CMD)?

To repair any corrupt hard drive, you’ll have to use CHKDSK, also known as CheckDisk, an official Windows utility that’s designed to check the integrity of a hard drive and repair it in case of damage. CHKDSK is executed within CMD and can be used to repair both internal and external hard drives, irrespective of their storage space.

How to recover deleted files from a hard drive?

Now, launch the software and choose the hard drive as the target location. It’ll be listed under the “External Devices” tab. Step 2 Click the “Next” button and Recoverit will start scanning the hard drive for all the deleted files.

What is CHKDSK in command prompt?

CHKDSK is executed within CMD and can be used to repair both internal and external hard drives, irrespective of their storage space. So, let’s quickly check out how to use CHKDSK in Command Prompt to repair a damaged external hard drive in Windows OS.

How to run cmd as admin?

Step 1 - Launch the “Start” menu and search for “CMD”. Right-click the first search result and tap “Open as Administrator” to run CMD as the Admin.

What is a cmd?

Basically, Command Prompt or CMD is a command-line interface that’s used to execute shell commands.

What is the best recovery tool for hard drive?

If you’re facing the same situation, we recommend using a professional data recovery tool, i.e., Wondershare Recoverit to retrieve the lost data. Since Recoverit is dedicated recovery software, it has a 98% success rate. So, irrespective of the type of hard drive error, Wondershare Recoverit will help you recover the deleted files all the time. It works with different types of storage devices such as hard drives, pen drives, SD cards, etc. The tool also supports 1000+ file types, which means you’ll be able to recover everything using Recoverit.

Can you repair a corrupted hard drive with a command prompt?

Nevertheless, every problem comes with a solution, and a corrupted hard drive is no exception. You can use Windows build-in Command Prompt to repair a hard disk in different types of scenarios. For example, suppose you are a Windows 7 user and are not inclined towards downloading extra third-party software to get the hard drive repaired, then using the command prompt will the best option to go for.

What is a CMD that can fix a raw USB drive?

Diskpart is another cmd that is able to fix raw usb drive, and you may follow the steps as it shows in the following photo.

What does /r stand for in CMD?

In cmd chkdsk, /r stands for locating bad sectors and recovering readable information, the later one is a perfect choice if you want to repair raw flash drive without formatting.

What to do if playback doesn't begin?

If playback doesn't begin shortly, try restarting your device.

Why is my thumb drive raw?

USB flash drive or sometimes we call it thumb drive became raw file system if it was not properly used and this raw usb drive would asks to be formatted after a software failure, virus attack, bad blocks... and become inaccessible all of a sudden.

Can a USB flash drive be removed?

The USB Mass Storage Device can now be safely removed from the computer'; or usb flash drive has been inexpectly infected with virus and its file system was damaged by the virus...

Can a CMD repair a USB flash drive?

Some advanced computing users are inclined to cmd for fixing errors and it's probably that non-techie users may have heard that cmd chkdsk is able to repair raw usb drive when flash drive turned to raw file system 0 bytes in used and free space and all files are gone.

How to wipe a USB drive?

Type the command select disk 3 and press Enter to select the target USB flash drive. Then type clean command and press Enter. DiskPart will wipe disk data.

How to open command prompt in Windows 10?

You have several ways to open Command Prompt on Windows 10. One easy way is: press Windows + R, type cmd in Run dialog, press Ctrl + Shift + Enter and click Yes to run Command Prompt as administrator.

What is minitool power recovery?

MiniTool Power Data Recovery is a professional data recovery program for Windows. This free data recovery software lets you recover any deleted/lost files from USB flash drive/pen drive, SD card, HDD, SSD, and Windows local hard drive. You can use it to recover data from various data loss situations.

How to format a USB drive for free?

You can connect your USB to your Windows computer, open File Explorer, and right-click the USB drive to select Format and select a file system to format the USB flash drive.

Can you recover data from a USB flash drive?

Formatting USB with CMD or other USB format tools will erase all data on it. No matter you mistakenly or intentionally formatted the USB flash drive/pen drive, you can recover data from USB drive if you want.

Can you format a USB flash drive to a computer?

Note: Disk formatting will wipe all data on the disk. If the USB flash drive can still be recognized by computer, you can connect it to computer and copy needed files to another device. If the USB can’t be recognized by computer, you may try some tips to see if you can make it visible on PC before you use Command Prompt to format it.

Can you format a USB drive?

If a USB drive is corrupted/damaged, or needs to be formatted, you can easily format USB by using CMD on Windows 10/8/7. This tutorial includes a detailed guide. However, any disk formatting will erase all data on the disk, so you should back up all needed data beforehand. To recover data from formatted USB, you can try MiniTool Power Data Recovery.

How do I repair Windows 10 with command prompt?

When the error is too serious, you can run advanced repair like system restore. For Windows 10, you can also use DISM command line utility to repair Windows 10 image.

How to repair Windows 10 with SFC?

To repair Windows 10 using SFC with detailed steps: 1. Open "Start", search for the Command Prompt, select it and run as administrator. 2. Then type the command: "sfc /scannow" and press "Enter".

What is a dism command?

DISM command Windows 10 can be used to repair and prepare Windows images, including, Windows Setup, Windows Recovery Environment, and Windows PE. Also, DISM can be used to fix the recovery image within an installation of the operating system. To repair Windows 10 using DISM commands:

What to do if SFC is unable to fix?

If SFC is unable to fix the problem, probably the utility cannot get the necessary files from the Windows image, which might have become broken. In this situation, you can use DISM to repair the Windows image.

Can you use Aomei Backupper Technician to protect unlimited computers?

If you want to protect unlimited computers within your company, you can pick AOMEI Backupper Technician. You will be surprised to find that it enables you to copy the installation directory for portable version creation. Don't hesitate to try it out!

Can you repair Windows 10 with aomei.exe?

Besides system restore, you can also repair Windows 10 with AOMEI.exe. AOMEI Backupper is reliable backup and restore software that deserves a try.

How to fix corrupted hard drive using CMD?

When your hard drive is corrupted, you can refer to the following content to fix corrupted hard disk using Command Prompt. Before proceeding, you had better recover data from the damaged hard drive, and move them to another safe location.

How to repair a corrupted disk?

Step 1. Open AOMEI Partition Assistant, right-click the corrupted disk and select “Rebuild MBR”. Step 2. Select a proper MBR type for your current operating system and click “OK”. Step 3. In the main interface, click “Apply” on the top left corner to commit the pending operation.

How to reformat a corrupted hard drive?

Reformat the corrupted hard drive. Step 1. In the main interface of AOMEI Partition Assistant, right-click any partition of the corrupted disk and select “Format Partition”. Step 2. Select a file system (ex: FAT32) and click “OK”. Step 3. Click “Apply” to start formatting the partition.

What to do if chkdsk.exe fails?

If checking and repairing disk/partition by chkdsk.exe fails, then you can consider the option of rebuilding the MBR of the damaged hard drive. Luckily, AOMEI Partition Assistant could also perform this task.

How to copy multiple files at once?

If you want to copy multiple individual files at once that end with the same file extension (e.g., .docx to the Pets folder on your flash drive, you'd type copy *.docx F:Pets.

How to see all files in a folder?

To see all the files inside of a folder, type dir and press Enter.

image

Basics About Command

How to Repair Hard Drive Using Command (Cmd)?

  • To repair any corrupt hard drive, you’ll have to use CHKDSK, also known as CheckDisk, an official Windows utility that’s designed to check the integrity of a hard drive and repair it in case of damage. CHKDSK is executed within CMD and can be used to repair both internal and external hard drives, irrespective of their storage space. So, let’s quick...
See more on recoverit.wondershare.com

One-Stop Solution | How to Recover Data from Hard Drive?

  • While using a command prompt to recover data is a cool way to get back deleted files, it doesn’t work all the time. In fact, the recovery rate for Command Prompt is so low that you might never be able to retrieve all the files from a damaged external hard drive. If you’re facing the same situation, we recommend using a professional data recovery tool, i.e., Wondershare Recoverit to retrieve t…
See more on recoverit.wondershare.com

Conclusion

  • Encountering software errors on an external hard drive is a common problem experienced by many users. However, instead of panicking about the situation, simply fire up your laptop and execute the above-mentioned commands to repair the external hard drive using CMD. And, in case you’ve lost your valuable data during the repairing process, install Wondershare Recoverit, and g…
See more on recoverit.wondershare.com

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9