DiskMend

Updated 2026-11-15 · 4 min read

USB drive files not showing but space is used? How to get them back

Your USB flash drive shows used space but no files, or only shortcuts? The files are usually hidden, not deleted. Unhide them safely on Windows, and recover them if they are really gone.

You open your USB stick and the folder is empty — yet Properties says several gigabytes are used. Or you see only shortcut icons with the drive’s name. In most cases the files are still there, just hidden, often by a so-called shortcut virus.

This guide shows how to tell whether the files are hidden or really gone, how to make them visible again, and what to do when they are not on the drive any more.

Hidden or deleted? Check the used space

Right-click the drive in File Explorer › Properties. If Used space is roughly the size of your missing files, the files are still on the drive and only invisible. If used space is almost zero, the files were deleted or the drive’s file table was damaged, and they need to be recovered.

Show hidden files in File Explorer

In Windows 11 choose View › Show › Hidden items; in Windows 10 tick View › Hidden items. To also see protected system files, open Folder Options › View and clear “Hide protected operating system files”. If faded folders appear, the files were hidden.

Remove the hidden attribute with attrib

Malware often sets both the hidden and the system attribute, and Explorer’s checkbox cannot clear them. Open Command Prompt and run the command below, replacing E: with your USB drive’s letter:

attrib -h -r -s /s /d E:\*.*

The command removes the hidden, read-only and system flags from all files and folders on the drive. It does not delete anything. Afterwards, delete the leftover .lnk shortcut files and any unknown .exe, .vbs or autorun.inf files at the top of the drive, then scan the drive and the computer with Microsoft Defender.

If the files are not there at all

When the used space is near zero, or attrib finds nothing, the files were deleted — some viruses do this — or the file table is damaged. Stop copying anything to the drive and scan it with recovery software.

DiskMend reads the drive’s file system directly, so it lists hidden and system files as well as deleted ones, and searches the free space by content for files whose records are gone.

Step by step

  1. 1

    Check used space

    Right-click the drive › Properties and compare used space with your files.

  2. 2

    Show hidden items

    Turn on hidden items in File Explorer’s View menu.

  3. 3

    Run attrib

    In Command Prompt run attrib -h -r -s /s /d E:\*.* with your drive letter.

  4. 4

    Remove the malware leftovers

    Delete .lnk shortcuts and unknown .exe, .vbs or autorun.inf files from the drive’s root.

  5. 5

    Scan with antivirus

    Run Microsoft Defender on the USB drive and the computer.

  6. 6

    Recover if still missing

    If the files were deleted, scan the drive with recovery software and save them elsewhere.

Symptoms and what they mean
What you seeLikely causeFix
Empty drive, used space highFiles hiddenShow hidden items / attrib
Only shortcuts with the drive nameShortcut virusattrib + antivirus scan
Empty drive, used space near zeroFiles deletedRecovery software
Windows asks to format the driveFile system damaged (RAW)Recover first, then format
Folders show but files are 0 bytesFile table damagedRecovery software

Frequently asked questions

Why are my USB files not showing even though space is used?+

The files most likely have the hidden and system attributes, often set by a shortcut virus. They are still on the drive.

Is the attrib command safe?+

Yes. attrib only changes file attributes; it does not delete or modify file contents.

How do I remove a shortcut virus from a USB drive?+

Unhide the files with attrib, delete the .lnk shortcuts and unknown executables from the drive root, and run a full antivirus scan on the drive and the PC.

What if attrib does not bring the files back?+

Then the files were deleted or the file table is damaged. Use recovery software before writing anything to the drive.

Can DiskMend find hidden files?+

Yes. It reads the file system directly and lists files regardless of the hidden attribute, together with deleted files.

Guides

More guides

Guides →