USB Drive Not Showing Files and Folders: Fix It
In this article
Yes, a USB drive that appears empty can often be made visible again by checking hidden attributes, correcting the file system, or adjusting Explorer settings.
What You'll Need
- A USB flash drive that is not displaying files or folders
- A Windows PC (or laptop) with administrative rights
- Another computer (optional, for testing the drive)
- Basic knowledge of Windows File Explorer and Disk Management
Step-by-Step
- Reconnect the drive. Safely eject the USB stick, unplug it, then plug it back into a different USB port. A fresh connection can reset the device’s enumeration.
- Check Device Manager. Open
Device Manager(right‑click Start > Device Manager). Expand "Disk drives" and look for any yellow warning icons next to your USB device. If you see one, right‑click and choose "Update driver" or "Uninstall device" then scan for hardware changes. - Open Disk Management. Press Win + X and select "Disk Management". Verify that the USB drive shows a healthy partition and a drive letter. If the partition is listed as "RAW" or has no drive letter, right‑click the volume and choose "Change Drive Letter and Paths…" to assign a letter, or use "Format" if the file system is corrupted (note: formatting erases data).
- Show hidden files and folders. In File Explorer, click the "View" tab, then check "Hidden items". Also click "Options" > "Change folder and search options" > "View" tab and ensure "Show hidden files, folders, and drives" is selected and "Hide protected operating system files" is unchecked. Click OK.
- Remove the hidden attribute via Command Prompt. Open Command Prompt as administrator and run:
attrib -h -s /d /s X:\*.*
ReplaceX:with the drive letter of your USB stick. This command clears hidden (-h) and system (-s) attributes from all files and folders. - Run a quick check for file system errors. In File Explorer, right‑click the USB drive, choose "Properties" > "Tools" > "Check" under "Error checking". Let Windows scan and automatically fix any detected issues.
- Test the drive on another computer. Plug the USB stick into a different Windows machine. If files appear there, the issue is likely a local Explorer setting on the first PC.
- Disable selective sync software. If you use cloud sync tools (OneDrive, Dropbox, Google Drive) that may hide files while syncing, pause the sync and refresh the drive.
- Check for encryption. Right‑click the drive, select "Properties" > "General" tab, then click "Advanced". If "Encrypt contents to secure data" is checked, you may need to log in with the original user account or use the BitLocker recovery key.
- Use a data‑recovery utility as a last resort. Programs such as Recuva or PhotoRec can scan the raw sectors of the drive and list recoverable files. Run the tool, select the USB drive, and follow the on‑screen instructions. This does not modify the drive unless you choose to restore files.
- Consider reformatting. If none of the above restores visibility and you have a backup of the data, right‑click the drive in Disk Management and choose "Format". Choose NTFS for Windows‑only use or exFAT for cross‑platform compatibility.
- Safely eject and re‑test. After any change, use the "Safely Remove Hardware" icon in the system tray, unplug, then plug the drive back in to confirm that files are now visible.
Common Mistakes
Skipping the hidden‑files view is a frequent oversight; many users assume the drive is empty when Windows is simply hiding system files. Another mistake is reformatting the drive before confirming that data can be recovered, which permanently erases everything. Finally, assigning a new drive letter without checking the file system can mask a corrupted partition, leading to repeated “empty” appearances.
Tips
- Always use the "Safely Remove Hardware" option to avoid corruption.
- Keep a backup of important USB data on a separate drive or cloud service.
- If the drive works on another PC, export the registry key
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hiddento replicate the hidden‑files setting. - When using the
attribcommand, include the/dswitch to affect directories as well as files. - For drives larger than 32 GB, prefer exFAT to avoid the 4 GB file‑size limit of FAT32.
Troubleshooting
If the steps above do not bring your files back, follow this escalation path:
- Power‑cycle the computer. A full reboot clears any lingering driver caches.
- Update Windows. Go to Settings > Update & Security > Windows Update and install any pending updates, especially those related to USB or storage drivers.
- Check BIOS/UEFI USB settings. Some systems have "Legacy USB Support" toggles that affect how drives are enumerated.
- Run a hardware diagnostic. Many PC manufacturers provide a built‑in diagnostic tool (e.g., Dell SupportAssist, HP PC Hardware Diagnostics). Use it to test the USB ports.
- Inspect the drive for physical damage. Bent connectors or a cracked casing can cause intermittent communication, resulting in invisible files.
- Use a Linux live USB. Boot a Linux distribution (Ubuntu, Mint) from a separate USB stick and mount the problematic drive. If Linux shows the files, the issue is definitely Windows‑specific.
- Contact the manufacturer. If the drive is still under warranty, request a replacement after confirming that data recovery attempts have not succeeded.
Frequently Asked Questions
Why does my USB drive show up but appear empty?
Windows may be hiding files that have the hidden or system attribute, or the drive’s file system could be corrupted, causing Explorer to misread the directory structure.
Can I recover files without reformatting?
Yes. Using attrib to clear hidden attributes, running the built‑in error‑checking tool, or employing a third‑party recovery program can retrieve data without a format.
Is the "RAW" file system fixable?
If Disk Management shows the partition as RAW, the file system header is damaged. Running chkdsk X: /f may repair it; otherwise a data‑recovery utility is needed before you reformat.
Will disabling BitLocker affect my hidden files?
BitLocker encryption hides files from users who lack the correct key. Disabling or unlocking BitLocker with the proper password or recovery key will make the files visible again.
My Mac sees the files but Windows does not. What should I do?
Mac OS uses case‑sensitive HFS+ or APFS, which Windows cannot read natively. Re‑format the drive to exFAT or use third‑party software that enables HFS+ reading on Windows.
Is it safe to use the attrib command on a USB drive?
Yes, the command only changes file attributes and does not modify the actual data. It is a safe first‑line method for recovering hidden files.