Mount HFS & HFSPLUS (Apple Filesystem Types)

Issues related to hardware problems

Did the trick for you?

Yes
4
67%
No
1
17%
Not tested yest
1
17%
 
Total votes: 6

i3z
Posts: 3
Joined: 2018/06/09 21:29:11

Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by i3z » 2018/06/09 22:01:01

Hello,

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
To install ELRepo for CentOS-7:

Code: Select all

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
To install ELRepo for CentOS-6:

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
Step 3:

Code: Select all

yum install kmod-hfsplus
Step 4:

Code: Select all

yum install hfsplus-tools
Finally confirm installation via:

Code: Select all

rpm -qa | grep hfsplus
Sample Output
[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
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.

SOLUTIONS B:

Check your modprobe configure files.

Code: Select all

ls -la /etc/modprobe.d
If you can see any of files below you have to permanently delete them to mount APPLE FILESYSTEM TYPES

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
Last edited by i3z on 2018/08/27 21:48:01, edited 1 time in total.

cyberfalco
Posts: 1
Joined: 2018/08/27 17:00:35

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by cyberfalco » 2018/08/27 18:06:18

no package kmod-hfsplus available

User avatar
TrevorH
Forum Moderator
Posts: 31083
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2018/08/27 19:55:20

Did you do all the steps listed in the post you replied to? You need to install the ELRepo yum repository by downloading and installing their elrepo-release rpm first.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

i3z
Posts: 3
Joined: 2018/06/09 21:29:11

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by i3z » 2018/08/27 21:09:37

cyberfalco wrote:
2018/08/27 18:06:18
no package kmod-hfsplus available
Edited: I am sorry, I missed obvious part of installing ELRepository

Import GPG Key

Code: Select all

rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
To install ELRepo for CentOS-7:

Code: Select all

rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
To install ELRepo for CentOS-6:

Code: Select all

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


Post been updated. As TervorH said “You need to install the ELRepo yum repository”.
Last edited by i3z on 2018/08/27 21:51:47, edited 1 time in total.

User avatar
TrevorH
Forum Moderator
Posts: 31083
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2018/08/27 21:36:20

Actually the bit to download and install the elrepo-release package is missing from those instructions. It does the GPG key, then skips straight into installing packages from the repo that you have yet to install...
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

i3z
Posts: 3
Joined: 2018/06/09 21:29:11

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by i3z » 2018/08/27 21:52:59

TrevorH wrote:
2018/08/27 21:36:20
Actually the bit to download and install the elrepo-release package is missing from those instructions. It does the GPG key, then skips straight into installing packages from the repo that you have yet to install...
Absolutely, thank you.

User avatar
jlehtone
Posts: 3671
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by jlehtone » 2018/08/28 06:52:27

rpm -Uvh ...
Is not recorded in yum history and yum will bark about someone acting behind its back.

Code: Select all

yum install https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
achieves the same with yum.


At least the el7 version includes /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
which the /etc/yum.repos.d/elrepo.repo uses as gpgkey.
If you omit the rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org,
then yum will ask/import key on first install from ELRepo.
The question is, do you (need to) trust http://elrepo.org/RPM-GPG-KEY-elrepo.org
more than the content of https://www.elrepo.org/elrepo-release-* ... noarch.rpm


Further note:
7.0-3.el7 and 6-8.el6 are transient version numbers. The packages do get updates.
I have no idea how long the old versions remain on site.
Therefore, future user: check the ELRepo site for current version number of elrepo-realease.rpm.

ben239568
Posts: 10
Joined: 2021/02/06 15:43:19

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by ben239568 » 2021/02/06 15:49:37

Hi, I followed all the commands listed on here but it still doesn't work.

Code: Select all

[root@secure files]# mount -t hfs somefile.iso ./somefile_fs
mount: unknown filesystem type 'hfs'
Can anybody help me figure this out? I'm under CENTOS 7.6.1810 (Core)

User avatar
TrevorH
Forum Moderator
Posts: 31083
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2021/02/06 16:16:00

Probably because the kmod-hfs* packages from ELRepo will require you to run a kernel that was built in living memory and 7.6 is years out of date. Perhaps start by running yum update and getting onto something slightly less prehistoric.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

ben239568
Posts: 10
Joined: 2021/02/06 15:43:19

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by ben239568 » 2021/02/06 16:33:04

This thread dates from: June 2018
My Linux kernel: 4.19 LTS (October 2018, newer than this thread)
CentOS: 7.6.1810 (November 2018, newer than this thread)
WHM/cPanel: 92.0.9 (January 2021, newer than this thread)

Your signature states that CentOS 6 died just 2 months ago, so how can 7.6 be so outdated if 6.x died only 2 months ago?! This thread dates from 2018/06/09 which is soon to be 3 years old. If my system is "years" out of date, then shouldn't it approximately match what the OP had when posting this solution? Is there something I'm missing here?

Post Reply

Return to “CentOS 7 - Hardware Support”