You have to install Xcode Command Line Tool in your computer. It comes with Xcode software. If you have already install Xcode or Xcode Command Line Tools go to the next step. If not, follow the next instructions :
-
First option : Paste this command on a terminal to install Xcode Command Line Tools :
xcode-select —install
Follow the instructions displayed in the terminal window. The main interest of this option is the weight of these tools compared to Xcode whole software as it weighs several Go (about 10 Go). -
second option : Install Xcode.
First install Homebrew on your mac computer.
To do that, open terminal and paste following command-line :
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Follow instructions displayed in terminal window
Now you can install new command line derived from linux system.
Reboot your computer
Then you have to install package to mount and read ext volume such as ext2/ext3/ext4 format.
Paste on terminal :
brew install --cask osxfuse
Then paste on terminal again :
brew install ext4fuse
Reboot your computer
To mount an ext volume, use the following command line in terminal :
diskutil list
You could find the URL of your volume to mount in IDENTIFIER column, such as :
/dev/disk2/s1
Then to mount this volume tap this command line :
sudo ext4fuse /dev/disk2s1 ~/tmp/USB_Linux -o allow_other
as /dev/disk2s1
is the path of your external volume and ~/tmp/USB_Linux
will be the path of your new volume mounted on your desktop.
Becareful : you just have read option on this volume. Get a write access is a very cautious way ... Prefer install a virtual machine to do this.
The best way to edit files is to copy/paste the directory on your computer, for instance on your Desktop folder.
Then you have to set-up the good rights to access to the files.
To paste on your Desktop in macOS system use the following command line : sudo cp -rf ~/tmp/USB_Linux/ ~/Desktop
If you paste the Volume root directory on your desktop and you don't get the right to write, you have to use this command line :
chmod -R 777 ~/Desktop/folder_name
(on macOS or Linux system)
Now you can edit the files on your computer
Enjoy linux format volume on your Mac !