USB Drive Not Showing Files on Windows and Mac: Causes, Fixes & Data Recovery
Summary: A USB drive not showing files is not necessarily a sign of data loss. When the storage indicator still shows used space, the files are physically present on the drive. What has failed is the operating system’s ability to read them, not the data itself.
This guide covers the most common causes, including hidden file attributes, malware, file system corruption, compatibility issues, and hardware faults, along with the correct fixes for Windows and macOS, what to avoid before troubleshooting, and when professional USB data recovery is the more reliable option. Where software cannot resolve the issue, Stellar’s experts can assess the drive and perform advanced recovery where possible.
Few things are as alarming as a USB drive not showing files and folders that were accessible only moments before. The drive is detected, the storage space appears occupied, yet nothing is accessible.
Several questions tend to follow.
- Has the data been permanently lost?
- Is the drive damaged?
- Could it be a software issue?
- Is the operating system at fault?
In most cases, the answer to all of these is no. When a drive appears empty, but the storage indicator shows used space, the files are physically present on the drive. What has failed is the operating system’s ability to read and display them, which is a distinct problem from data loss and, in most cases, a solvable one.
The causes vary considerably. Hidden file attributes, malware, file system corruption, compatibility issues, and hardware faults can all produce the same result while requiring entirely different solutions. Identifying the correct cause before attempting any fix is therefore essential.
This guide covers each cause in detail, the correct fixes for Windows and macOS, and when handing the drive to a professional is the more reliable decision.
Why Is a USB Drive Not Showing Files?
Not every case of a USB drive appearing empty has the same explanation. There are several distinct causes, and the correct fix depends entirely on which one applies. Attempting a solution without identifying the problem first is where most people go wrong.
- Malware: Malware is one of the more frequently overlooked causes of a USB drive appearing empty. Most virus attacks do not wipe the contents of a drive. They alter file attributes, making files invisible without removing them. The data remains on the drive but cannot be accessed through normal means.
- Corrupted File System: A corrupt file system can result from an unexpected connection loss, a power failure in the middle of a process, or an incomplete write. In the event of corruption, the operating system fails to recognise everything on the hard drive. In some cases, the hard drive appears empty. There could be a format warning message from Windows, or it could be listed as RAW.
- Incompatible File Systems: The incompatibility between different file systems in how they operate across various operating systems is more common than people think. While reading from a drive formatted using NTFS is not a problem for the Mac system, writing data to such a drive is another thing entirely. exFAT should be considered if you use your drives interchangeably between Mac and Windows.
- Hardware Defects and Counterfeit Drives: Hardware defects and counterfeit drives are less common but considerably more difficult to resolve. A damaged controller, faulty memory chips, or a drive sold with inflated storage figures can all render files inaccessible. Counterfeit drives present a particular challenge because data written beyond the drive’s actual capacity cannot be recovered through software.
When DIY Fixes Are Not Enough
Some of the causes above, such as hidden file attributes or a drive listed as RAW, can sometimes be resolved without specialised tools. Others, particularly hardware defects, counterfeit drives, or deeper file system corruption, are far riskier to fix without professional help, since an incorrect attempt can permanently destroy data that would otherwise have been recoverable. In these situations, pen drive recovery from a qualified data recovery service is the safer path, since the cause is identified before any fix is attempted.
What to Avoid Before Attempting Any Fix
The most intuitive actions at this stage are often the most damaging. Before doing anything else, avoid the following.
- Do not attempt to format the drive. Formatting may appear to be a sensible first step, but it overwrites the file system structure that records where each file is located, and once that information is gone, recovery becomes significantly challenging.
- Do not use third-party software without understanding the problem. Some tools write to the drive without making this clear, which can permanently overwrite recoverable data. Identify the cause before applying any fix.
- Do not continue using the drive. Every new write operation puts recoverable files at risk. Stop using the drive entirely until the problem is identified and resolved.
- Do not attempt multiple fixes in quick succession. Repeated recovery attempts without proper knowledge compound the damage each time. One method, assessed carefully, is better than several applied without a clear diagnosis.
Preliminary Check: Rule Out the Basics First
Before moving to operating system tools, three quick checks can save considerable time.
- Is the port the problem or the drive? Try the USB drive in a different port on the same computer. Ports wear out and can deliver insufficient power, causing inconsistent behaviour. If the drive is connected through a USB hub, remove the hub and connect directly to the machine, as some hubs do not supply enough power for the drive identification process.
- Is the drive being detected at all? A drive showing 0 bytes or failing to register on the computer should be tested on a different machine to determine whether the fault lies with the drive or the system.
- Is there physical damage to the drive? Check for any bends or cracks on the drive. Are there any other visible problems with it? If there are signs of physical damage, stop troubleshooting immediately to prevent further harm.
If the files remain inaccessible after these checks, the problem is logical; move on to the diagnostic steps below.
How to Fix a USB Drive Not Showing Files on Windows
When dealing with ‘files in a USB drive not showing’, Windows includes built-in tools that can identify and resolve logical issues without the need for specialised software. Work through each method in order and stop once the files become visible.
1. Connect the Drive to a Different PC
Before attempting any software fix, establish whether the issue lies with the drive or the computer. Connect the drive to another Windows PC. If the files are visible on that machine, the problem is with the first computer’s drivers or configuration. If the problem persists, the fault lies with the drive.
2. Check Whether the Drive Has a Letter Assigned
If Windows detects the USB drive but it does not appear in File Explorer, the drive may not have a letter assigned.
- Press Windows + X and select Disk Management.
- Locate the USB drive in the list of volumes.
- Right-click the volume and select Change Drive Letter and Paths.
- Click Add or Change, assign an available drive letter, and click OK.
Reopen File Explorer and check whether the files are visible.
3. Run the Attrib Command
What if the File Explorer toggle does not work? When standard visibility settings fail, the Attrib command in Command Prompt is more effective. The Shortcut virus sets the Hidden, Read-only, and System attributes on every file and folder. Windows hides items with the System attribute by default, even when Show Hidden Files is enabled. The Attrib command removes all three attributes at once.
- Press Windows + S, type cmd, and select Run as administrator.
- Type the following command, replacing X with your USB drive letter, and press Enter: attrib -h -r -s /s /d X:\*.*
| Flag | Function |
|---|---|
| -h | Removes the hidden attribute |
| -r | Removes the read-only attribute |
| -s | Removes the system attribute |
| /s | Applies the change to all files in all subdirectories |
| /d | Applies the change to folders as well as files |
Open the drive in File Explorer once the command completes.
4. Scan for and Remove Malware
Virus infections rank among the most reported causes of USB drives appearing empty while storage space remains in use. Many malware variants do not delete files. They change file attributes to hide them, which is why antivirus scanning matters even after the Attrib command restores visibility. Clearing the hidden attributes is one part of the fix. Removing the infection is the other. Until that is done, the drive is not safe to use.
If shortcuts keep returning after deletion, the host machine is still compromised. The virus tends to reside in the Windows Registry or the Startup folder and reinfects any USB drive connected to that computer.
Open Windows Security and navigate to Virus and Threat Protection. With the USB drive connected, run a full scan. Once complete, check Protection History and restore any files that were incorrectly flagged.
5. Check Device Manager for Errors
Open Device Manager and look for warning symbols next to the USB drive or USB controllers. A yellow warning icon may indicate a driver conflict, hardware problem, or device communication error. If a warning symbol is present, right-click the device and review its status under Properties for more information about the error. Driver conflicts and device errors can sometimes prevent a USB drive from displaying files correctly.
6. Update the USB Drivers
An outdated or corrupted driver can prevent the drive from displaying files correctly.
- Right-click the Start button and select Device Manager.
- Expand Disk Drives and locate the USB drive.
- Right-click it and select Update Driver.
- Select Search automatically for drivers and allow Windows to complete the update.
- Reconnect the drive once the update is applied.
7. Check and Repair USB Errors
Bad sectors or file system errors can prevent files from displaying. Windows includes a built-in error checking tool that can identify and address these issues.
- Press Win + E to open File Explorer.
- Under This PC, right-click the USB drive and select Properties.
- Go to the Tools tab and click Check under Error Checking.
- Allow the process to complete, then reopen the drive and check whether the files are visible.
How to Fix a USB Drive Not Showing Files on Mac
macOS offers three methods that address the same underlying causes covered above.
1. Connect the Drive to a Different Mac
Similarly, on macOS, the initial task is to ensure it is not a system-level issue. Attach the disk to another computer running macOS. If the contents are displayed on this machine, then the problem is with the first computer. Otherwise, the problem lies with the disk.
2. Reveal Hidden Files Using a Keyboard Shortcut
Hidden files do not appear in Finder by default, but a simple keyboard shortcut brings them into view without changing any system settings.
- Open Finder from the Dock.
- Navigate to the USB drive in the sidebar under Locations.
- Hold Command + Shift + . (full stop) simultaneously.
Hidden files and folders will become visible. The same shortcut toggles them off again.
3. Run First Aid in Disk Utility
File system errors and bad sectors can prevent the drive’s contents from displaying correctly. First Aid is macOS’s built-in repair tool for these issues. Do not run it if the drive shows any signs of physical damage, as the full-volume scan places additional stress on compromised components and can cause a complete failure.
- Open Finder, navigate to Utilities, and open Disk Utility.
- Click View, then Show All Devices.
- Select the USB drive in the sidebar, then click First Aid.
- Click Run on the confirmation dialogue.
Once complete, close Disk Utility and check whether the files are now accessible.
Note: First Aid can occasionally result in data loss when file system damage is severe. Back up the drive beforehand wherever possible.
Windows vs Mac: Troubleshooting at a Glance
The right fix depends on both the cause and the operating system. Use the table below to match your situation to the correct approach.
| Problem | Windows Fix | Mac Fix |
|---|---|---|
| Hidden files | File Explorer > View > Hidden items | Command + Shift + . in Finder |
| Malware or system-level hidden attributes | Attrib command in CMD + Windows Security scan | Malware scan; no direct system-attribute command available |
| File system errors or bad sectors | Error Checking via Drive Properties | First Aid in Disk Utility |
| Driver or detection issue | Check Device Manager for errors / Update driver | Connect to a different Mac |
| File system incompatibility | Reformat to exFAT after backing up data | Reformat to exFAT after backing up data |
| Physical damage | Stop troubleshooting; contact a professional | Stop troubleshooting; contact a professional |
Wrapping Up: What to Take Away From This Guide
A USB drive that refuses to show its files is not necessarily a lost cause. In most instances, the cause is logical, ranging from hidden file attributes and file system corruption to a malware infection, and can be addressed by working through each possibility in a structured manner.
Software-based solutions fall short when the problem goes beyond logic. A physically damaged drive, one that goes unrecognised across multiple computers, or a drive sourced from an unreliable vendor requires more than a troubleshooting checklist. Professional data recovery is the only dependable route forward in such cases.
Still Not Fixed? Here Is When to Call a Professional
Troubleshooting can resolve a USB drive not showing files and folders in many cases, but there are exceptions. When the drive is not recognised or will not mount on several computers, the problem is more likely hardware-related than software-related. Controller chip failure, degraded NAND memory, and connector damage require hands-on work by trained engineers in a controlled environment.
Counterfeit drives are a separate case entirely. If the drive was purchased from an unverified source, the files may never have been written to functional memory at all, making standard troubleshooting irrelevant from the start.
Specialists at Stellar Data Recovery begin by inspecting the drive, then rebuild the file structure wherever data can be recovered, and provide a verified directory listing for client approval before any data is delivered. The entire process follows four clear steps: a free consultation, media inspection, data recovery and verification, and secure delivery of the recovered data.
Stellar Data Recovery has helped more than 3 million customers across India recover their data, including thousands of cases involving USB drives. Even when a USB drive shows no trace of the lost files, our experts can often retrieve them using specialised techniques that ordinary software cannot match. Call 1800 102 3232 or visit stellarinfo.co.in for a free consultation.
USB drives are not the only devices prone to this kind of failure. The articles below examine how similar problems show up across other types of flash storage, along with the methods that resolve each one.
Frequently Asked Questions
1. How Do I Repair My Flash Drive If It Is Undetected?
Start with a different port on the same computer. If that doesn’t help, plug it into another computer and see what happens. Windows troubleshooting utilities are best avoided here as they write to the drive and can take recoverable data with them. If none of that makes a difference, a professional data recovery service is the most sensible next step.
2. How Do I Fix a Corrupted File System on a USB Drive?
A corrupted file system should be sent for professional repair. Some tools can fix minor errors, but most cases of corruption are far more severe and require professional assistance.
3. Why Are the Files on My USB Drive Showing as Shortcuts?
This is due to a virus called the Shortcut virus. The virus conceals the original files by replacing them with shortcuts. Avoid opening these shortcuts. Seek help from a professional data recovery service.
4. Why Did My USB Drive Suddenly Turn RAW?
A drive showing as RAW means the operating system cannot identify a recognised file system on it, which often results in a USB drive not showing files and folders even though the storage space still appears used. This typically happens due to improper ejection, malware, a power surge, or bad sectors. Do not format the drive before seeking professional advice.
5. Can a Counterfeit USB Drive Cause Files to Disappear?
Yes. Counterfeit drives report a higher storage capacity than they physically have. Once the true limit is reached, files written beyond that point are lost or corrupted. If the drive came from an unverified source, counterfeit hardware should be considered as a possible cause.
6. How Do I Contact Stellar Data Recovery?
Call 1800 102 3232 for a free consultation. Support is available Monday to Friday between 9 AM and 6 PM, and Saturday between 10 AM and 5 PM. Stellar also offers free media pickup through a logistics partner, with collection within two to three business days. Walk-in visits are welcome at service centres across all major cities in India.