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

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2021/02/06 17:54:39

You're not using a CentOS kernel so all bets are off. The ELRepo kmods only work with the distro kernel. And yes, 7.6 is from 2018 which is 2 going on 3 years ago, which qualifies for "years out of date".

We do not support systems with cpanel installed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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 18:25:34

Alright so I have now disabled the datacenter kernel and ran again: yum update

This took half an hour and it installed/updated almost a thousand packages and updated CentOS to 7.9.2009 (September 2020) and the kernel to 4.19.62 (July 2019). It says it has completed successfully. I then re-ran all the commands from the top of this thread but none of them installed anything, all saying like:

Code: Select all

Package hfsplus-tools-540.1.linux3-4.el7.x86_64 already installed and latest version
Nothing to do
Here is the rpm -qa output:

Code: Select all

[root@secure files]# rpm -qa | grep hfsplus
kmod-hfsplus-0.0-5.el7_5.elrepo.x86_64
hfsplus-tools-540.1.linux3-4.el7.x86_64
Here is the modprobe.d listing:

Code: Select all

[root@secure files]# ls -la /etc/modprobe.d
total 28
drwxr-xr-x   2 root root  4096 Feb  6 12:55 .
drwxr-xr-x 108 root root 20480 Feb  6 13:23 ..
-rw-r--r--   1 root root   215 Feb  3 10:16 dccp-blacklist.conf
-rw-r--r--   1 root root     0 Feb  6 13:00 tuned.conf
Still getting mount: unknown filesystem type 'hfs'

Any other ideas to try?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2021/02/06 21:47:02

All CentOS 7 kernels are in the 3.10.0-xxx.y.z.el7 series. A 4.19 kernel is not ours and you'd have to ask whoever supplied it to rebuild it with hfs[plus] support.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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/07 00:16:59

I don't understand how CentOS works. I used yum update and that's what supplied this kernel update. Its name does not include my datacenter so I figured it was just a generic kernel but it looks like it's just some other random kernel that will not work with this kmod thing. I guess it's too complicated for a standard cPanel web server running CentOS to mount a HFS partition. I would have thought that just by running CentOS alone would be sufficient for this CentOS package to work, but I guess I misunderstood what an OS is for. Thanks anyway, I'll look for another solution.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by TrevorH » 2021/02/07 00:25:54

Kernel modules have to be built for the kernel you are running. You can't use one built for a 3.10 kernel on a 4.19 running system nor vice versa. So when you install kmod-hfs it needs to have been built against the same kernel source that the running kernel was built from - in the case of the distro kernel, that is built specifically by Red Hat so that every kernel within one point release uses the same stable KABI so a module can be built that works on any 7.9 kernel (for example). But that same module will not work on a completely foreign kernel.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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/07 01:07:19

This suddenly feels very, very complicated to me. Why is this HFS mounting thing not like cPanel. It does not care what kernel version you're running. It just installs and runs on any modern CentOS server. In other words: If software requires a specific kernel version, then what is even the point of an OS to begin with? You have two servers running the exact same OS version, yet one can mount HFS partitions and the other can't and will never be able to. This is SO CONFUSING.

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

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by jlehtone » 2021/02/08 08:08:25

(Standard) interfaces between layers.

You interact with application via (G)UI. There is set of commands/buttons you can type/click that the program understands and the program shows text/image that you understand.

The application (e.g. cPanel) in turn uses an interface that the OS (kernel and system libraries) has. For example, "create file" is an action that the application can request -- without knowing anything about the actual filesystem.

Kernel has separate, standard interfaces to (filesystem, hardware, etc) drivers. The driver module must match the interface of the version of the kernel.

The kernel's interface toward module is not tightly coupled to the interface toward application. The HFS module is in completely different layer than cPanel.

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

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by ben239568 » 2021/02/27 17:42:32

My point was: I can't mount a HFS partition because of a slightly different kernel version, but yet, on that same server I can just pop a virtual machine and mount the HFS partition no problem. You see my point? It feels very weird to me that you can emulate this but not get around to making it work natively. Oh well. This will have to be done thru emulation I guess. Not much I can do besides that it seems.

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

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by jlehtone » 2021/02/27 18:38:13

There is no "emulation" at play. One of your OS has HFS driver for its kernel and the other does not?

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: Mount HFS & HFSPLUS (Apple Filesystem Types)

Post by Whoever » 2021/03/09 02:41:10

ben239568 wrote:
2021/02/07 00:16:59
I don't understand how CentOS works. I used yum update and that's what supplied this kernel update. Its name does not include my datacenter so I figured it was just a generic kernel but it looks like it's just some other random kernel that will not work with this kmod thing. I guess it's too complicated for a standard cPanel web server running CentOS to mount a HFS partition. I would have thought that just by running CentOS alone would be sufficient for this CentOS package to work, but I guess I misunderstood what an OS is for. Thanks anyway, I'll look for another solution.
Why were you running a "datacenter kernel"?

You have some non-standard repositories installed. CentOS won't simply download "some other random kernel" -- it will download from the repositories that are configured on your system. What's in the directory /etc/yum.repos.d ?

You appear not to be running CentOS, but instead, some modification of CentOS.

Post Reply