mrklein / openfoam-os-x

Patches for OpenFOAM(R) to build it on OS X
93 stars 33 forks source link

Using APFS Case-sensitive volume instead of HFS+ sparsebundle #59

Closed BrushXue closed 3 years ago

BrushXue commented 3 years ago

Tested with Big Sur 11.2, OFv2012. APFS volumes share disk space dynamically so there's no space limit like the HFS+ sparsebundle. Needs macOS 10.13+. It can be added to the wiki page to simplify installation.

  1. Create a APFS Case-sensitive volume in Disk Utility, named 'OpenFOAM' Screen Shot 2021-02-09 at 1 25 49 PM
  2. Create a symbolic link
    ln -s /Volumes/OpenFOAM $HOME/

    Or edit /etc/fstab to mount it directly All set.

mrklein commented 3 years ago

Hi,

Thank you for the hint. I will add this variant of case-sensitive filesystem creation to a separate guide. Except, instead of using GUI, volume will be created from command line:

$ diskutil apfs addVolume disk1 'Case-sensitive APFS' OpenFOAM
mrklein commented 3 years ago

I have added a guide for creation of APFS volume (https://github.com/mrklein/openfoam-os-x/wiki/APFS-volume).

BTW you solution with symlink does not work with Foundation version, so instead of $HOME/OpenFOAM one has to use /Volumes/OpenFOAM, which works both in Foundation, and in ESI versions.

mrklein commented 3 years ago

Here is link to the wiki: https://github.com/mrklein/openfoam-os-x/wiki/APFS-volume