This article aims to provide a detailed explanation of an SD card showing only 2MB in size when accessed from a Raspberry Pi, Fedora laptop, or Windows PC. We will discuss the potential causes and offer solutions for each platform.
Overview
SD cards are widely used in single-board computers like the Raspberry Pi and other portable devices. Sometimes, an SD card may appear much smaller than its actual capacity when viewed on a different device.
Why is the SD Card Showing 2MB Size?
An SD card with a real capacity of several gigabytes may show only 2MB or a similar small size when the file system is corrupted, damaged, or not compatible with the device.
Compatibility Issues
Newer SD cards might not be compatible with older devices or operating systems. The host device may not fully support or recognize advanced features of the SD card, thus under-reporting its size.
Corrupted SD Card File System
Improper ejection or hardware failures can cause corruption in the SD card file system, which might result in incorrect capacity reporting.
Solutions for Raspberry Pi
To resolve the issue on the Raspberry Pi, you can try the following steps:
-
Upgrade the Raspberry Pi's operating system by running the following commands:
sudo apt update sudo apt full-upgrade -
Format the SD card using the Raspberry Pi's built-in formatting tool or another compatible tool.
Solutions for Fedora Laptop
On a Fedora laptop, the following steps can help resolve the issue:
-
Check if a newer Linux kernel update is available. After updating, the SD card's file system might be recognized correctly.
sudo dnf update -y -
Format the SD card using compatible partition tools such as gdisk, parted, or GParted.
Solutions for Windows PC
The solutions for a Windows PC include:
-
Use a different SD card reader that has better compatibility with the problematic SD card.
-
Format the SD card using the built-in Disk Management tool or other compatible third-party software such as SD Formatter from the SD Association.
Additional Troubleshooting Steps
If the above steps do not resolve the issue, consider the following:
-
Check the SD card for physical or terminal damage using different devices and SD card readers.
-
Replace the SD card if it appears to be damaged or defective.
References
-
Book: Raspberry Pi User Guide
-
Article: SD Formatter Download -
Online Resource: How-To Geek: Repair an Unreadable or Corrupted SD Card