Read and write ext4 on MacOS Mojave 10.14

  1. git clone fuse-ext2(https://github.com/alperakcan/fuse-ext2). But I suggest use https://github.com/ipatch/fuse-ext2 before the project owner resolve the issue(https://github.com/alperakcan/fuse-ext2/issues/81)
  2. Follow the steps on each github readme.
  3. Problem solutions:
    1. If you meet: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance, you should excute the command:
      sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    2. If you meet: error: unable to find sdk 'macosx10.12' (in target 'fuse-ext2'), you should correct macosx10.12 like: SDKROOT = macosx and MACOSX_DEPLOYMENT_TARGET = 10.14
    3. If you meet the error like permission deined, please run the script with sudo.
  4. Here is the help text for fuse-ext2:
    ❯ fuse-ext2 --help
    
    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/

    The best way to install(ONLY with problem1) is:

    git clone https://github.com/KiritoStudio/fuse-ext2.git
    cd fuse-ext2/build
    sudo ./macos-build-fuse-ext2-v0.0.10.sh