9

I have a running Raspberry Pi image. Now I want to do the following:

  1. Access the files on my Mac when accessing the SD Card
  2. Be able to copy the SD Card to have a clone of the current system

In Disk Utility I see the partitions disk1s3 and disk1s6 but can't mount them from there:

enter image description here

9

Found this article -> Mount a Raspberry Pi SD card on a Mac (read-only) with osxfuse and ext4fuse, It worked like a charm.

Here is the commands I ran om my mac:

brew cask install osxfuse
brew install ext4fuse
sudo mkdir /Volumes/rpi
sudo ext4fuse /dev/disk2s2 /Volumes/rpi -o allow_other
sudo cp /Volumes/rpi/home/pi/Pictures/* /Users/me/work/raspi/Pix/

I had some issue with permissions, but could copy with sudo.

cheers

2

AFAIK there's only one way to mount Extfs on a Mac and that's via Paragon Extfs for Mac

It's commercial software but they do have a 30-day trial. Works great for me.

1

As noted by Gotschi you can't mount an ext4 partition on the Mac, but you can backup the SD. The following is a script I use. This uses diskutil to find a disk with a Linux partition to automatically find the SD card. NOTE This takes quite a while to copy!

#!/bin/bash
# script to backup Pi SD card
#DSK='disk4'
export DSK=`diskutil list | grep "Linux" | cut -c 69-73`
if [ $DSK ]; then
    echo $DSK
else
    echo "Disk not found"
    exit
fi
diskutil unmountDisk /dev/$DSK
echo pleae wait!
sudo dd of=~/temp/Pi/Piback.img if=/dev/$DSK bs=2m
echo backup completed - now compressing
gzip -9 ~/temp/Pi/Piback.img
#rename to current date
mv ~/temp/Pi/Piback.img.gz "~/temp/Pi/Piback`date +%Y%m%d`.img.gz"
1

Download the "Apple Pi Baker App" and use this software to transfer an image to your SD card or backup an image to an image:

ApplePiBaker

  • I think the question was asking how to actually access the filesystem itself. Not the filesystem image. – Jake Wilson Nov 20 '17 at 19:39
  • 1
    this did no answer the question. They already made a disk image, they want to mount it in osx. – zingle-dingle Aug 16 '18 at 17:14
0

Unfortunately, you can only mount the ext3 (disk1s3 & disk1s6) partitions with 3rd party programs (maybe some FUSE module)...

I tested mounting the SD card in a VM, but the SD card reader seems not to use a USB connection internally, instead it is directly connected to another BUS. (I only tried VMware Fusion, maybe parallells gives you better options)

you can either backup the whole SD card (results in a 16gb file):

sudo dd if=/dev/disk1 of=~/Desktop/SD.img bs=1m

or a certain partition:

sudo dd if=/dev/disk1sX of=~/Desktop/SD.img bs=1m

where X is your partition number if it gives you a Device busy error, be sure to "deactivate" all partitions on the SD card in the Disk Utility.

Edit

after backing up, you may save a LOT of space when you compress the .img

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.