Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pwpearson/4785db92e0d6832d46d756431c99340d to your computer and use it in GitHub Desktop.
Save pwpearson/4785db92e0d6832d46d756431c99340d to your computer and use it in GitHub Desktop.

###Mount HFS & HFSPLUS (Apple Filesystem Types)

First thing first, you have to install kmod-hfs & kmod-hfsplus and hfsplus-tools.

Step 1: Import GPG Key

rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org

To install ELRepo for CentOS-7:

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

To install ELRepo for CentOS-6:

rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

Step 2:

yum install kmod-hfs

Step 3:

yum install kmod-hfsplus

Step 4:

yum install hfsplus-tools

Finally confirm installation via:

rpm -qa | grep hfsplus

Used to mount external drive

sudo mount -t hfsplus -o force,rw /dev/sdc1 /mnt/usb

or

sudo mount -t hfsplus -o remount,force,rw /mount/point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment