The first thing to do before we access HFS+ drive, ensure our board is running lastest software.
sudo apt update
sudo apt upgradeInstall all HFS packages we need.
sudo apt-get install hfsplus hfsutils hfsprogs gdiskDecide your device's mounting path for instance we will use /media/hfsplus.
sudo mkdir /media/hfsplusCheck the drive with HFS+ filesystem.
sudo fdisk -lFor instance, the HFS+ drive located in /dev/sda2. We will mount this to /media/hfsplus as read-only.
sudo mount -t hfsplus -o noowner /dev/sda2 /media/hfsplusOr, for writable partition you need to run the command below
sudo mount -t hfsplus -o force,rw /dev/sda2 /media/hfsplusThe following steps is optional if you encounter file permission and not able to access particular folders or files.
We will need bindfs
sudo apt install bindfsNow take mounted file system before and provide a view of it with any uid you'd like.
mkdir ~/anyfolder
sudo bindfs -u $(id -u) -g $(id -g) /media/hfsplus ~/anyfolder