rick71
October 1, 2022, 4:38pm
#1
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
hcvv
October 1, 2022, 5:08pm
#3
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.
hcvv
October 1, 2022, 5:10pm
#4
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.
rick71
October 1, 2022, 5:18pm
#5
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.
rick71
October 1, 2022, 5:20pm
#6
hcvv:
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.
TOWER:~ # mount /dev/sdc4 /mnt
mount: /mnt: unknown filesystem type 'hfs' (hint: possibly blacklisted, see mount(8)).
rick71
October 1, 2022, 5:22pm
#7
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
hcvv
October 1, 2022, 5:38pm
#10
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 #
rick71
October 1, 2022, 7:05pm
#11
karlmistelberger:
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:~ #**
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
Sauerland:
Install hfsprogs and hfsutils, as root:
mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint
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
mrmazda
October 1, 2022, 9:20pm
#14
Blacklisted filesystem modules are provided by kernel-<type>-optional. I have to install it for HPFS.
rick71
October 1, 2022, 11:24pm
#15
Sauerland:
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
I am looking for hfs, not hfs plus.
rick71
October 1, 2022, 11:27pm
#16
What do I replace <type> with?
I do have kernel-default-extra installed.
mrmazda
October 2, 2022, 12:17am
#17
I posted a typo. You need kernel-default-optional, as opposed to kernel-azure-optional or kernel-preempt-optional.
rick71
October 2, 2022, 1:51am
#18
/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.
rick71
October 2, 2022, 3:07am
#20
I’ll read up on that, but I’m not sue I want go that deep.
Thanks, though.