Files may vanish from a flash drive, SD card, microSD card, camera card, or external reader because of hidden attributes, file system errors, malware, accidental deletion, unsafe removal, or physical memory wear. This guide explains how to diagnose the cause and recover your data without making the situation worse.
When files suddenly disappear, the first rule is simple: stop using the drive immediately. Do not copy new files to it, do not format it, and do not run aggressive repair tools before checking whether the files are only hidden or whether the file system is damaged.
Start with these safe checks:
Missing files do not always mean permanent data loss. The cause can be logical, software-related, or hardware-related. The table below helps you identify the most likely scenario.
| Symptom | Likely Cause | Best First Action |
|---|---|---|
| The drive looks empty, but used space is still shown. | Files are hidden, moved to a hidden folder, or affected by malware. | Enable hidden files and remove hidden/system attributes. |
| Windows asks to format the drive. | File system corruption, damaged partition table, or unsafe removal. | Do not format; use recovery software or create an image first. |
| Some files disappeared after copying or moving. | Interrupted transfer, bad sectors, counterfeit storage, or write errors. | Check the device health and recover missing files to another disk. |
| Photos disappeared from an SD card used in a camera or phone. | Deletion, formatting, camera database error, or card corruption. | Stop recording photos/videos and scan the card with recovery tools. |
| Files disappear again after restoring them. | Malware, failing memory cells, or a fake-capacity drive. | Scan for malware and test the real capacity of the device. |
One of the most common reasons is that the files are still present, but Windows does not show them. This can happen after malware activity, incorrect file attributes, or changes made by another operating system or device.
If folders are still invisible, open Command Prompt as administrator and run the following command. Replace E: with the actual drive letter of your USB drive or memory card.
This command removes the hidden, read-only, and system attributes from files and folders on the selected removable drive.
Some malware hides the original folders and creates fake shortcuts with similar names. Users may think the files disappeared, while the real data is still stored on the drive but marked as hidden or system-protected.
Recommended actions:
attrib command shown above to restore file visibility.Removing a USB drive or memory card while data is still being written can corrupt the file allocation table or directory structure. As a result, files may vanish, appear with strange names, become zero bytes in size, or move into folders such as FOUND.000.
You can check the drive for errors, but be careful: repair tools may change the file system and make some recovery attempts harder. If the files are important, create an image first or run data recovery software before repair.
For a removable drive with letter E:, the command is:
chkdsk as the first step when the missing files are very important. It can repair the file system, but it may also convert damaged file records into fragments that are harder to identify.
Files deleted from a USB flash drive or memory card usually do not go to the Windows Recycle Bin. They may disappear immediately from File Explorer, even though the file contents remain recoverable until new data overwrites them.
If you accidentally deleted files or formatted the card:
A quick format usually recreates file system structures without immediately wiping all file content. In many cases, photos, documents, videos, and archives can still be recovered. A full format, heavy reuse, or new video recording on the same card reduces the chance of successful recovery.
USB drives and memory cards use flash memory with a limited write lifespan. Cheap, old, overheated, or counterfeit devices may start losing data, switching to read-only mode, disconnecting randomly, or showing incorrect capacity.
Signs of hardware problems include:
If you suspect physical failure, copy the most important files first and replace the device. Do not trust a failing flash drive or memory card for backups, photos, documents, or installation media.
The safest recovery method depends on whether the files are hidden, deleted, corrupted, or located on a failing device.
Enable hidden items in File Explorer and run the attrib command if needed. If the files come back, copy them to another drive immediately.
Run a full antivirus scan of both the computer and the removable drive. Remove suspicious shortcut files, unknown executable files, and autorun-related entries.
If the files were deleted, formatted, or lost after file system corruption, scan the USB drive or memory card with data recovery software. Select a deep scan when normal scanning does not find the files.
Never restore files to the same flash drive or SD card during recovery. Use a different disk to avoid overwriting recoverable data.
After successful recovery, format the removable device. If errors return, replace it instead of continuing to use it.
Removable media is convenient, but it is not a reliable long-term storage location. Use these practices to reduce the risk of repeated data loss:
attrib -h -r -s /s /d command for the correct drive letter.
If files disappeared from a USB flash drive or memory card, do not rush to format it. First check whether the files are hidden, scan for malware, and avoid writing anything new to the device. If the files were deleted, formatted, or lost because of corruption, use recovery software and save the recovered data to another disk.
After recovery, treat the incident as a warning. A flash drive or memory card that repeatedly loses files should be replaced, not trusted with important data.