How to access the Raspberry Pi filesystem from OS X

By   01-18-2015 · 2 minute read · 247 words

In a series of unfortunate events I ended up screwing up all out of band access I had to my Pi by trying to configure a static IP address for wireless usage. I operate in headless mode without a monitor so if the wireless or network is down the only means I can connect to it is via a GPIO cable. Well as luck would have it the GPIO cable also no longer works and I had to wait for another to arrive in the mail.

Then it came to me to just mount the SD card within another OS. I attempted to mount on a Vmware Fusion VM, but got a strange usb error that I did not want to waste time banging my head on.

The next alternative was mounting on my Mac. In order for this to work I had to get Mac fuse installed.

I used osx fuse since the macfuse version was a bit dated and I don’t think longer supported. In addtion, you’ll need fuse-ext2 since osx fuse doesn’t have ext2 supporrt by default.

Install both and you’ll need to make one more change which is to allow ext2 fuse to write to the sdcard.

Edit:

/System/Library/Filesystems/fuse-ext2.fs/fuse-ext2.util

and replace the line under the function “Mount”:

OPTIONS="auto_xattr,defer_permissions"


to

OPTIONS="auto_xattr,defer_permissions,rw+"


Here we telling the fs to mount in read write mode. Save the file and plug your sdcard back in and you should have full access to /dev/disk1s2 which is the root partiton.

pi