sodcalculator

10 Tech How-To

Clone USB Drive on Mac: Step-by-Step Guide

Guide 10-53596 · Updated · Step by step

Cloning a USB drive on a Mac creates an exact, bootable copy of the original drive, including its partition layout and all files, even hidden ones. This is useful for backing up a bootable installer, duplicating a system drive, or migrating to a larger USB drive. You’ll need the source drive, a destination drive with at least as much capacity, and a Mac running macOS (any recent version works).

What You’ll Need

  • The USB drive you want to clone (source).
  • A second USB drive (destination) with equal or larger capacity than the source.
  • A USB hub or ports if your Mac has limited USB ports.
  • Time – cloning can take several minutes to hours depending on drive size and speed.

Step-by-Step

  1. Back up any important data on the destination drive. Cloning will completely erase it. Copy anything you need to keep to another location.
  2. Connect both USB drives to your Mac. Use a USB hub if needed. Wait a few seconds for macOS to recognize them.
  3. Open Disk Utility. Go to Applications > Utilities > Disk Utility, or search for it with Spotlight (Cmd+Space).
  4. Identify the source and destination drives. In Disk Utility’s sidebar, click View in the toolbar and select Show All Devices. This shows physical drives (the top-level entries) and their volumes (indented below). Note the names and sizes of your drives.
  5. Unmount the destination drive. In the sidebar, click the destination drive (the physical drive, not just a volume). Click the Unmount button in the toolbar. Do not eject it – just unmount. The drive icon will gray out.
  6. Open Terminal. Go to Applications > Utilities > Terminal.
  7. List all disks to confirm device identifiers. Type diskutil list and press Return. Look for your source and destination drives. They’ll appear as /dev/disk2, /dev/disk3, etc. Make sure you can tell which is which by size and name. The destination must be unmounted (its volumes won’t be listed with a mount point).
  8. Unmount the source drive (optional but recommended). To avoid errors, unmount the source drive as well: diskutil unmountDisk /dev/diskX (replace X with the source disk number).
  9. Clone the drive using dd. Type the following command, replacing SOURCE with the source disk identifier (e.g., disk2) and DEST with the destination disk identifier (e.g., disk3): sudo dd if=/dev/rSOURCE of=/dev/rDEST bs=1m – note the r before the disk identifier (raw device) for faster copying. Press Return. You’ll be prompted for your administrator password. Type it (it won’t show as you type) and press Return.
  10. Wait for the copy to complete. dd shows no progress by default. It will run until done, which can take a long time. To see progress, open another Terminal window and run sudo kill -INFO $(pgrep dd) (on macOS) to get a status update. When finished, you’ll see a message like 1234567+0 records in and 1234567+0 records out.
  11. Eject both drives. In Terminal, type diskutil eject /dev/diskX for both the source and destination (replace X with each disk number). Or use Finder’s Eject button.

Common Mistakes

  • Swapping source and destination. This is the most catastrophic error. Double-check the disk identifiers before running dd. A wrong command can erase your source drive.
  • Using the volume identifier instead of the disk identifier. You must clone the whole disk (e.g., disk2), not a volume (e.g., disk2s1). Cloning a volume only copies that partition, not the partition table.
  • Not unmounting the destination. If the destination is mounted, dd will fail with a “Resource busy” error. Always unmount first.
  • Forgetting to use sudo. Without administrator privileges, dd won’t have permission to write to the raw device.
  • Interrupting the process. If you cancel dd with Ctrl+C, the destination will be left in an inconsistent state. Let it finish.

Tips

  • Use the raw device (rdisk) for speed. It’s significantly faster than the buffered device (disk).
  • Check the destination size. The destination must be at least as large as the source. If it’s larger, the extra space will remain unallocated; you can expand the partition later with Disk Utility.
  • Verify the clone. After cloning, you can run sudo diff -r /Volumes/Source /Volumes/Destination to compare files, but this only works if both are mounted and readable. A simpler check is to see if the destination mounts and appears identical in Finder.
  • Use a USB 3.0 hub and ports. If your Mac has limited ports, a powered hub can prevent power issues.
  • Consider using rsync for file-level backups. If you don’t need a bootable clone, rsync -a --progress /Volumes/Source/ /Volumes/Destination/ copies files and is safer (no risk of wiping the wrong drive).

Troubleshooting

  • “Resource busy” error. The destination drive is still mounted. Unmount it (not eject) in Disk Utility or with diskutil unmountDisk /dev/diskX.
  • “Permission denied”. You forgot sudo or your user doesn’t have admin rights. Use sudo and enter your password.
  • dd seems to hang. It’s normal – dd gives no output until it finishes. Check progress with sudo kill -INFO $(pgrep dd) in another Terminal window.
  • Destination drive doesn’t mount after cloning. Some drives (especially Windows-formatted ones) may not auto-mount. Check Disk Utility – if the drive appears but isn’t mounted, click Mount. If it’s not recognized, the clone may have failed; try again with a different destination drive.
  • Clone is smaller than the source. If the destination is smaller, dd will fail with “No space left on device”. Use a larger drive.
  • macOS says “The disk you inserted was not readable”. This can happen if the clone is of a non-Mac format (e.g., NTFS). The clone is still valid, but macOS may not read it. You can use a third-party NTFS driver or format the destination as APFS before cloning (but that would erase the clone). For a bootable clone of a macOS system, the destination must be formatted as Mac OS Extended (Journaled) or APFS before cloning – but the dd method copies the exact partition table, so it should work regardless.

Frequently Asked Questions

Can I clone a USB drive to a smaller one?

No, the destination must be at least as large as the source. If it’s smaller, the clone will fail with “No space left on device”.

Will the clone be bootable?

Yes, if the source is bootable and you clone the entire disk (not just a volume), the clone will be bootable on compatible hardware. You may need to set the startup disk in System Settings after booting from it.

How long does cloning take?

It depends on the drive size and speed. A 16 GB USB 2.0 drive can take 10-20 minutes; a 128 GB USB 3.0 drive might take 30-60 minutes. Using the raw device (rdisk) speeds it up.

Can I use Disk Utility’s “Restore” feature instead?

Yes, Disk Utility’s Restore function can clone a drive by dragging the source to the destination. It’s more user-friendly but can be slower and sometimes fails with certain formats. The dd method is more reliable for exact copies.

What if I accidentally clone to the wrong drive?

Stop immediately. Unplug the destination drive. Data recovery may be possible with third-party tools, but it’s not guaranteed. Always double-check disk identifiers before running dd.

Do I need to format the destination drive first?

No, dd overwrites the entire destination, including its partition table. Formatting is unnecessary and will be erased anyway.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →