Skip to content

Instantly share code, notes, and snippets.

@uraimo
Created May 17, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uraimo/c329faba5646ed179cdd0c4f0135d46c to your computer and use it in GitHub Desktop.
Save uraimo/c329faba5646ed179cdd0c4f0135d46c to your computer and use it in GitHub Desktop.
Install fuse-ext2 with minimal effort on macOS

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 <alper.akcan@gmail.com>
Copyright (C) 2009 Renzo Davoli <renzo@cs.unibo.it>

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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment