When a drive or folder appears empty despite showing gigabytes of space used, one of three things happened: files are hidden by malware or a system attribute change, the file system directory is corrupted, or the operating system is caching an outdated view.
Part 1. Show Hidden Files on Windows
Via File Explorer:
- Open File Explorer → Click View → Show → Hidden Items
- Navigate to the drive — hidden files and folders should now appear
Via Command Prompt (more reliable, removes hidden attribute):
attrib -h -r -s /s /d E:\*.*
(Replace E: with your drive letter)
This removes hidden, read-only, and system attributes from all files and folders, making them visible again without deleting them.
⚠️ Important: If files reappear after running the attrib command, your drive was likely affected by malware that hides files. Run an antivirus scan immediately after recovering visibility — some malware continues hiding files each time the drive is connected.
Part 2. Show Hidden Files on Mac
- Open Finder and navigate to the drive
- Press Command + Shift + . (dot key)
- Hidden files and folders toggle visible
Alternatively in Terminal:
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
Part 3. Refresh the Windows View
Sometimes File Explorer shows a cached empty view while files exist:
- Press F5 to refresh the current view
- Close and reopen File Explorer
- Disconnect and reconnect the drive
💡 Tip: If files appear after refreshing, the issue was a display cache bug — no data was at risk. This is common with large drives or slow USB connections that haven't fully loaded the directory listing.
Part 4. Run CHKDSK to Repair Directory Corruption
If files are still invisible after showing hidden items:
chkdsk E: /f /r
A corrupted directory can make files invisible even though they occupy space. CHKDSK repairs the directory entries and restores file visibility.
🗣️ r/techsupport user: "External drive showed 400 GB used but was completely empty in Explorer. Ran
attrib -h -r -s /s /dand 400 GB of files appeared instantly. Malware had hidden everything."
🗣️ r/datarecovery guidance: "Used space but no files usually means hidden files 90% of the time. The attrib command is the fastest fix. If that doesn't work, CHKDSK next. Only use recovery software if both fail."
Part 5. Recover Files With Ritridata If Directory Is Corrupted
If hidden file fixes and CHKDSK do not restore file visibility, Ritridata can scan the drive sectors and recover files directly — bypassing the corrupted directory that makes them invisible.
Step 1 — Connect the drive and select it from the list
Step 2 — Run a deep scan — reads sectors directly, bypasses corrupted directory
Step 3 — Preview and recover files to a healthy drive
FAQ
Why does my drive show space used but appear empty? Most commonly: files are hidden (by malware or a system attribute). Less commonly: the file system directory is corrupted, making files invisible despite occupying space. The attrib command (Windows) or Cmd+Shift+. (Mac) reveals hidden files immediately.
How do I unhide all files on an external drive? In Windows Command Prompt (Admin): attrib -h -r -s /s /d E:\*.* — this removes hidden attributes from all files on the drive. On Mac: navigate to the drive in Finder and press Cmd+Shift+.
Can malware hide files on an external drive? Yes — certain malware (particularly spread via USB drives on shared computers) hides files and creates shortcuts that look like folders. The actual files remain but are set to system-hidden. After revealing them with attrib, run an antivirus scan.
If I format the drive, will it fix the empty folder problem? Formatting rebuilds the file system but marks all existing file space as available — your files would become harder to recover. Use the attrib command and CHKDSK first. Format only as a last resort after recovering files.
