Read a Raspberry Pi SD card on a Mac: get files off the ext4 partition
Raspberry Pi OS cards have two partitions. A Mac mounts the small FAT32 boot partition and can’t read the large ext4 one that holds your files. That is expected, not damage. Retrova reads ext4 read-only on macOS and Windows, so you can copy your files off without a Linux machine.
The big partition is ext4, which macOS can’t mount, so you only see “boot” or “bootfs”. Don’t click Initialize. Open the card in Retrova, browse the ext4 partition read-only, and copy your files to your Mac. Use a Linux machine or a failing-card image if the card is damaged.
Why you only see a small volume
A standard Raspberry Pi OS SD card is partitioned into:
- a small boot partition (called
bootorbootfs), formatted FAT32, which macOS and Windows can read; and - a large root partition (
rootfs), formatted ext4, which holds/home,/etc, your projects, scripts and logs.
macOS has no ext4 support, so it either ignores the second partition or shows “The disk you inserted was not readable by this computer”. Click Ignore. If you click Initialize, you erase the card. Windows does the same, with “You need to format the disk” for the ext4 part. See “The disk you inserted was not readable”: click Ignore, not Initialize.
Check the card is intact
These only look:
- Plug the card into a reader. In Terminal, run
diskutil list. A healthy Pi card typically shows a FAT32 partition and aLinux Filesystempartition. - In Disk Utility, choose View > Show All Devices. You should see the card and both partitions, the second one greyed out.
- If the card doesn’t appear at all, try a different reader and port. See SD card not reading on a Mac.
Don’t open the card in Raspberry Pi Imager, balenaEtcher or similar. They write a new image and erase the card.
Option 1: read it on a Mac with Retrova
Retrova understands ext2, ext3 and ext4 along with APFS, NTFS, FAT, exFAT, XFS and Btrfs, and it opens the card read-only. It doesn’t mount or repair the partition.
- Insert the card and open Retrova. Choose A drive won’t open.
- Pick the large partition labelled ext4 (rootfs). macOS asks for your administrator password; Retrova uses it only to read.
- Browse the folders. Look in
/home/pi(or your username) for projects and files,/etcfor configuration,/var/wwwfor web files, and/var/logfor logs. Select what you need. - Choose a destination on your Mac. Retrova never writes to the card. File names that macOS or Windows can’t store are made safe for the destination.
- Copy, then Verify. Retrova compares each copy against the original, byte for byte.
Linux permissions and ownership don’t carry over to a Mac or Windows drive, so copy what you need, not the whole system, if you only want your files. For more on reading Linux drives, see Get files off a Linux drive (ext4, XFS, Btrfs) on a Mac or Windows PC.
What is worth copying
You rarely need the whole operating system. Most people want a short list: their own files in /home/<user>; configuration such as /etc/wpa_supplicant, /etc/fstab or a Home Assistant, Pi-hole or Octoprint folder; crontab entries and scripts; web or database data under /var/www or /var/lib; and anything on the FAT32 boot partition such as config.txt and cmdline.txt. Copy those, verify, and rebuild the rest from a fresh Raspberry Pi OS image on a new card. Treat saved Wi-Fi passwords and SSH keys as secrets when you copy them.
Option 2: use a Linux machine
Any Linux PC, or a live USB, mounts ext4 natively. Plug in the card, open it in the file manager, and copy. To be careful, mount it read-only (sudo mount -o ro /dev/sdX2 /mnt, using your own device name) so nothing is written. This keeps permissions intact, which matters if you plan to put the files back onto another Pi.
If the card is corrupted or failing
SD cards in Pis suffer from power cuts and wear. If the Pi stopped booting, ext4 may need a journal replay or a repair (e2fsck), which writes. Don’t run it first. Make an image of the card, which copies the healthy data first and returns to the bad spots later, then recover from the image. See Image a failing drive on Mac or Windows. If no file system can be found on the card, Deep scan can find photos, documents and archives, but it can’t rebuild your /home tree, and names are lost.
What Retrova can’t do: it can’t undelete files with their names on APFS, ext or other file systems (only NTFS, FAT and exFAT), can’t open an encrypted drive without its password or recovery key, can’t open the startup disk of a T2 or Apple silicon Mac away from that Mac, doesn’t handle RAID sets or phones, and can’t fix a drive with physical damage. Retrova’s builds aren’t signed or notarised yet, so macOS and Windows will show a warning the first time you open it.
What not to do
- Don’t click Initialize or Erase in the macOS dialog. That wipes the card.
- Don’t flash a new image over a card holding files you want.
- Don’t run
fsck/e2fsckon a failing card before imaging it. - Don’t keep booting the Pi from a card that is corrupting. Each boot writes logs.
Get Retrova
Free and open source for macOS 11+ and Windows 10/11. No account, no recovery limit, and it never writes to the drive you’re rescuing.
Download RetrovaFree for Mac and WindowsQuestions
Why can’t my Mac read the Raspberry Pi SD card?
Only the small FAT32 boot partition is readable by macOS. The main partition is ext4, a Linux file system that macOS doesn’t support.
Does Retrova write to the SD card?
No. It opens the card read-only. Your files are copied to another location you choose.
Can I get the Pi’s files back if it won’t boot?
Often, yes. If the ext4 partition is intact, Retrova can browse and copy it. If it is damaged, image the card first and then recover from the image.
Do I need to install anything on the Mac?
No extra driver is needed. Retrova reads ext4 itself.