The SD card is the most frequently overlooked component in a Raspberry Pi build — and the most common cause of failed projects, corrupted filesystems, and lost hours of work. Using the wrong card doesn’t just slow down your Pi; it can cause random lockups, filesystem corruption after a power cut, and complete card failure within months of continuous operation. This guide, updated for 2026, tells you exactly which cards to buy, which to avoid, and why the specifications on the packaging often mislead beginners.
Why Your SD Card Choice Matters More Than You Think
A Raspberry Pi running a headless server application writes to the SD card continuously — log files, database records, cache updates, and system journals all generate write I/O. Consumer-grade SD cards are designed for cameras, which write large sequential files infrequently. They are optimised for sequential write speed and not for the random small writes that an operating system generates thousands of times per day.
The key metric that distinguishes a good Pi card from a camera card is random write IOPS (Input/Output Operations Per Second) at 4KB block sizes. A cheap 64GB card might advertise 80 MB/s sequential write speed but perform fewer than 100 IOPS on random 4KB writes — which is what your OS actually does. A good endurance card achieves 500–2,000 IOPS at 4KB random writes, making the real-world OS feel dramatically more responsive.
The second critical factor is Total Bytes Written (TBW) endurance. Flash memory cells degrade with each write cycle. Consumer SD cards typically carry no TBW rating at all. Cards certified for surveillance, dashcam, or industrial use specify TBW and are designed to survive years of continuous writes.
SD Card Specifications Explained for Pi Users
When you’re looking at a microSD card listing, here’s what each specification means in practice for a Raspberry Pi:
Speed Class Ratings
- Class 10 / U1 — Minimum 10 MB/s sequential write. Acceptable for light Pi use, not recommended for servers or databases.
- U3 / V30 — Minimum 30 MB/s sequential write. This is the minimum you should buy for any Pi running an operating system.
- A1 / A2 — Application Performance Class. A1 guarantees at least 1,500 random read IOPS and 500 random write IOPS. A2 guarantees 4,000 random read IOPS and 2,000 random write IOPS. For Raspberry Pi OS, A2 is the specification you want.
Interface Speed
The Raspberry Pi 5 added native SD Express support but most Pi 5s ship with a standard SD 3.0 interface that caps at around 100 MB/s sequential read. Buying a card rated faster than 100 MB/s provides no additional benefit on the Pi 5 — save your money. On the Pi 4 and older, the SD interface is SDR50 (50 MB/s max sequential), making anything faster than that also wasted.
Capacity
Bigger cards are not automatically better. Larger cards often use more flash dies operating in parallel, which can improve performance. However, for write endurance, smaller cards used by lighter OS installations actually last longer in absolute terms (fewer cells being overwritten relative to total writes). For most projects, 32GB hits the sweet spot of performance, cost, and endurance.
Top SD Card Picks for 2026
Best Overall: Samsung PRO Endurance (32GB or 64GB)
The Samsung PRO Endurance is the single best SD card for a Raspberry Pi running as a server, kiosk, or any application with continuous writes. It’s rated for 43,800 hours of continuous video recording at 32GB — translating to roughly 5 years of 24/7 operation. It achieves A2 Application Performance Class specs in practice, with consistent random write IOPS well above the 500 IOPS minimum. In India, the 32GB version costs around ₹700–800 and the 64GB around ₹1,100–1,300. Worth every rupee.
Best Budget: SanDisk High Endurance (32GB)
If budget is tight, the SanDisk High Endurance is the next best option. It’s a surveillance/dashcam card designed for continuous writes, rated at 20,000 hours. It meets A1 (not A2) specs, so random write IOPS are lower than the Samsung PRO Endurance, but it’s noticeably more stable than any generic or camera-class card. Available at around ₹500–600 for 32GB in India.
Best for Performance (Pi 5): Samsung PRO Plus (32GB)
If you’re prioritising boot speed and application load time over absolute write endurance (useful for desktop Pi use cases where you’re not writing continuously), the Samsung PRO Plus offers A2 performance specs with higher sequential speeds. Less endurance-focused than the PRO Endurance but faster peak speeds for interactive use.
Raspberry Pi Official SD Card (32GB)
The Raspberry Pi Foundation sells their own branded cards, manufactured by Samsung or Micron depending on production batch. They’re consistently A2-rated and quality-controlled for Pi compatibility. If you want zero risk of compatibility issues, this is the safest choice — though typically more expensive than buying equivalent Samsung cards directly.
Cards to Avoid and Why
These categories of cards regularly appear in forums as the culprit behind corrupted Raspberry Pi installs:
- Generic white-label or no-brand cards from wholesale markets — These are almost universally either fake capacity (32GB physically containing 4GB with firmware hacks) or factory-rejected flash die with significantly reduced write endurance. A single ₹150 card from an unverified seller can destroy months of project work.
- Lexar Class 10 (non-endurance) — Lexar’s standard consumer cards perform poorly on random 4KB writes. Lexar Professional and Lexar Silver/Gold series are different products and perform better.
- Kingston Canvas Select (older batches) — Early Canvas Select batches used inferior flash controller configurations that showed high corruption rates under Linux. Canvas Select Plus and Go! series are better but still not endurance-rated.
- Any card rated only for sequential performance with no IOPS spec — If the product listing only shows MB/s sequential read/write and gives no random IOPS figure, assume it’s a camera card not suitable for OS use.
How Much Storage Do You Actually Need?
Here’s a practical guide to choosing capacity based on your use case:
| Use Case | Recommended Size | Notes |
|---|---|---|
| Headless server / IoT node | 16GB | Minimal OS + app; smaller card = fewer overwrites |
| Desktop (Raspberry Pi OS with desktop) | 32GB | Base OS is 4–8GB; leaves room for apps |
| Media centre (Kodi/Plex) | 32GB OS + external HDD | Never store media on SD; use USB HDD |
| RetroPie / game emulation | 64–128GB | ROM libraries can be large; still use endurance card |
| Fleet tracker / data logger | 32GB | Log rotation keeps data small; prioritise endurance |
| Docker host | 64GB | Container images stack up quickly |
A common mistake is buying a large card assuming more is better. A 128GB card costs more, has more flash cells to test for quality, and gives no benefit for a headless server that only writes logs. If you need bulk storage, attach a USB 3.0 drive to the Pi instead — it’s faster, cheaper per GB, and the SD card only handles the OS.
Extending SD Card Lifespan on Raspberry Pi
Even the best card lasts longer with these optimisations applied to your Raspberry Pi OS setup:
Move /tmp and log directories to RAM
Add these lines to /etc/fstab to mount temporary directories in RAM, dramatically reducing write I/O to the SD card:
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=100m 0 0
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,size=30m 0 0
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0
Reduce swappiness
# Add to /etc/sysctl.conf
vm.swappiness = 1
This tells Linux to avoid using swap (which writes to SD card) unless RAM is nearly exhausted.
Enable noatime mount option
The default ext4 filesystem updates the access time of every file when it’s read. Disable this to eliminate a massive source of unnecessary writes:
# Edit /etc/fstab, change the rootfs line to add noatime:
PARTUUID=xxxx / ext4 defaults,noatime 0 1
Disable journaling (advanced — use carefully)
Disabling the ext4 journal reduces writes but increases the risk of filesystem corruption on unexpected power loss. Only do this if you have a reliable UPS for your Pi. Use a read-only root filesystem approach instead for production deployments.
SSD Alternatives: When to Skip the SD Card Entirely
For demanding applications — databases, Docker, high-frequency data logging, or any Pi that needs to be reliable for years without maintenance — skip the SD card entirely and boot from USB SSD. The Raspberry Pi 4 and 5 support USB boot natively.
A 120GB USB 3.0 SATA SSD (the small 2242 M.2 form factor in a USB enclosure) costs ₹1,000–1,500 and offers:
- 50,000–100,000+ IOPS random read/write (vs 500–2,000 for best-case SD)
- 5–10x higher TBW endurance ratings
- 10–30x faster sequential read/write speeds
- Drastically better filesystem corruption resistance
For the Raspberry Pi 5 specifically, the NVMe HAT using the Pi 5’s PCIe interface is the ultimate storage upgrade — a 256GB NVMe SSD via PCIe 2.0 x1 delivers sequential reads of 400+ MB/s and IOPS in the tens of thousands. If you’re building a home server, NAS, or high-traffic application on a Pi 5, this is the right path.
Frequently Asked Questions
Can I use any microSD card with Raspberry Pi?
Technically yes — the Pi will boot from most Class 10 or faster cards. But using a consumer-grade camera card on a Pi that runs 24/7 typically results in card failure within 3–12 months. The Pi writes to the card constantly (logs, journaling, swap if RAM gets full), which destroys cards not designed for high write endurance. Stick to endurance-rated cards for anything beyond a casual experiment.
What size SD card comes with a Raspberry Pi kit?
Most kit bundles include either a 16GB or 32GB card. Quality varies significantly between kit suppliers. It’s always worth upgrading to a Samsung PRO Endurance or official Raspberry Pi card if you plan serious use. The bundled cards are often unbranded or low-tier.
How do I check if my SD card is genuine and not fake capacity?
Use the tool f3 (fight flash fraud): sudo apt install f3, then write test data and verify. Fake cards falsify their capacity in firmware — f3 detects the actual writable space. A genuine 32GB card should show approximately 29–30GB of writable space after accounting for formatting overhead.
My Raspberry Pi keeps corrupting the SD card. What should I do?
First, switch to a Samsung PRO Endurance or SanDisk High Endurance card. Second, add noatime to your fstab mount options. Third, ensure clean shutdowns — never just unplug the Pi. Fourth, if possible, move to USB SSD boot which is far more resilient. If you’re having power issues (brownouts from inadequate PSU), that alone can corrupt any card — use the official Raspberry Pi 27W USB-C power supply.
Is a 64GB card better than 32GB for a Raspberry Pi server?
Not necessarily. For a headless server using under 10GB, a 32GB endurance card is better: fewer cells to wear out, lower cost, same performance. 64GB makes sense for RetroPie, Docker with many containers, or applications that generate large data files locally. For everything else, 32GB is optimal.
Build your Raspberry Pi project on a solid foundation. Browse all Raspberry Pi boards and accessories at zbotic.in/product-category/raspberry-pi/ — fast shipping across India with expert support.
Add comment