I’ve been scouring the refind website, but I can’t find how to fix my problem, so I’m reaching out to the forum. Sorry for such a gross first post!
I’m trying to dual boot Linux onto my 2017 27” imac running mac OS 10.14.6
When I try to install refind I keep getting this:
Installing rEFInd on OS X....
mount_msdos: /dev/disk0s5 on /Volumes/ESP: Invalid argument
mount_hfs: error on mount(): error = -1.
mount_hfs: Invalid argument
Installing rEFInd to the partition mounted at /Volumes/ESP
Found rEFInd installation in /Volumes/ESP/EFI/refind; upgrading it.
Found suspected Linux partition(s); installing ext4fs driver.
Installing driver for ext4 (ext4_x64.efi)
Copied rEFInd binary files
Notice: Backed up existing icons directory as icons-backup.
Existing refind.conf file found; copying sample file as refind.conf-sample
to avoid overwriting your customizations.
Some other steps I’ve taken without success:
Jamess-iMac:ESP jamescarruthers$ /Users/jamescarruthers/Downloads/refind-bin-0.11.4/mountesp
The ESP has been identified as /dev/disk0s5; attempting to mount it....
You must run this program as root or using sudo! Exiting!
Jamess-iMac:ESP jamescarruthers$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 500.3 GB disk0
1: Linux Swap 5.8 GB disk0s1
2: Apple_APFS Container disk1 300.0 GB disk0s2
3: Microsoft Basic Data 193.3 GB disk0s3
4: Apple_Boot Boot OS X 134.2 MB disk0s4
5: EFI NO NAME 1.0 GB disk0s5
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +300.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 222.5 GB disk1s1
2: APFS Volume Preboot 44.1 MB disk1s2
3: APFS Volume Recovery 510.4 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
Jamess-iMac:ESP jamescarruthers$ mkdir /Volumes/ESP
mkdir: /Volumes/ESP: File exists
Jamess-iMac:ESP jamescarruthers$ sudo mount -t msdos /dev/disk0s5 /Volumes/ESP
Password:
mount_msdos: /dev/disk0s5 on /Volumes/ESP: Invalid argument
Jamess-iMac:ESP jamescarruthers$ sudo /Users/jamescarruthers/Downloads/refind-bin-0.11.4/mountesp
The ESP has been identified as /dev/disk0s5; attempting to mount it....
mount_msdos: /dev/disk0s5 on /Volumes/ESP: Invalid argument
mount_hfs: error on mount(): error = -1.
mount_hfs: Invalid argument
Unable to mount ESP!\n
Jamess-iMac:ESP jamescarruthers$ sudo bless --setBoot --file /efi/refind/refind_x64.efi
Jamess-iMac:ESP jamescarruthers$ sudo bless --setBoot --folder /efi/refind --file /efi/refind/refind_x64.efi
No mount point for /efi/refind
Can't determine mount point of '/efi/refind' and ''
Jamess-iMac:ESP jamescarruthers$ ls
EFI
Jamess-iMac:ESP jamescarruthers$ sudo bless --mount /Volumes/ESP --setBoot --file /Volumes/ESP/efi/refind/refind_x64.efi --shortform
Jamess-iMac:ESP jamescarruthers$ sudo bless --mount /Volumes/ESP --setBoot --file /Volumes/ESP/efi/refind/refind_x64.efi --shortform
Jamess-iMac:ESP jamescarruthers$ sudo bless --mount /ESP --setBoot --file /ESP/efi/refind/refind_x64.efi --shortform
No mount point for /ESP
Can't determine mount point of '/ESP'
Could not statfs() /ESP
Could not determine filesystem of /ESP
Jamess-iMac:ESP jamescarruthers$ sudo bless --mount /Volumes/ESP --setBoot --file /Volumes/ESP/efi/refind/refind_x64.efi --shortform
Jamess-iMac:ESP jamescarruthers$
Please help if you can!
Many thanks,
James