keepcalculator

06 Numbers and Powers

SD Card Photos Not Showing in Gallery? Fixes That Work

Card No. 06·61984 · Updated · Standard formula, shown below

If your SD card photos are not showing in the gallery app on your Android phone, the problem is usually a temporary file indexing glitch, a corrupted cache, or the card being mounted in a way the gallery isn’t scanning. In most cases, you can fix it in under five minutes by clearing the gallery app’s cache, forcing a media rescan, or safely remounting the SD card. Below are the exact steps to try, from simplest to most involved, along with why each one works.

Why Photos Disappear From the Gallery

Android’s gallery apps don’t actually “look” at your SD card every time you open them. Instead, they rely on a system service called the MediaStore, which scans storage devices and builds a database of file locations and thumbnails. When you insert an SD card, take a photo, or move files around, the MediaStore is supposed to update itself. If that update fails or gets interrupted, the gallery shows only what it already knows about—and your newest photos stay invisible even though they exist on the card.

Common triggers for this indexing failure include:

  • Removing the SD card while the phone is on (without unmounting first)
  • Using a card formatted with a filesystem the phone reads but doesn’t fully index (e.g., exFAT on older devices)
  • A gallery app that has cached a “snapshot” of the media list and hasn’t refreshed
  • Corrupted thumbnail files or a partially written image (often after a crash during saving)
  • Files placed in folders the gallery is set to ignore (e.g., folders with a .nomedia file)

Understanding this background helps you pick the right fix: clearing the cache forces a refresh, remounting triggers a rescan, and checking for .nomedia files addresses a deliberate hiding mechanism.

Fix 1: Restart Your Phone (The 30-Second Try)

A simple reboot often resolves the issue because it forces Android to re-mount the SD card and rescan the MediaStore from scratch. This is the first thing to try because it’s free, fast, and has no side effects.

  1. Press and hold the power button.
  2. Tap “Restart” (or “Reboot”).
  3. Wait for the phone to fully boot up, then open the gallery.

If the photos still don’t appear, move to the next fix. Rebooting also clears temporary system glitches that can interfere with the media scanner.

Fix 2: Unmount and Remount the SD Card

If a reboot doesn’t work, the card may be in a “half-mounted” state—the phone knows it’s there but the gallery isn’t scanning it properly. Unmounting and remounting forces a fresh scan.

  1. Go to Settings → Storage (or “Storage & USB” on some devices).
  2. Tap your SD card name.
  3. Tap the three-dot menu (⋮) and select Unmount (or “Eject”).
  4. Wait 10 seconds, then tap Mount (or “Insert SD card”).
  5. Open the gallery and wait a minute for the scan to finish.

This is different from just pulling the card out—unmounting tells the OS to safely close all file handles and update the media database. If the phone shows “SD card unexpectedly removed” errors, this fix is especially relevant.

Fix 3: Clear the Gallery App’s Cache and Data

Sometimes the gallery app itself is the problem. Its cache stores thumbnails and folder lists, and if that cache becomes corrupted, the app may refuse to show new files even after a rescan.

  1. Go to Settings → Apps (or “Application Manager”).
  2. Find your gallery app (e.g., “Gallery,” “Photos,” or the manufacturer’s app).
  3. Tap Storage (or “Storage & cache”).
  4. Tap Clear Cache first. If that doesn’t help, tap Clear Storage (or “Clear Data”).

Warning: Clearing data will reset any app settings, like which folders are hidden or your preferred sort order, but it will not delete your photos. Your actual image files are safe on the SD card.

Fix 4: Check for a .nomedia File

Android respects a special file named .nomedia in any folder. If that file exists, the media scanner skips the entire folder and its subfolders. This is often used by apps to hide their own images (like WhatsApp stickers), but it can also be placed accidentally or by a file manager.

  1. Open a file manager app (like “Files” or “My Files”).
  2. Navigate to the SD card and look for any folder that contains your missing photos.
  3. Enable “Show hidden files” in the file manager’s settings (usually a three-dot menu).
  4. If you see a file named .nomedia, delete it.
  5. Restart your phone or run a media rescan (see Fix 5).

Be careful: some apps create .nomedia files to keep their own images private. Deleting it might make those images appear in your gallery, which is usually harmless but can be unexpected.

Fix 5: Force a Media Rescan

If the MediaStore is still not picking up new files, you can force it to rescan using a third-party app or a hidden developer command. The easiest method is to install a free “Media Rescan” app from the Play Store—these simply trigger the system’s scan intent. Alternatively, you can use a hidden trick:

  1. Open your phone’s Dialer app.
  2. Dial *#*#197328640#*#* (this is a common service code, but it doesn’t work on all devices—if nothing happens, skip to the app method).
  3. If a service menu opens, navigate to Media → Rescan.

Since the service code method is unreliable across manufacturers, the app method is more consistent. After running a rescan, wait 30–60 seconds and check the gallery.

Fix 6: Move Photos to Internal Storage (and Back)

If the photos are important and none of the above worked, you can force the gallery to see them by moving them to internal storage and then back to the SD card. This rewrites the file metadata and triggers a fresh scan.

  1. Use a file manager to cut (not copy) the missing photos from the SD card.
  2. Paste them into a folder on internal storage (e.g., Internal Storage/DCIM).
  3. Open the gallery—the photos should now appear.
  4. If they do, move them back to the SD card (cut and paste again).

This fix works because the act of writing a new file to internal storage forces the MediaStore to index it immediately, and copying back to the SD card does the same. It’s a bit tedious but very reliable.

When the SD Card Itself Is the Problem

If none of the software fixes work, the card may be failing or corrupted. Symptoms include:

  • Photos appear as gray boxes or “unsupported” icons
  • Other files on the card also disappear
  • The phone randomly says “SD card not recognized”

In this case, back up whatever you can to a computer using a card reader. Then try formatting the card in the phone (Settings → Storage → SD card → Format). Formatting erases everything, so only do this after you’ve backed up. If the card still fails after formatting, it’s likely physically damaged and needs replacement. For future prevention, always unmount the card before removing it, and avoid filling it to 100% capacity—a nearly full card is more prone to corruption.

Frequently Asked Questions

Why do my photos show in a file manager but not in the gallery?

This means the files exist but the MediaStore hasn’t indexed them. The gallery only shows what the system’s media database knows about. Try clearing the gallery’s cache, unmounting/remounting the SD card, or using a media rescan app.

Will clearing gallery data delete my photos?

No. Clearing the gallery app’s data only resets its settings and cache (like which folders are hidden). Your actual photo files remain untouched on the SD card or internal storage.

Can a .nomedia file hide photos on the SD card?

Yes. Any folder containing a file named .nomedia is ignored by Android’s media scanner. Delete that file (using a file manager with hidden files shown) and rescan to make the photos visible again.

Why do photos taken with the camera app not appear, but old ones do?

This usually points to a failed media scan after taking a new photo. The camera writes the file, but the MediaStore doesn’t get notified. Restarting the phone or remounting the SD card typically fixes it.

Is it safe to format the SD card to fix the issue?

Formatting will erase all data on the card, so it’s only safe if you’ve backed up everything you need. It’s a last resort after trying cache clearing, remounting, and rescanning. If formatting doesn’t fix the problem, the card is likely failing.

Does the card’s format (FAT32 vs exFAT) affect gallery visibility?

Yes. Most Android phones support both, but exFAT is better for cards larger than 32GB. If the card is in a format the phone doesn’t fully support (like NTFS), it might not be indexed properly. Reformatting to exFAT or FAT32 in the phone itself usually resolves this, but again, back up first.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →