How to Use Ddrescue on a Mac: A Complete Data Recovery Guide

Learn how to use ddrescue on Mac with this step-by-step guide. Includes installation, command examples, and when to use EaseUS Data Recovery Wizard for Mac.

Table of Contents

How to Use ddrescue on a Mac? If you are dealing with a failing, damaged, or unreadable drive on your Mac, ddrescue is one of the most powerful command‑line tools to recover data. Originally built for Linux, ddrescue works perfectly on macOS and is especially useful for creating a sector‑by‑sector image of a problematic disk – even with bad sectors.

This guide will walk you through every step of using ddrescue on a Mac, from installation to running the correct commands. Additionally, for those who prefer a modern, graphical interface or need to recover specific lost files after imaging, we will introduce EaseUS Data Recovery Wizard for Mac as a user‑friendly alternative.

What is ddrescue and Why Use It on a Mac

Ddrescue (GNU ddrescue) is a data recovery tool that copies data from one file or block device to another, intelligently handling read errors. Unlike standard copy commands (like cp or dd), ddrescue:

  • Does not stop at the first error – it skips bad areas and continues copying readable data.
  • Uses a log file (mapfile) to track progress, so you can interrupt and resume recovery at any time.
  • Performs multiple passes (e.g., scraping, retrying) to maximize the amount of recovered data.

These features make ddrescue ideal for rescuing data from failing hard drives, SSDs, USB flash drives, or memory cards on your Mac.

Prerequisites: What You Need Before Starting

  1. Another Mac or an external bootable macOS drive.
    Never run ddrescue on the live, internal drive you are trying to recover. Boot from a different macOS installation or use an external USB drive with macOS installed.

  2. A destination drive with enough free space to hold the full size of the source drive (or a disk image).

  3. Homebrew (optional but recommended) – the easiest way to install ddrescue on macOS.

  4. Administrative privileges – most commands will require sudo.

Step 1. Install ddrescue on macOS

The simplest method is using Homebrew:

1. Open Terminal (you can find it in /Applications/Utilities/).

2. If you don't have Homebrew, install it with:

bash
/bin/bash -c"$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

3. Install ddrescue:

bash
brew installddrescue

Alternatively, you can compile from source, but Homebrew is faster and keeps the tool updated.

Step 2. Identify Your Source and Destination Drives

Before running ddrescue, you must know the exact device names of the source (failing drive) and destination (where you will save the image or clone to).

1. List all disks and partitions:

bash
diskutil list

The output will look similar to this:

text
/dev/disk0 (internal, physical):
 #: TYPE NAME SIZE IDENTIFIER
 0: GUID_partition_scheme *500.1 GB disk0
 1: EFI EFI 314.6 MB disk0s1
 2: Apple_APFS Container disk1 499.8 GB disk0s2
/dev/disk1 (synthesized):
 #: TYPE NAME SIZE IDENTIFIER
 0: APFS Container Scheme - +499.8 GB disk1
 Physical Store disk0s2
 1: APFS Volume Macintosh HD 150.2 GB disk1s1

Identify the physical source drive that is failing.

Note from the Technibble forum: One user initially confused /dev/disk0 (physical) with /dev/disk1 (synthesized). Always pick the physical disk identifier.

  • In the example above, the internal physical drive is /dev/disk0.

  • Do not use the synthesized APFS container (/dev/disk1) as your source – that is a virtual representation of partitions on the physical disk.

  1. For the destination, you can either:

    Important: The destination must have at least as much free space as the total size of the source drive.

    • Clone directly to another physical drive (e.g., /dev/disk2), or

    • Create an image file on a healthy external drive (e.g., /Volumes/MyBackup/failing_drive.img).

Step 3: Run ddrescue – Basic Command Syntax

The general syntax is:

bash
sudoddrescue[options] infile outfile [mapfile]
  • infile – source device (e.g., /dev/disk0)
  • outfile – destination image file or device (e.g., /Volumes/ExternalDrive/recovery.img)
  • mapfile – log file that tracks progress (e.g., recovery.log). Always use a mapfile – it allows you to resume an interrupted recovery.

Example Command for a Disk Image

Assuming:

  • Source = /dev/disk0 (the failing internal drive)
  • Destination image = /Volumes/BackupDrive/source_image.img
  • Log file = /Volumes/BackupDrive/recovery.log
bash
sudoddrescue-f-n /dev/disk0 /Volumes/BackupDrive/source_image.img /Volumes/BackupDrive/recovery.log

Explanation of options:

  • -f – force overwrite of the destination (useful when writing to a file or device that already exists).
  • -n – no-scrape (first pass only copies readable data and skips bad areas; you can run a second pass later to retry the bad blocks).

Direct disc access on macOS: Some users see an error like “Direct disc access not available”. If that happens, simply remove the -d flag (which is used on Linux for direct access) or replace it with -v (verbose). The command above avoids -d and works reliably on macOS.

Step 4: Monitor and Resume Recovery

While ddrescue runs, you will see a live status update:

text
Press Ctrl-C to interrupt
Initial status (readable areas):
rescued: 450 GB, errsize: 50 MB, errors: 125
Current rate: 25 MB/s
  • Press Ctrl + C at any time to stop safely. The log file saves your progress.

  • To resume after an interruption, run the exact same command again. ddrescue will read the log file and continue from where it left off.

Step 5. Access Recovered Data from the Image File

Once ddrescue finishes, you will have a raw disk image (.img file). To access individual files:

  1. Attach the image as a virtual disk in macOS:

    bash
    hdiutil attach -nomount /Volumes/BackupDrive/source_image.img
    Note the device name that appears (e.g., /dev/disk3).
  2. Use diskutil list to see the partitions inside the image, then mount the desired partition:

    bash
    sudo diskutil mount /dev/disk3s1
  3. The volume will appear in Finder. You can now copy your files to a safe location.

When ddrescue Completes – But You Still Need File‑Level Recovery

Ddrescue is excellent at creating a bit‑perfect copy of a failing drive. However, the resulting image may still have:

  • Corrupted files or incomplete data.

  • A damaged file system (e.g., APFS, HFS+) that macOS cannot mount cleanly.

In such cases, you need a tool that scans the raw image file‑by‑file and recovers specific documents, photos, videos, etc.

Recommended: EaseUS Data Recovery Wizard for Mac

After you have used ddrescue to create a stable disk image, EaseUS Data Recovery Wizard for Mac can be your best friend. It offers:

  • Deep scan of the image file to recover over 200 file types.
  • User‑friendly interface – no command line needed.
  • Preview before recovery – see if your files are intact.
  • Recovery from formatted, corrupted, or inaccessible drives – perfect for the situation after ddrescue.

Why mention it here?
Ddrescue handles the low‑level hardware rescue; EaseUS handles the logical file recovery. Together they form a powerful two‑step workflow:

  1. Use ddrescue to image a failing drive.
  2. Use EaseUS Data Recovery Wizard for Mac to extract the actual files from that image.

Pro tip: Even if ddrescue recovers 100% of the sectors, the file system might still be damaged. Running EaseUS on the image saves you hours of manual recovery.

You can download EaseUS Data Recovery Wizard for Mac from the official website. It offers a free trial with preview capabilities, so you can verify which files are recoverable before purchasing.

Important Tips and Warnings (Based on Real‑World Experience)

  • Do not run ddrescue on the live internal drive you are trying to save. Always boot from an external macOS drive or use another Mac. Writing a log file or image to the same failing drive can cause further damage.
  • APFS and Linux live CDs – As noted in the Technibble forum, many Linux live environments (like Parted Magic) do not natively recognize APFS volumes. If you prefer a graphical environment, consider using a macOS recovery system instead of Linux.
  • Destination space – Ensure your destination drive has more free space than the source drive's full capacity (not just the used space). Ddrescue creates a sector‑for‑sector image.
  • Patience – Ddrescue can take hours or even days for large, damaged drives. Use the log file to resume if needed.
  • Alternatives on Mac – While ddrescue is free and powerful, some users prefer commercial tools like Data Rescue 5 or Disk Drill. However, for a free, scriptable, and highly reliable solution, ddrescue remains the gold standard.

Conclusion

Using ddrescue on a Mac is straightforward once you understand the device naming and the importance of a mapfile.  Ddrescue gives you a second chance at failing hardware; EaseUS gives you your files back. Together, they are a data recovery powerhouse on macOS.

FAQs on How to Use ddrescue on a Mac

Here are some questions you may be curious about:

1. Is ddrescue free to use on macOS?

Yes. ddrescue is an open-source tool published by GNU. It is completely free to download, use, and modify. You can install it via Homebrew (brew install ddrescue) or compile it from source without any licensing cost.

2. Can I run ddrescue on a Mac with Apple Silicon (M1/M2/M3)?

Yes, but with minor considerations.

ddrescue runs well on Apple Silicon Macs under the Rosetta 2 translation environment when installed via Homebrew. The commands and disk device paths (/dev/disk0, etc.) work identically to Intel-based Macs.

Was This Page Helpful?

Updated by Finley

Finley is interested in reading and writing articles about technical knowledge. Her articles mainly focus on file repair and data recovery.

Read full bio

Product Reviews

TrustScore 4.9 | 59 reviews
  • EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition.

    Read More
  • EaseUS Data Recovery Wizard is the best we have seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past.

    Read More
  • EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair.

    Read More