HFSplus

186 views
Skip to first unread message

kashu

unread,
May 17, 2015, 10:14:43 AM5/17/15
to al...@googlegroups.com
Hi,
I have an issue: I can't get my HFS+ HD to mount.
I am using alt f rc4.1, kernel modules are loaded.
I have tried clicking on 'load' and 'mount', i have tried checking and doing a status short test on the drive, but it does not change anything.
Am I missing a step?

Thanks.
Screen Shot 2015-05-17 at 16.13.32.png

kashu

unread,
May 17, 2015, 10:17:40 AM5/17/15
to al...@googlegroups.com
by the way I have a DNS320L and here is an extract of a log if this is of any use:
mdadm: No md superblock detected on /dev/sda1.
hot: Unknown partition type "hfsplus" in "sda1"

João Cardoso

unread,
May 18, 2015, 1:25:13 PM5/18/15
to al...@googlegroups.com, lim...@gmail.com
Automounting is only done for ext2/3/4/ntfs/fat, you have to mount using the command line, 'mount -t <type> (hfs? hfsplus?) /dev/sd?? /mnt/dir'.
There are no fsck tools available.

How did you create the filesystem on the disk? on a mac? Are you using a USB attached disk? What does 'blkid /dev/sd*' reports?
If you manage to mount it, please report back, including the verbatim command used and needed kernel modules to load (the output of 'lsmod' after mounting will be useful)
 

Thanks.

kashu

unread,
May 19, 2015, 5:50:46 PM5/19/15
to al...@googlegroups.com
Thanks for your help!!
Filesystem was created on a mac. There is a usb key attached to the NAS.
blkid reports the follozing: /dev/sda1: UUID="211453FAC8FD4BE2" LABEL="HD_HFSPLUS" TYPE="hfsplus"

cmds used to mount
mkdir /mnt/HFSPlus
mount -t hfsplus /dev/sda1 /mnt/HFSPlus

lsmod after mount:
Module                  Size  Used by    Not tainted
hfsplus                83836  1
usblp                   8292  0

One more thing: it is set as read only for now. Do you know how I could change this?


Le dimanche 17 mai 2015 16:14:43 UTC+2, kashu a écrit :

João Cardoso

unread,
May 19, 2015, 10:27:06 PM5/19/15
to al...@googlegroups.com, lim...@gmail.com


On Tuesday, 19 May 2015 22:50:46 UTC+1, kashu wrote:
Thanks for your help!!

Thanks for your feedback!
 
Filesystem was created on a mac. There is a usb key attached to the NAS.
blkid reports the follozing: /dev/sda1: UUID="211453FAC8FD4BE2" LABEL="HD_HFSPLUS" TYPE="hfsplus"

cmds used to mount
mkdir /mnt/HFSPlus
mount -t hfsplus /dev/sda1 /mnt/HFSPlus

lsmod after mount:
Module                  Size  Used by    Not tainted
hfsplus                83836  1
usblp                   8292  0


Did you had to load the hfsplus kernel module manually, or was it auto loaded at mount time? You can try that by:
-umounting the fs using 'umount /mnt/HFSPlus'
-remove the module by using 'rmmod hfsplus' or 'modprobe -r hfsplus', and check with 'lsmod' that is not loaded nor in use
-remount using the mount command that you have already used and see if the hfsplus module is loaded and put at work (used) automatically.

One more thing: it is set as read only for now. Do you know how I could change this?

Notice that the Alt-F mount command is the busybox one, not the full-featured one, so some mount options that you might see in other posts might not be supported -- use 'mount --help' to see the available options.

hfsprogs is not available under Alt-F, so you can't fsck the fs. Fill in a package request so I will not forget to provide a package (but that's not a priority for me).

kashu

unread,
May 25, 2015, 3:15:47 AM5/25/15
to al...@googlegroups.com, lim...@gmail.com


Le mercredi 20 mai 2015 04:27:06 UTC+2, João Cardoso a écrit :


On Tuesday, 19 May 2015 22:50:46 UTC+1, kashu wrote:
Thanks for your help!!

Thanks for your feedback!
 
Filesystem was created on a mac. There is a usb key attached to the NAS.
blkid reports the follozing: /dev/sda1: UUID="211453FAC8FD4BE2" LABEL="HD_HFSPLUS" TYPE="hfsplus"

cmds used to mount
mkdir /mnt/HFSPlus
mount -t hfsplus /dev/sda1 /mnt/HFSPlus

lsmod after mount:
Module                  Size  Used by    Not tainted
hfsplus                83836  1
usblp                   8292  0


Did you had to load the hfsplus kernel module manually, or was it auto loaded at mount time? You can try that by:
-umounting the fs using 'umount /mnt/HFSPlus'
-remove the module by using 'rmmod hfsplus' or 'modprobe -r hfsplus', and check with 'lsmod' that is not loaded nor in use
-remount using the mount command that you have already used and see if the hfsplus module is loaded and put at work (used) automatically.

Here is the result of those commands:

[root@dns325]# umount /mnt/HFSPlus
[root@dns325]# rmmod hfsplus
[root@dns325]# modprobe -r hfsplus
[root@dns325]# lsmod

Module                  Size  Used by    Not tainted
usblp                   8292  0
[root@dns325]# mount -t hfsplus /dev/sda1 /mnt/HFSPlus
[root@dns325]# lsmod

Module                  Size  Used by    Not tainted
hfsplus                83836  1
usblp                   8292  0

 
One more thing: it is set as read only for now. Do you know how I could change this?

Notice that the Alt-F mount command is the busybox one, not the full-featured one, so some mount options that you might see in other posts might not be supported -- use 'mount --help' to see the available options.

hfsprogs is not available under Alt-F, so you can't fsck the fs. Fill in a package request so I will not forget to provide a package (but that's not a priority for me).

ok thanks. I created a package reauest as advised: https://sourceforge.net/p/alt-f/packagerequest/65/
 

João Cardoso

unread,
May 25, 2015, 12:09:39 PM5/25/15
to al...@googlegroups.com, lim...@gmail.com
Thanks.

I have meanwhile created the hfsprogs package (stolen from Debian) ans was able to create/use/stress-test hfs+ non journaled filesystems.
Everything runs OK, but fsck.hfsplus wasn't able to fix the filesystem, it actually damaged it. It might be a cross-compilation issue or a linux kernel issue, so I will not release the package until that is sorted out.

From my readings I understand that linux can't work with journaled hfs+ filesystems. The most it can do it to replay the journal if pending operations exists and then continue using the fs in non-journal mode. But that functionality does not seems to exists in the current Alt-F kernel, as if I create a journaled hfs+, I can only mount it RO.

So you either
-wait that Alt-F next release has a kernel that deals better with journaled hfs+
-or you remove the journal from the USB disk filesystem (using the mac diskutil or similar prog) and use fsck in the *mac* when needed. And never forget to unmount the fs before unplugging it from eith the mac or the box -- easy to forget.

José F

unread,
Oct 27, 2024, 3:20:38 PM10/27/24
to Alt-F
Hi everyone, does the current version of Alt-f now deal with journaled HFS+?  If so, what package do I have to install?

Thanks in advance!
José
Reply all
Reply to author
Forward
0 new messages