keepcalculator

06 Numbers and Powers

Format Bootable SD Card: Full Guide

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

To format a bootable SD card, you need to erase it completely and reset its file system so it can be reused for storage or re-imaged for another purpose. This guide covers the safe ways to do it on Windows, macOS, and Linux, including how to remove stubborn partitions and what to do if your card won’t format.

Why Formatting a Bootable SD Card Is Different

A bootable SD card doesn’t just hold files—it contains a boot sector, partition table, and often multiple partitions (e.g., a small FAT32 boot partition and a larger ext4 or exFAT data partition). Standard “quick format” tools often only wipe the first partition, leaving the boot records and other partitions intact. This can confuse your computer and make the card appear “locked” or “in use.” To fully restore the card, you must remove all partitions and then create a new single partition with a file system your device understands.

What You Need Before You Start

  • Card reader—built-in or USB. Avoid using a phone or camera as a reader; they often hide partitions.
  • Backup—formatting erases everything. Copy any files you need to your computer first.
  • Administrator rights—you’ll need them to run disk management tools.
  • SD Card Formatter or OS-native tools—the SD Association’s official tool is reliable, but Windows DiskPart, macOS Disk Utility, and Linux fdisk also work.

How to Format a Bootable SD Card on Windows

  1. Insert the SD card and note its drive letter (e.g., E:).
  2. Open Command Prompt as Administrator (search “cmd”, right-click, “Run as administrator”).
  3. Type diskpart and press Enter.
  4. Type list disk and find your SD card’s disk number (usually the last one, with a size matching your card).
  5. Type select disk X (replace X with the number). Double-check you have the right disk—the next command wipes it.
  6. Type clean to remove all partitions and boot records.
  7. Type create partition primary.
  8. Type format fs=fat32 quick (or exfat for cards over 32 GB; see note below).
  9. Type assign to give it a drive letter, then exit.

If you prefer a graphical tool, right-click the Start button, open Disk Management, find the SD card, delete all partitions, then create a new simple volume and format it. The SD Association’s official SD Card Formatter also works well and is designed specifically for SD cards.

How to Format a Bootable SD Card on macOS

  1. Open Disk Utility (Applications > Utilities).
  2. Select your SD card in the left sidebar (not the volume under it).
  3. Click Erase.
  4. Choose a name, format MS-DOS (FAT) for cards 32 GB or smaller, or ExFAT for larger ones.
  5. Click Erase and wait for it to finish.

If Disk Utility won’t let you erase (often because of hidden partitions), you can use the command line:

  1. Open Terminal.
  2. Type diskutil list and find your SD card (e.g., /dev/disk2).
  3. Type diskutil eraseDisk FAT32 SDCARD MBR /dev/disk2 (replace the disk identifier). For exFAT, use exfat instead of FAT32.

How to Format a Bootable SD Card on Linux

  1. Open a terminal and type lsblk to identify your SD card (look for something like sdb or mmcblk0).
  2. Unmount any mounted partitions: sudo umount /dev/sdb*.
  3. Run sudo fdisk /dev/sdb.
  4. Type d to delete partitions, repeating until none remain.
  5. Type n to create a new partition, accept defaults for size, then type w to write changes.
  6. Format with sudo mkfs.vfat -F 32 /dev/sdb1 for FAT32, or sudo mkfs.exfat /dev/sdb1 for exFAT (install exfatprogs if needed).

FAT32 vs. exFAT vs. NTFS: Which Should You Choose?

The file system you choose depends on what you’ll use the card for:

  • FAT32—works with almost everything (cameras, phones, game consoles, older devices), but has a 4 GB maximum file size. Good for small cards and bootable media.
  • exFAT—no practical file size limit, works with modern devices (Windows, macOS, Linux with drivers, newer cameras). Best for cards larger than 32 GB.
  • NTFS—mainly for Windows; many cameras and consoles can’t read it. Not recommended for SD cards unless you only use them on Windows.

For a bootable card you plan to reuse as normal storage, exFAT is usually the safest choice for cards over 32 GB. For older devices, stick with FAT32.

Common Problems and How to Fix Them

  • “The disk is write-protected”—Check the physical lock slider on the side of the card. If it’s down, slide it up. If the card has no slider, it may be a fake card or a failing one.
  • Windows can’t format it—Use DiskPart’s clean command as described above. If that fails, the card may be dead or counterfeit.
  • macOS “Erase” is greyed out—Select the whole disk (not the volume) in Disk Utility. If that doesn’t work, use the terminal command.
  • Card shows only 30 MB after formatting—This is a classic sign of a fake SD card (the controller is programmed to report a larger size than the actual flash memory). There’s no fix; get a card from a reputable source.
  • Formatting succeeds but the card is still bootable—You likely only formatted the first partition. Use DiskPart or fdisk to delete all partitions and create one new one.

Frequently Asked Questions

Will formatting a bootable SD card damage it?

No, formatting is a normal operation that doesn’t damage the card. It does write to the card, which counts toward its limited write cycles, but a single format is negligible. However, if the card is failing, formatting may expose bad sectors.

Can I format a bootable SD card in my phone?

Yes, most phones offer a “Format” or “Erase” option in Settings > Storage. This usually creates a single FAT32 or exFAT partition, but it may not remove all boot records. For a thorough cleanup, use a computer.

Why does my SD card show two drives after being bootable?

That’s normal—a bootable card often has a small boot partition and a larger data partition. Windows assigns each a drive letter. Formatting one won’t remove the other; you need to delete both partitions (using DiskPart or Disk Management) and create a single new one.

What is the best tool to format a bootable SD card?

The SD Association’s official SD Card Formatter is reliable and free. For more control (e.g., removing stubborn partitions), Windows DiskPart, macOS Disk Utility, and Linux fdisk are all good. Avoid third-party “low-level format” tools unless you know what you’re doing—they can permanently damage a card.

Can I reuse a Raspberry Pi SD card in a camera after formatting?

Yes, after you delete all partitions and format with FAT32 or exFAT, the card should work in a camera. Just make sure the file system is compatible (most cameras need FAT32 or exFAT).

What should I do if my SD card still won’t format?

Try a different card reader, a different computer, and check the write-protect switch. If it still fails, the card is likely dead or counterfeit. There’s no reliable way to recover a physically failing card, so replace it.

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 →