USB Drive Not Showing Files But Space Used – Fix Guide
In this article
If your USB drive shows used space but no visible files, the files are likely hidden, the drive is corrupted, or the file system is damaged. This guide helps you recover or access those files safely using built-in Windows tools.
What You'll Need
- A Windows PC (Windows 10 or 11)
- Your USB flash drive
- Administrator access on the PC
- No special tools required
Step-by-Step
- Check File Explorer settings for hidden files
Open File Explorer, click the View tab at the top, then check the Hidden items box. If files appear, right-click the USB drive in the left pane, select Properties, go to the General tab, and uncheck Hidden under Attributes if needed. Click Apply to make the change permanent. - Run Check Disk (chkdsk) to repair file system errors
Press Windows + R to open Run, typecmd, then press Ctrl + Shift + Enter to open Command Prompt as Administrator. In the prompt, typechkdsk X: /f /r(replace X with your USB drive letter), then press Enter. Type Y and press Enter if prompted to schedule the disk check on next restart. Safely eject the USB, unplug it, then plug it back in. The drive will be checked automatically before Windows loads. - Verify drive letter and path assignment
Press Windows + X and select Disk Management. Locate your USB drive in the list. If it shows as Unallocated or has no drive letter, right-click the partition and choose Change Drive Letter and Paths. Click Add, then assign an unused drive letter (e.g., Z). Click OK to save. - Scan for malware that may hide files
Open Windows Security (Settings > Privacy & Security > Windows Security), go to Virus & threat protection, then click Quick Scan. If threats are found, follow prompts to remove them. Some malware hides files by setting the hidden/attribute flag—re-running chkdsk after cleaning helps restore visibility. - Use Command Prompt to unhide files via attrib
In the same elevated Command Prompt, typeattrib -h -r -s X:\*.* /s /d(replace X with your drive letter), then press Enter. This removes hidden, read-only, and system attributes from all files and folders. Wait for the command to finish—do not interrupt it. - Check for file system corruption with DISM (if needed)
In the elevated Command Prompt, typeDISM /Image:X:\ /Cleanup-Image /RestoreHealth(replace X with your USB drive letter), then press Enter. Note: DISM is primarily for system images, but if your USB contains a recovery partition or was cloned incorrectly, this may help. If you see Error: 87, the command is not applicable—skip to step 7. - Try a different PC or USB port
Plug the drive into another USB port on the same PC, then try a different Windows PC entirely. If files appear on another device, the issue may be driver-related. On the original PC, open Device Manager (Windows + X > Device Manager), expand Disk drives, right-click your USB device, and select Uninstall device. Unplug the drive, wait 10 seconds, then reinsert it to reinstall drivers automatically.
Common Mistakes
- Skipping hidden file settings—many users assume files are gone when they’re simply hidden by default.
- Running chkdsk without /f and /r flags—these are essential to fix errors and recover bad sectors.
- Using third-party “unhider” tools that may overwrite data or lack integrity—stick to built-in Windows commands.
- Ejecting the drive improperly during chkdsk or attrib operations—this can worsen corruption.
- Formatting the drive prematurely—always attempt recovery steps before formatting, as it deletes all data.
Tips
- Back up files immediately after recovery—run a second copy to another drive or cloud storage to prevent repeat loss.
- Use Win+X > Device Manager regularly to check for yellow exclamation marks next to USB devices, indicating driver issues.
- Format the drive as NTFS (not FAT32) for larger files and better reliability, but only after recovering important data.
- Enable Quick Removal policy: in Device Manager, right-click USB device > Properties > Policies tab, then select Quick removal to reduce corruption risk.
- Run chkdsk X: /f monthly on frequently used USB drives to maintain health.
Troubleshooting
If files still do not appear after all steps:
- No files appear after attrib and chkdsk
Test the USB on a Mac or Linux machine—if files show there, the issue is Windows-specific (e.g., registry corruption). Try creating a new user profile in Windows and test again. - Drive shows 0 bytes used or 0 bytes free
This indicates severe corruption or hardware failure. Use Disk Management to verify size matches the drive. If not, the drive may be counterfeit or failing. Try diskpart to clean and reformat only as a last resort—this deletes all data. - USB works on some PCs but not others
Update USB drivers via Device Manager > Universal Serial Bus controllers > right-click each USB Root Hub > Update driver. Also try disabling USB selective suspend: Control Panel > Hardware and Sound > Power Options > Change plan settings > Change advanced power settings > USB settings > USB selective suspend setting > Disabled. - Recovery tools fail or crash
Use Recuva (from Piriform/CCleaner, official site only) in deep scan mode. Select Enable deep scan and choose the USB drive. It can recover files even if the file system is damaged.
Frequently Asked Questions
Why do files disappear from my USB drive but space stays used?
Files often become hidden due to malware, accidental attribute changes, or file system errors—not actual deletion. The space remains allocated until the file entries are overwritten.
Can I recover files after formatting the USB drive?
Possibly, but success depends on how much new data has been written since formatting. Use recovery tools like Recuva or Disk Drill immediately—do not save new files to the drive.
Is it safe to use attrib -h -r -s on my USB drive?
Yes, this only removes attributes that hide files; it does not delete data. Always verify the drive letter to avoid affecting your system drive.
Will chkdsk delete my files?
No—chkdsk /f repairs file system errors without deleting user data. chkdsk /r also checks for bad sectors and may recover readable data, but it will discard sectors that cannot be read.
Why does my USB show less free space than expected?
Hidden system files (like autorun.inf or desktop.ini) and file system overhead (clusters) consume space. Also, FAT32 reserves up to 5% for system use. Run attrib to unhide and review.
Can a virus hide files without deleting them?
Yes—malware often sets hidden + system attributes on files and creates fake folder shortcuts. Run a full Windows Security scan and use attrib to restore original files.