iMacosiris
Posts: 1
Joined: Sat Apr 25, 2020 3:29 am

Can't mount HFS+ disk on fstab

Sat Apr 25, 2020 3:41 am

Hi guys !
This is my first post here, so nice to meet you !

Hope you can help me with this, I just configure my raspberry PI 3B+ with RetroPie and put my boot media on a USB drive and my rom files on an HFSplus disk
I follow this guide to move the rom files, no problem here -> https://github.com/RetroPie/RetroPie-Se ... -USB-drive
But I try to add both USB drive to the FSTAB files and I can't make the raspberry boot with this changes

this is the current info in my system

Code: Select all

pi@retropie:~ $ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Apr 25 04:17 1D8D-D42B -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 25 04:17 36e09f00-1197-377f-8f97-0901843273f0 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 25 04:17 b5bfbb14-56d1-4eab-a831-0d17cd711a6a -> ../../sda2
pi@retropie:~ $ sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
UUID                                 NAME   FSTYPE    SIZE MOUNTPOINT  LABEL    MODEL
                                     sda             28.7G                      Ultra Fit       
1D8D-D42B                            |-sda1 vfat      240M /media/usb1 boot     
b5bfbb14-56d1-4eab-a831-0d17cd711a6a `-sda2 ext4     28.4G /           retropie 
                                     sdb            931.5G                      MQ01ABD100      
36e09f00-1197-377f-8f97-0901843273f0 `-sdb1 hfsplus 931.5G /media/usb0 ROMS     
pi@retropie:~ $ sudo blkid
/dev/sda1: SEC_TYPE="msdos" LABEL="boot" UUID="1D8D-D42B" TYPE="vfat" PARTUUID="6397c987-01"
/dev/sda2: LABEL="retropie" UUID="b5bfbb14-56d1-4eab-a831-0d17cd711a6a" TYPE="ext4" PARTUUID="6397c987-02"
/dev/sdb1: UUID="36e09f00-1197-377f-8f97-0901843273f0" LABEL="ROMS" TYPE="hfsplus"
pi@retropie:~ $ 
As you can see I install all the software to manage the HFS+ file system

Code: Select all

pi@retropie:~ $ sudo apt-get install hfsplus hfsutils hfsprogs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
hfsplus is already the newest version (1.0.4-15).
hfsprogs is already the newest version (332.25-11+b1).
hfsutils is already the newest version (3.2.6-13).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
pi@retropie:~ $ 
My fstab as you can see I rename the mount point for the disk because the error

Code: Select all


proc            /proc           proc    defaults          0       0
PARTUUID=6397c987-01  /boot           vfat    defaults          0       2
PARTUUID=6397c987-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
#UUID=36e09f00-1197-377f-8f97-0901843273f0 /mnt/retrorom /home/pi/RetroPie      hfsplus    force,rw,nofail  0       0
If more information is needed please just ask
So because I'm not an experimented user in linux some one can please help me ? what I can do wrong ??
Thanks in advance !!
Best Regards

User avatar
thagrol
Posts: 3078
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Can't mount HFS+ disk on fstab

Sat Apr 25, 2020 6:54 pm

iMacosiris wrote:
Sat Apr 25, 2020 3:41 am
My fstab as you can see I rename the mount point for the disk because the error

Code: Select all

proc            /proc           proc    defaults          0       0
PARTUUID=6397c987-01  /boot           vfat    defaults          0       2
PARTUUID=6397c987-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
#UUID=36e09f00-1197-377f-8f97-0901843273f0 /mnt/retrorom /home/pi/RetroPie      hfsplus    force,rw,nofail  0       0
There's a very obvious error in that fstab: you can only have a single mountpoint. So either "/mnt/retrorom" or "/home/pi/RetroPie" but not both. Whichever you choose must exist and I suggest you include "auto" in your mount options.

Make the changes, uncomment the line, save your fstab then run

Code: Select all

sudo mount -a
If that works, job done. If not post the error/output you get.

FYI, I've no experience of hfs (plus or otherwise) so if it's specific to that filesystem I probably won't be able to help.
Arguing with strangers on the internet since 1993.

User avatar
scruss
Posts: 3212
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Can't mount HFS+ disk on fstab

Sat Apr 25, 2020 11:44 pm

I'm not sure if HFS+ works read/write. It's a very different filesystem from the standard ones that Linux might see.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can't mount HFS+ disk on fstab

Sun Apr 26, 2020 6:55 am

scruss wrote:
Sat Apr 25, 2020 11:44 pm
I'm not sure if HFS+ works read/write. It's a very different filesystem from the standard ones that Linux might see.

hfsprogs is in the repositories afaiaa:

https://packages.debian.org/buster/hfsprogs
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
scruss
Posts: 3212
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Can't mount HFS+ disk on fstab

Sun Apr 26, 2020 1:14 pm

These only provide very basic HFS+ file system repair tools, if the archive listing is to be believed. I don't think they do anything useful for the average user.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Return to “Beginners”