Remove HFS filesystem from blacklist.

when I try to mount an HFS filesystem i get the following error:

Error mounting /dev/sdc4 at /run/media/rick/Disk: unknown filesystem type ‘hfs’ (hint: possibly blacklisted)

Is there a way to remove HFS from the blacklist in an Opensuse 15.3 install?

hfs is listed in /etc/filesystems.

How do you mount it?

Post the complete commandline and the complete output.

Use Code-Tags:
https://forums.opensuse.org/showthread.php/536143-Using-Code-Tags-Around-Your-Paste

Seeing his error I message assume that it is mounted by the desktop. Thus he can not reproduce the exact command.

@rick71, you could try to mount it from the CLI:

mount /dev/sdc4 /mnt

so we can see the exact messages.

Also, the message says “possibly”. Your conclusion seems to be that it is and thus that removal can be done. But first you must be sure that that is the case.

I insert a Zip disk into a USB Zip drive, the icon shows up on the desktop. I double click on the icon and get the above message.

TOWER:~ # mount /dev/sdc4 /mnt
mount: /mnt: unknown filesystem type 'hfs' (hint: possibly blacklisted, see mount(8)).

I have read threads about blacklisting several file systems in SLES and OpenSuse.
How do I check if the filesystem is actually blacklisted.

Sure:

**erlangen:~ #** cat /usr/lib/modprobe.d/60-blacklist_fs-hfs.conf 
# **DO NOT EDIT THIS FILE!** 
# 
# The hfs file system is blacklisted by default because it isn't actively 
# supported by SUSE, not well maintained, or may have security vulnerabilites. 
blacklist hfs 
# **The filesystem can be un-blacklisted by running "modprobe hfs".** 
# See README.md in the suse-module-tools package for details. 
install hfs /usr/lib/module-init-tools/unblacklist hfs; /sbin/modprobe --ignore-install hfs 

**erlangen:~ #**

Install hfsprogs and hfsutils, as root:

mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint

Have a read: https://github.com/openSUSE/suse-module-tools/blob/master/README.md (found this with a bit of googling).

in my system it seems indeed to be blacklisted:

boven:/lib/modprobe.d # l *hfs*
-rw-r--r-- 1 root root 415 May  7 23:18 60-blacklist_fs-hfs.conf
boven:/lib/modprobe.d #
TOWER:~ # modprobe hfs
modprobe: FATAL: Module hfs not found in directory /lib/modules/5.3.18-150300.59.93-default
TOWER:~ # /usr/lib/module-init-tools/unblacklist hfs
-bash: /usr/lib/module-init-tools/unblacklist: No such file or directory
TOWER:~ # /sbin/modprobe --ignore-install hfs
modprobe: FATAL: Module hfs not found in directory /lib/modules/5.3.18-150300.59.93-default

Details at /usr/share/doc/packages/suse-module-tools/README.md

Have you done it this way?
Module is there…

ls -al /lib/modules/$(uname -r)/kernel/fs/hfsplus/
insgesamt 96
drwxr-xr-x 1 root root    28 30. Sep 15:50 .
drwxr-xr-x 1 root root   676 30. Sep 15:50 ..
-rw-r--r-- 1 root root 96457 30. Sep 10:55 hfsplus.ko.zst

Blacklisted filesystem modules are provided by kernel-<type>-optional. I have to install it for HPFS.

I am looking for hfs, not hfs plus.

What do I replace <type> with?

I do have kernel-default-extra installed.

I posted a typo. You need kernel-default-optional, as opposed to kernel-azure-optional or kernel-preempt-optional.

/lib/modules/5.3.18-150300.59.93-default/kernel/fs shows hfsplus and hpfs, but not hfs.

Hi
You would need to install the kernel source and build the hfs module, install and probe. Then add hfs to /etc/filesystems.

I’ll read up on that, but I’m not sue I want go that deep.
Thanks, though.
:slight_smile: