TechBuzzPro

Fix File System Error -21474 in Windows 10 Photos

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This error code typically indicates a corrupted database or file system issue within the Windows 10 Photos app, preventing images from loading or syncing. The most effective solution involves resetting the app’s cache and repairing system files using built-in Windows tools. No additional software is required.

What You'll Need

  • A Windows 10 PC with administrator privileges
  • Access to Command Prompt (Admin)
  • The Settings app

Step-by-Step

  1. Reset the Photos App Cache: Press Win + R to open the Run dialog. Type wsreset.exe and press Enter. A black command window will appear briefly while it clears the cache. Once it disappears, try opening the Photos app again. This often resolves temporary glitches without deleting your photos.
  2. Repair the Photos App: Open Settings > Apps > Apps & features. Scroll down to find Photos in the list. Click on it and select Advanced options. Under the Reset section, click the Repair button. This fixes corrupted app files without removing your data. If Repair fails, use the Reset button, but note this may sign you out of linked accounts.
  3. Run System File Checker (SFC): Right-click the Start button and select Windows PowerShell (Admin) or Command Prompt (Admin). Type sfc /scannow and press Enter. This scans for and repairs corrupted Windows system files that might be causing the error. Wait for the process to complete (it may take 10-15 minutes) and restart your computer.
  4. Check Disk for Errors: In the same Admin command window, type chkdsk C: /f (replace C: if your Windows is installed on a different drive) and press Enter. If prompted to schedule the check on restart, type Y and restart your PC. This checks the file system structure for logical errors.
  5. Update Windows and Drivers: Go to Settings > Update & Security > Windows Update and check for updates. Also, ensure your graphics drivers are up to date via Device Manager, as outdated drivers can sometimes cause rendering errors in the Photos app.

Common Mistakes

Many users immediately assume their hard drive is failing when seeing this error. While possible, it is far more likely to be a software corruption issue. Another common mistake is skipping the wsreset.exe step, which is the quickest fix for cache-related photo loading failures. Additionally, forcing a full reset of the Photos app before trying Repair can lead to unnecessary re-signing into cloud services.

Tips

If the Photos app continues to fail after these steps, consider using the legacy Windows Photo Viewer or third-party viewers like IrfanView for immediate access to your files. Always back up your photo library to an external drive or cloud service before performing deep system repairs. Keep your Windows version updated, as Microsoft frequently patches bugs in the Photos app through cumulative updates.

Troubleshooting

If the error persists after following all steps above, the issue may lie with specific image files rather than the app itself. Try moving a few photos to a new folder to see if the error follows them. If it does, those specific files may be corrupted. You can also try reinstalling the Photos app by uninstalling it via PowerShell (Get-AppxPackage *Microsoft.Windows.Photos* | Remove-AppxPackage) and then reinstalling it from the Microsoft Store. If the problem occurs across multiple user accounts, it is likely a system-level issue requiring a Windows Reset or repair install.

Frequently Asked Questions

Does resetting the Photos app delete my pictures?

No, resetting the app only clears its local cache and settings. Your actual photo files stored on your hard drive remain untouched. However, linked cloud account credentials may need to be re-entered.

Is error -21474 critical for my hard drive health?

Not necessarily. While it can indicate file system corruption, it is most commonly caused by app-specific database errors. Running chkdsk helps verify disk health, but the error itself is often software-related.

Why does the Photos app crash immediately upon opening?

This is usually due to a corrupted thumbnail cache or a conflict with a recently installed update. Running wsreset.exe or clearing the cache manually via Settings > Apps > Advanced Options typically resolves this.

Can I use Command Prompt to fix this without admin rights?

No. Tools like sfc /scannow and chkdsk require administrative privileges to modify system files and disk structures. You must run them from an elevated command prompt.

What if I don't have the Photos app anymore?

If the app was accidentally removed, you can reinstall it for free from the Microsoft Store by searching for "Microsoft Photos." Ensure you are signed in with your Microsoft account to sync any cloud-backed photos.