How Do I Clone An SD Card? | Zero-Risk Copy That Boots

A proper clone creates a bit-for-bit image, then writes it to a new card so apps, settings, and boot files match.

Cloning an SD card is the clean way to make a true twin. It’s handy when a card holds more than photos—like a bootable Raspberry Pi card, a retro handheld setup, or a lab project that must stay identical from one run to the next.

A normal copy-paste grabs files you can see. A clone grabs everything: hidden partitions, boot records, and the exact layout. That’s why a cloned card can boot the same system, open the same apps, and keep the same settings.

This article walks you through safe, repeatable steps on Windows, Mac, and Linux. You’ll also get checks that catch problems early, plus fixes for the most common snags.

What A Clone Copies

An SD card can hold more than one partition. A Raspberry Pi card often has a small boot partition plus a larger data partition. Cameras can add hidden folders and metadata. Some projects add recovery partitions.

Cloning copies the full structure, not just the visible files. That includes partition tables (MBR or GPT), bootloaders, file system metadata, and unused space that sits between partitions.

That extra detail is why cloning solves problems that file copying can’t. If your goal is a card that boots, runs, and behaves the same, cloning is the right move.

Gear And Prep Checklist

Before you start, set yourself up so you don’t lose data or waste time. Most cloning failures come from rushed prep, not from the cloning tool itself.

  • A card reader you trust. Built-in laptop readers can be fine, but a decent USB reader is often steadier for long reads.
  • Enough free storage for an image file. A 64 GB card can create an image close to that size.
  • A target SD card that matches or exceeds the source size. Same “GB” label is not always enough; actual byte size can differ.
  • A stable power source. If you’re on a laptop, plug in. Sudden sleep can ruin a write.

Check the label on the source card and the target card. If the target is smaller, the clone may fail even if “used space” is low, since the layout still expects the full size.

If the source card shows odd behavior—random read errors, slow file browsing, or missing folders—make an image first and work from that file. That way you read the shaky card once, not five times.

How Do I Clone An SD Card? Step-By-Step Workflow

The safest pattern is always the same: read the source into an image file, then write that image to the target. Direct card-to-card cloning can work, but it leaves you with no backup file if something goes sideways.

Step 1: Identify The Right Device

Plug in only the source SD card at first. Open your tool and confirm the device by its size and model name. If you see more than one removable drive, slow down and double-check.

Step 2: Create An Image File

Use your tool’s “Read” or “Create image” option to store a full image on your computer. Name it with the device and date, like pi-lab-2026-01-31.img. That name saves headaches later.

If your tool offers verification while reading, turn it on. Verification takes extra time, yet it catches silent read errors that can ruin a bootable clone.

Step 3: Write The Image To The Target Card

Remove the source card, insert the target card, and select the image file you created. Writing will overwrite the target card completely. If you need anything on the target, copy it off first.

Step 4: Expand Or Adjust After The Write

If the target card is larger, the clone will still keep the old partition sizes. You can expand the last partition to use the extra space. If the target is the same size, you can skip this.

Step 5: Test The Clone

Eject the card cleanly, then test it in the device it’s meant for. A quick boot test for system cards or a quick photo browse for camera cards can confirm the clone behaves as expected.

When Each Cloning Style Fits

There isn’t one tool that wins in every case. Your best pick depends on what’s on the card and what machine you’re using.

TABLE 1 (after ~40% of article)

Situation Best Cloning Approach Notes That Prevent Mistakes
Bootable Raspberry Pi card Image file read, then image write Keep the image as a rollback file for later.
Camera card with photos only File copy is enough Clone only if you need exact folder structure and metadata.
Target card is larger Clone, then expand last partition Extra space stays unused until you resize.
Target card is smaller Shrink partitions first, then clone Layout must fit by bytes, not just “used space.”
Source card shows read errors Make one image, then write from file Reading the failing card fewer times reduces dropouts.
Multiple partitions, mixed file systems Bit-for-bit image clone Copy-paste can miss hidden partitions.
Need to clone often Keep a “golden” image and re-flash Label images clearly so you don’t flash the wrong build.
Need a quick safety copy Read image now, write later Even if you don’t flash today, the image is your safety net.

Cloning An SD Card On Windows Without Surprises

On Windows, a common path is using an imaging tool that can “Read” and “Write” raw images. Many users pick Win32 Disk Imager or USBImager because they keep the workflow simple.

Create The Image On Windows

  1. Insert the source SD card and open your imaging tool.
  2. Select the correct drive letter for the SD card.
  3. Choose a save location with enough free space.
  4. Run the tool’s Read action to create the image file.

After the read, store the image somewhere safe. If the source card fails later, this file can still recreate it.

Write The Image To A New Card

  1. Remove the source card and insert the target card.
  2. Select the target drive letter, then select the image file.
  3. Run the tool’s Write action.
  4. When the write ends, eject the card from Windows before removing it.

Windows may pop up a “You need to format the disk” message after a clone. That’s common when the cloned partitions aren’t in a format Windows reads well. Don’t format it if the card is meant for Linux or Raspberry Pi.

Clean A Stubborn Target Card

Sometimes Windows keeps old partition info and the imaging tool refuses to write. In that case, clearing the partition table can help. The official reference for the DiskPart clean command is on DiskPart clean.

Use DiskPart only when you’re sure you picked the right disk. Once you wipe the wrong disk, there’s no easy undo.

Cloning An SD Card On Mac With Disk Images

Mac gives you two solid routes: Disk Utility for a click-based path, or Terminal tools for a direct raw clone. Disk Utility works well when you want a disk image file you can store and reuse.

Create A Disk Image With Disk Utility

  1. Open Disk Utility and turn on “Show All Devices” in the View menu.
  2. Select the physical SD card device, not just a volume under it.
  3. Use File > New Image and choose the option that creates an image from the device.
  4. Pick a save location and create the image.

If you prefer Terminal references for disk images, Apple hosts a manual page for hdiutil on Apple’s hdiutil manual page.

Restore The Image To The Target Card

  1. Insert the target SD card and select its device in Disk Utility.
  2. Use the Restore option and select the disk image you created.
  3. Run the restore, then eject the card before pulling it out.

After the restore, test the card in the device it’s meant for. If it’s a boot card, do a full boot once, not just a power-on blink.

Cloning An SD Card On Linux With dd

Linux users often reach for dd because it’s built in and does a true bit-level copy. It’s also unforgiving, so take a breath and confirm device names.

Find The Device Name

Insert the source card and run:

lsblk

Look for the removable device that matches the SD card size, often something like /dev/sdb or /dev/mmcblk0.

Create The Image File

Unmount any mounted partitions from the SD card, then run:

sudo dd if=/dev/sdX of=~/sdcard.img bs=4M status=progress conv=fsync

Replace /dev/sdX with your actual device. The command reads the whole device, not just one partition.

Write The Image To The Target Card

Insert the target card and run:

sudo dd if=~/sdcard.img of=/dev/sdY bs=4M status=progress conv=fsync

When it ends, run sync, then eject the card cleanly.

Resize After Moving To A Larger Card

A clone keeps the old partition sizes. If the new card is larger, you’ll see unallocated space at the end. Expanding the final partition gives you that space back.

On Linux, tools like gparted can expand the last partition with a few clicks. On Raspberry Pi OS, the built-in expand option can do it from the system’s settings tools.

On Windows, Disk Management can expand NTFS partitions, yet it won’t expand Linux partitions. For Pi cards, do the resize on the Pi itself or on Linux.

TABLE 2 (after ~60% of article)

What You See Likely Cause Fix That Usually Works
Write fails near the end Target card is smaller in real byte count Use a same-model card, or shrink partitions first.
Clone boots, then hangs Read error in the source image Re-read the image with verification turned on.
Windows asks to format the card Windows can’t read the cloned partitions Ignore the prompt; test in the intended device.
Tool can’t see the SD card Reader issue or driver glitch Try a different reader port, then re-insert the card.
Only part of the space shows up Partitions not expanded after cloning Resize the last partition to fill the extra space.
Files open, yet videos stutter Target card is slower Use a faster card class that matches your device needs.
Image file is huge Raw images store unused space too Compress the image file after creating it.
Device name confusion on Linux More than one removable drive attached Unplug other drives, then run lsblk again.

Verification Checks Before You Rely On The Clone

A clone that writes without errors can still be wrong if the source read had problems. A few checks can save you from finding out at the worst time.

Start with a basic test in the real device. If it boots, run one normal task, then shut down cleanly. For camera cards, browse a few folders and open a couple of large files.

If you want a deeper check, compare hashes of the image file. On Linux you can run sha256sum sdcard.img after you create the image, store the result, then re-hash later to confirm the file stayed unchanged.

When the clone is meant for a system card, keep the “golden” image file in a folder with a clear name and date. That makes it easy to roll back after an update that goes wrong.

Clone Checklist For A Clean Finish

Use this short checklist each time. It keeps the process calm and repeatable.

  • Plug in only one SD card while you identify the device.
  • Create an image file first, even if you plan to clone only once.
  • Store the image on a drive with enough free space.
  • Write the image to the target card and eject it cleanly.
  • Test the clone in the real device.
  • If the target card is larger, expand the last partition after the test boot.
  • Keep the image file if the card holds a working system or project.

Once you’ve done this a couple of times, cloning turns into a routine task. The biggest win is confidence: you can swap cards, recover fast, and keep your setup stable without rebuilding from scratch.

References & Sources

  • Microsoft Learn.“clean (DiskPart command).”Explains what the DiskPart clean command does when clearing partitions from a selected disk.
  • Apple Developer Documentation (Legacy).“hdiutil(1) Manual Page.”Lists disk image verbs and options for creating, verifying, and working with disk images on macOS.