Have you suffered while trying to mount HFS & HFS+ in CentOS?
Easy doing but hard to find out, I was looking too many websites looking for solution to this answer and I couldn't find real one. Here I am share 0.02 experience today!
First thing first, you have to install kmod-hfs & kmod-hfsplus and hfsplus-tools.
Step 1: Import GPG Key
Code: Select all
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
Code: Select all
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
Code: Select all
rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
Step 2:
Code: Select all
yum install kmod-hfs
Code: Select all
yum install kmod-hfsplus
Code: Select all
yum install hfsplus-tools
Code: Select all
rpm -qa | grep hfsplus
Hard drive & partitions should be working fine now! IF NOT keep reading. Harden security will stop mount Apple Filesystem Types and show error as: mount: unknown filesystem type 'hfsplus' or 'Master: hfsplus not configure in the kernel' BUT APFS must be written on the kernel configuration kmod-hfs, kmod-hfsplus will take while to installation cause it's adding new file-system types to the kernel, kernel first responsibility is HARDWARE, so if you suffer from this issue EVEN after installation of those packages above. That means either misconfiguration with kernel or HARDEN SECURITY been applied.[root@server modprobe.d]# rpm -qa | grep hfsplus
hfsplus-tools-540.1.linux3-4.el7.x86_64
kmod-hfsplus-0.0-5.el7_5.elrepo.x86_64
SOLUTIONS B:
Check your modprobe configure files.
Code: Select all
ls -la /etc/modprobe.d
Code: Select all
rm -rf hfsplus.conf
rm -rf hfs.conf
rm -rf udf.conf
rm -rf squashfs.conf
rm -rf jffs2.conf
rm -rf freevxfs.conf
rm -rf cramfs.conf
That's it! you can immediately open file window and press any of you APFS hard drive and you won't see error message any more.
Thank you for reading, please leave comment.
Best Regards,
Az