Skip to content

Mount extfs disk on MacOS #3

Open
@AnalogJ

Description

@AnalogJ

https://openwebcraft.com/how-to-mount-an-ext4-linux-usb-drive-on-macos-in-2024/
https://www.jeffgeerling.com/blog/2024/mounting-ext4-linux-usb-drive-on-macos-2024


How hard can it be, right? 🧐

Well… coming from years of daily driving Linux I first had to remember: it's probably not as straight fwd. as it should be—at least IMO.

I rather quickly stumbled on this great post from Jeff:
Mounting an ext4 linux USB drive on macOS in 2024 —such a great title 😉

I skipped Jeff's approach (macfuse), and went straight for the approach outlined in the comments—to go w/ macos-fuse-t:

brew install pkg-config
brew tap macos-fuse-t/homebrew-cask
brew install fuse-t

git clone https://github.com/macos-fuse-t/ext4fuse.git && cd "$(basename "$_" .git)"
locate fuse.h
ls "/Library/Application Support/fuse-t/include/fuse/fuse.h"
# vi Makefile 
CFLAGS  += $(shell pkg-config fuse-t --cflags) -DFUSE_USE_VERSION=26 -std=gnu99 -g3 -Wall -Wextra
CFLAGS  += -DEXT4FUSE_VERSION=\"$(VERSION)\"
CFLAGS  += -I"/Library/Application Support/fuse-t/include/fuse"

In a new terminal run

make

diskutil list

mkdir ~/ext4_mount
sudo ./ext4fuse /dev/disk6s1 ~/ext4_mount -o allow_other

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions