Install the dependencies:
brew install m4 autoconf automake libtool e2fsprogs
Clone and build:
git clone https://github.com/alperakcan/fuse-ext2.git
cd fuse-ext2
export PKG_CONFIG_PATH=/usr/local/opt/e2fsprogs/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
CFLAGS="-idirafter/opt/gnu/include -idirafter/usr/local/include/osxfuse/ -I/usr/local/opt/e2fsprogs/include" LDFLAGS="-L/opt/gnu/lib -L/usr/local/lib -L/usr/local/opt/e2fsprogs/lib" ./configure
make
sudo make install
Use it with osxfuse or run it:
fuse-ext2 user$ fuse-ext2
fuse-ext2 0.0.9 29 - FUSE EXT2FS Driver
Copyright (C) 2008-2015 Alper Akcan <[email protected]>
Copyright (C) 2009 Renzo Davoli <[email protected]>
Usage: fuse-ext2 <device|image_file> <mount_point> [-o option[,...]]
Options: ro, force, allow_other
Please see details in the manual.
Example: fuse-ext2 /dev/sda1 /mnt/sda1
http://github.com/alperakcan/fuse-ext2/