I was also already wondering not to find any LABEL on the disk. Formatted it quiet a time ago (I guess it was snow leopard as well) as HFS+ non-journaled and, as you mentioned, as GPT. After your kind reply I was doing some research on labels and OS X / GPT but could not find any helpful hints about it. I also tested disk utility that just seems to give info on UUID (and OS X specific identifiers) but does not provide any command to even show -apart from modify- a LABEL.
I switched from openELEC where I faced the same phenomena under release 5. Since the release of Isengard (and with it v 6 of openELEC), the HD was shown properly by its name and no longer by UUID. Seems though they have changed the automounter.
I also checked on udev. There seems to be a possibility to use partitions label but there is no statement on if this also works with GPT / HFS+. The english wiki did not help too much but just in case you are interested, here‘s the link.
Though the german wiki states the following method:
/etc/udev/rules.d/11-media-by-label-auto-mount.rules
KERNEL!="sd[a-z]*", GOTO="media_by_label_auto_mount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="media_by_label_auto_mount_end"
# Do not mount devices already mounted somewhere else to avoid entries for all your local partitions in /media
ACTION=="add", PROGRAM=="/bin/grep -q ' /dev/%k ' /proc/self/mountinfo", GOTO="media_by_label_auto_mount_end"
# Open LUKS partition if necessary
PROGRAM=="/sbin/blkid -o value -s TYPE %N", RESULT=="crypto_LUKS", ENV{crypto}="mapper/", ENV{device}="/dev/mapper/%k"
ENV{crypto}=="", ENV{device}="%N"
ACTION=="add", ENV{crypto}!="", PROGRAM=="/usr/bin/xterm -display :0.0 -e 'echo Password for /dev/%k; /sbin/cryptsetup luksOpen %N %k'"
ACTION=="add", ENV{crypto}!="", TEST!="/dev/mapper/%k", GOTO="media_by_label_auto_mount_end"
# Global mount options
ACTION=="add", ENV{mount_options}="noatime"
# Filesystem-specific mount options
ACTION=="add", PROGRAM=="/sbin/blkid -o value -s TYPE %E{device}", RESULT=="vfat|ntfs", ENV{mount_options}="%E{mount_options},utf8,gid=100,umask=002"
# Get label if present, otherwise assign one
PROGRAM=="/sbin/blkid -o value -s LABEL %E{device}", ENV{dir_name}="%c"
# Use basename to correctly handle labels such as ../mnt/foo
PROGRAM=="/usr/bin/basename '%E{dir_name}'", ENV{dir_name}="%c"
ENV{dir_name}=="", ENV{dir_name}="usbhd-%k"
# Mount the device
ACTION=="add", ENV{dir_name}!="", RUN+="/bin/mkdir -p '/media/%E{dir_name}'", RUN+="/bin/mount -o %E{mount_options} /dev/%E{crypto}%k '/media/%E{dir_name}'"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'"
ACTION=="remove", ENV{crypto}!="", RUN+="/sbin/cryptsetup luksClose %k"
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/rmdir '/media/%E{dir_name}'"
# Exit
LABEL="media_by_label_auto_mount_end"
I don’t know yet, if that might be of any help and so for now I hope for future releases of OSMC where there might be a different or modified autoloader (or a version of udev) that also supports GPT volumes with HFS+ filesystems in a maybe slightly more comfortable way.
In case you (or somebody who is stumbling about this post) has further info, I d very much appreciate to get additional insights. If I find a solution (which i’d consider highly doubtful), I ll let you know.
Thank you for your kind help and the time you took for explaining. Keep up the good work and have fun doing so.
Best,
hi2hello