How to Fix Corrupted USB Drive: A Step-by-Step Guide

Abstract: Restore functionality to corrupted USB drives by repairing file system errors and bad sectors using native OS tools on Windows, macOS, and Linux.

Created: 2026-07-31 by
A corrupted USB drive can often be repaired using built-in operating system tools without third-party software. By running disk checks, reformatting the file system, or updating drivers, you can restore functionality to the device. This guide provides step-by-step instructions for Windows, macOS, and Linux users to diagnose and fix common corruption issues effectively.

Diagnosing the Corruption

Before attempting repairs, it is crucial to understand the nature of the corruption. Common symptoms include the drive not appearing in File Explorer, showing as raw storage, prompting to format before use, or displaying errors like "USB Device Not Recognized." These issues may stem from logical file system errors, bad sectors, or physical damage. If the drive makes clicking noises or is physically broken, software solutions will not work, and professional data recovery services are required. For related hardware issues, such as intermittent connections, you might want to check Troubleshooting Faulty USB Ports: Tips and Methods to ensure the port itself is not the culprit.

Fixing Corrupted USB Drives on Windows

Windows offers several native utilities to repair corrupted drives. The first and most effective method is using the Check Disk utility. Open Command Prompt as an administrator by right-clicking the Start button and selecting "Terminal (Admin)" or "Command Prompt (Admin)." Type the following command, replacing X with your USB drive letter:
chkdsk X: /f /r
This command scans the drive for file system errors (/f) and attempts to recover readable information from bad sectors (/r). If this fails, the drive may need to be formatted. Be aware that formatting erases all data. To format, open Disk Management by pressing Win + R, typing diskmgmt.msc, and hitting Enter. Right-click the USB partition and select "Format." Choose a file system like exFAT for compatibility across Windows and macOS, or NTFS for Windows-only use. If the drive still does not appear, update or reinstall the USB drivers. In Device Manager, locate "Universal Serial Bus controllers," right-click each USB Root Hub, and select "Uninstall device." Restart your computer, and Windows will automatically reinstall the drivers upon boot.

Repairing USB Drives on macOS

macOS uses Disk Utility to manage and repair drives. Open Spotlight Search (Cmd + Space), type "Disk Utility," and launch the application. Select your USB drive from the sidebar on the left. Click the "First Aid" button at the top of the window and then "Run." Disk Utility will check the volume for errors and attempt to repair them. If First Aid fails, you may need to erase the drive. Ensure you have backed up any accessible data first. With the drive selected, click "Erase" in the toolbar. Choose a name for the drive, set the format to ExFAT (for cross-platform use) or Mac OS Extended (for macOS only), and select GUID Partition Map as the scheme. Click "Erase" to proceed. Note that if the drive shows as "Read Only" or cannot be erased, it may be physically damaged or locked by a hardware switch.

Linux Solutions for USB Corruption

Linux users can utilize the terminal to diagnose and fix USB issues. First, identify the drive using the lsblk command. Look for your USB device, typically listed as sdb or similar. To check for errors, use the fsck (file system consistency check) tool. Run the following command with sudo privileges:
sudo fsck /dev/sdX1
Replace sdX1 with your actual partition identifier. If errors are found, add the -y flag to automatically answer yes to all repair prompts. If the file system is unsupported or severely corrupted, you may need to recreate the partition table. Use sudo fdisk /dev/sdX to delete existing partitions and create new ones, followed by formatting with mkfs.vfat /dev/sdX1 for FAT32 or mkfs.exfat /dev/sdX1 for exFAT.

Preventing Future Corruption

To minimize the risk of future corruption, always safely eject your USB drive before removing it. On Windows, click the "Safely Remove Hardware" icon in the system tray. On macOS, drag the drive to the Trash or use the eject symbol next to its name in Finder. Avoid disconnecting the drive during write operations, such as copying large files or installing software. Additionally, keep your operating system and drivers updated to ensure compatibility. If you frequently encounter issues with specific cables or adapters, consider reviewing resources on cable limitations, such as How to Overcome USB 3.x Cable Length Limit, to ensure signal integrity.

Data Recovery Considerations

If your drive contains critical data and standard repair methods fail, avoid further writes to the device. Creating a sector-by-sector image using tools like ddrescue on Linux can preserve the state of the drive for professional recovery. Software like Recuva or TestDisk can sometimes recover files from corrupted partitions, but success rates vary based on the extent of the damage. In cases of physical failure, such as a broken connector or controller chip, specialized hardware tools are necessary.

Frequently Asked Questions

Why does my USB drive show as RAW?

A RAW file system indicates that the operating system cannot recognize the file system structure, often due to corruption or incompatible formatting. You can usually fix this by formatting the drive, which will create a new file system, but this process erases all existing data.

Can I fix a corrupted USB drive without losing data?

Yes, using commands like chkdsk on Windows or fsck on Linux can repair file system errors without deleting files. However, if these tools fail, formatting may be the only option, which requires a prior backup of accessible data.

What should I do if the USB drive is not detected at all?

Try connecting the drive to a different USB port or computer to rule out port-specific issues. If it remains undetected, check Device Manager or System Information to see if the hardware is recognized but lacks drivers. Physical damage to the USB connector or internal circuitry may require professional repair.

Is it safe to use a corrupted USB drive after fixing it?

It is generally safe to use a drive after successful repair, but monitor it closely for recurring issues. Corruption can sometimes indicate underlying hardware failure, so keeping important data backed up elsewhere is advisable. If errors return quickly, replace the drive to prevent data loss.

How do I format a USB drive on a Mac?

Open Disk Utility, select the USB drive from the sidebar, and click the "Erase" button. Choose ExFAT for compatibility with both Mac and Windows, or APFS/Mac OS Extended for Mac-only use. Confirm the action by clicking "Erase" after ensuring you have backed up any needed files.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More