I would like to read from an SD card containing the filesystem and OS from a Raspberry Pi running Raspbian / noobs. I have installed ext2fuse (on Mac El Capitan 10.11.6):
$ brew update
$ brew tap caskroom/cask
$ brew cask install osxfuse
$ sudo shutdown -r now
$ brew install ext2fuse
$ sudo shutdown -r now
Now when I put in an SD card (with Raspbian linux OS on it) I get the following:
$ diskutil list
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk2
1: Windows_FAT_16 RECOVERY 1.2 GB disk2s1
2: Linux 33.6 MB disk2s5
3: Windows_FAT_32 boot 66.1 MB disk2s6
4: Linux 6.8 GB disk2s7
But calling the following results in an empty directory being mounted:
$ sudo /usr/local/opt/ext2fuse/bin/ext2fuse /dev/disk2s7 /sd
$ cd /sd
$ ls
.
$ sudo /usr/local/opt/ext2fuse/bin/ext2fuse /dev/disk2 /sd2
/dev/disk2 is to be mounted at /sd2
fuse-ext2fs: Resource busy while trying to open /dev/disk2
Additionally I can't figure out how to unmount them. Previously I used "eject all" option from clicking the eject icon next to the "boot" or "RECOVERY" mounted partitions in finder. Calling the following doesn't work:
$ diskutil unmount /sd
(null) was already unmounted
$ sudo umount /sd
umount(/sd): Resource busy -- try 'diskutil unmount'
$ rmdir /sd
rmdir: sd: Resource busy
$ sudo mkdir /sd
mkdir: /sd: File exists
$ diskutil umount force /sd
Unmount failed for /sd
** edit **
Don't know what I did but I can now sudo rmdir /sd
and they are removed.
Best Answer
brew uninstall ext2fuse
.Follow these instructions:
Mount the partition(s) e.g. disk2s7:
Tested & verified in a virtual 10.11.6 El Capitan machine!