Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mount support for hfsplus

Featured Replies

Hi,

 

I would like to mount a hfsplus formated esata external drive on the esata port of my Asus mb. While testing, I found that the hfsplus module is missing and hfsplus is not listed as a filesystem in /proc.  What would it take to make hfsplus available in unRaid.

I uploaded the 'hfsplus.ko' kernel module to the download directory.  Download to your Flash and add these lines to the top of your 'go' script:

 

mkdir /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus
cp /boot/hfsplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus
depmod -a

 

Now you should be able to mount your HFS+ disk, giving it the the '-t hfsplus' option.  If this works ok, we can get it into the next release.

  • Author

Hi,

 

I added this to my go script:

 

#!/bin/bash

 

# Add hfs+ module

mkdir /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp /boot/hsfplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

depmod -a

 

# Start the Management Utility

/usr/local/sbin/emhttp &

 

and hsfplus.ko is in the root directory of the flash. The mkdir is creating the hfsplus directory, but the cp is not copying the hsfplus.ko to the hfsplus directory.

If you type the 'cp' command by hand, what error message does it generate?  ???

  • Author

This is the result:

 

root@Nas:~# cp /boot/hsfplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp: cannot stat `/boot/hsfplus.ko': No such file or directory

 

this is the listing of /boot:

 

root@Nas:/boot# ls -al

total 30342

drwxr-xr-x  4 root root    1024 Jan  1  1970 ./

drwxr-xr-x 16 root root        0 May  1 21:08 ../

-rwxr-xr-x  1 root root    6148 Apr  8 22:45 .DS_Store*

-rwxr-xr-x  1 root root    4096 Oct 21  2007 ._.Trashes*

-rwxr-xr-x  1 root root    4096 Apr  6 00:04 ._bzimage*

-rwxr-xr-x  1 root root    4096 Apr  6 00:04 ._bzroot*

-rwxr-xr-x  1 root root    4096 May  1 20:09 ._hfsplus.ko*

-rwxr-xr-x  1 root root    4096 Feb 10 21:33 ._libslang.so.2*

-rwxr-xr-x  1 root root  1569272 Apr  4 21:08 bzimage*

-rwxr-xr-x  1 root root 28595716 Apr  4 21:09 bzroot*

drwxr-xr-x  3 root root    2048 Apr 28 17:39 config/

-rwxr-xr-x  1 root root    76721 May  1 19:08 hfsplus.ko*

-r-xr-xr-x  1 root root    10835 Apr 28 17:39 ldlinux.sys*

-rwxr-xr-x  1 root root  640536 Feb 10 13:37 libslang.so.2*

-rwxr-xr-x  1 root root    5124 Mar 20  2007 license.txt*

drwxr-xr-x  2 root root    1024 May  1 20:36 localconfig/

-rwxr-xr-x  1 root root    99256 Jan  3  2007 memtest*

-rwxr-xr-x  1 root root    33404 Jun 10  2007 menu.c32*

-rwxr-xr-x  1 root root    2093 Oct  6  2007 readme.txt*

-rwxr-xr-x  1 root root      196 Aug 27  2007 syslinux.cfg*

root@Nas:/boot#

 

 

 

well I see it :)

 

hfs <> hsf

 

 

  • Author

I spent some time staring at the commands looking just for that type of error and still didn't see it. It now copies hfsplus.ko to the correct directory. For any other mac users I had to reformat my external drive using the master boot partition instead of GUID, otherwise I got the error: hfs: unable to find HFS+ superblock.

 

If the external drive is to be accessible through the Finder, you need to create a mount point in your user shares (or drives), otherwise it seems that the share isn't exported. Add the following to your go script to mount the share:

 

# Mount hfs+ partitions

mount -w -t hfsplus /dev/sdh1 /mnt/user/backup/esata_1

 

 

 

 

If you add a few more lines to your go script you can mount the hfs partition anywhere and still have it as a shared drive on your LAN

All you need do is create the mount-point (an empty drectory) somewhere convenient, mount the drive, then create a share for it in smb.shares

and lastly, invoke smbcontrol to re-read the smb.shares.   Here is an example were I used /tmp/esata as the mount point and created a share named esata_1

to let it be seen on the LAN.

 

# Mount hfs+ partitions

mkdir /tmp/esata

mount -w -t hfsplus /dev/sdh1 /tmp/esata

 

# make a share so the files are accessible on the LAN

echo "[esata_1]" >>/etc/samba/smb.shares

echo "path = /tmp/esata" >>/etc/samba/smb.shares

echo "read only = No" >>/etc/samba/smb.shares

echo "force user = root" >>/etc/samba/smb.shares

echo "map archive = Yes" >>/etc/samba/smb.shares

echo "map system = Yes" >>/etc/samba/smb.shares

echo "map hidden = Yes" >>/etc/samba/smb.shares

echo "create mask = 0711" >>/etc/samba/smb.shares

echo "directory mask = 0711" >>/etc/samba/smb.shares

smbcontrol smbd reload-config

 

Have fun...

 

Joe L.

 

Edit: this is out-of-date and does not give the correct file name in current versions of unRAID.  (4.3 was so long ago)

 

You can change the name of the file being appended above to

/etc/samba/smb-shares.conf and it should work.

  • 1 year later...

it's been a while since this thread was active ...

It helped me though to mount my hfsplus formatted drive in order to copy all it's contents into the array and afterwards add the drive to the array (where a clearing process deletes the drive!)

 

I used

mount -w -t hfsplus /dev/sdd2 /tmp/hfsplus

 

before that I created a dir in the tmp folder called hfsplus

the drive's name was sdd and it had a ssd1 partition (vfat) and a ssd2 partition (hfsplus)

  • 10 months later...

Ok stupid question. Where can I find the "Go" script?

Ok stupid question. Where can I find the "Go" script?

in your "config" folder

Joe if I use your commands above, instead of esata I would use usb2 or the name of the drive? For example I named it MacDaddy in finder. I don't suppose there is enough need to add this to unmenu. I am not sure if I am at this level of comprehension.

Joe if I use your commands above, instead of esata I would use usb2 or the name of the drive? For example I named it MacDaddy in finder. I don't suppose there is enough need to add this to unmenu. I am not sure if I am at this level of comprehension.

You can name it any name you like.

 

unMENU's disk management page already has the ability to mount disks with recognized file systems.

 

Joe L.

Don't quote me on this but if you modprobe the hfsplus driver and then load up unMenu I think it will allow you to mount the drive.

Under disk management it has the following two entries. The drive is 1.5 TB. To the side of each drive it has the "Create reiserfs on /dev/sdg1" and the same on sdg2. Do I need to click the create button?

 

 

usb-ST315003_41AS_201003140AC7-0:0 * 1T /dev/sdg

partition (204,800 blocks): /dev/sdg1

 

 

 

usb-ST315003_41AS_201003140AC7-0:0-part2 * /dev/sdg2

Under disk management it has the following two entries. The drive is 1.5 TB. To the side of each drive it has the "Create reiserfs on /dev/sdg1" and the same on sdg2. Do I need to click the create button?

 

 

usb-ST315003_41AS_201003140AC7-0:0 * 1T /dev/sdg

partition (204,800 blocks): /dev/sdg1

 

 

 

usb-ST315003_41AS_201003140AC7-0:0-part2 * /dev/sdg2

NO... not unless you do not want the data presently on the drive.

 

Joe L.

Under disk management it has the following two entries. The drive is 1.5 TB. To the side of each drive it has the "Create reiserfs on /dev/sdg1" and the same on sdg2. Do I need to click the create button?

 

 

usb-ST315003_41AS_201003140AC7-0:0 * 1T /dev/sdg

partition (204,800 blocks): /dev/sdg1

 

 

 

usb-ST315003_41AS_201003140AC7-0:0-part2 * /dev/sdg2

 

NO do not push create or it will erase all data on those drives.

 

 

You will need to follow the directions outlined earlier in this thread to get the drive mounted.  If you "modprobe" the hfsplus driver then the disk management page may allow you to mount the drive.

Sorry to be a PITA but copied this to my go script

 

mkdir /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp /boot/hfsplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

depmod -a

 

Got this error,

/boot/hsfplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp: cannot stat `/boot/hsfplus.ko': No such file or directory

 

Did I put the wrong script in? Also Sorry I do not know what "modprobe" is?

Sorry to be a PITA but copied this to my go script

 

mkdir /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp /boot/hfsplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

depmod -a

 

Got this error,

/boot/hsfplus.ko /lib/modules/2.6.24.4-unRAID/kernel/fs/hfsplus

cp: cannot stat `/boot/hsfplus.ko': No such file or directory

 

Did I put the wrong script in? Also Sorry I do not know what "modprobe" is?

First, what version of unRAID are you using?

 

modprobe is a command.

Type

modprobe hfsplus

 

You can see the existing drives loaded into memory by typing

lsmod

r

oot@Tower2:/boot# [b][color=blue]lsmod[/color][/b]
Module                  Size  Used by
md_mod                 46913  6
xor                    12849  1 md_mod
sata_sil                5408  1
ahci                   16605  6
r8169                  26900  0
i2c_i801                5620  0
libahci                13307  1 ahci
i2c_core               12189  1 i2c_i801

 

You can load the hfs driver by typing

modprobe hfsplus

root@Tower2:/boot# [b][color=blue]modprobe hfsplus[/color][/b]

 

You can then see it was loaded by typing lsmod once more

 

root@Tower2:/boot# [b][color=blue]lsmod[/color][/b]
Module                  Size  Used by
[color=red]hfsplus                61611  0[/color]
md_mod                 46913  6
xor                    12849  1 md_mod
sata_sil                5408  1
ahci                   16605  6
r8169                  26900  0
i2c_i801                5620  0
libahci                13307  1 ahci
i2c_core               12189  1 i2c_i801

 

4.7

i am logged in as root and i get ismod command not found, modprobe hfsplus does nothing.

 

i am logged in as root and i get ismod command not found, modprobe hfsplus does nothing.

 

 

it is an l (as in ell) not an I (as in eye)

check, let me try ell

 

ok now I see hfsplus is in there.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.