Many times Mathematica aborts because there is no more space available on disk. Presumably this is due to the temporary files that it creates and needs for its calculations. If I were to install a large disk on my Macintosh for all the space required by Mathematica, how can I tell it to address all its temporary files and swapping to that extra disk?
I do not wish to reinstall Mathematica on an external disk. I wish to maintain the rest of Mathematica’s files in my current disk, and send only the temporary files to a secondary disk.
Mathematica uses the Temp directory that is installed in the system. To find out the path to this directory, ask in Mathematica
$TemporaryDirectory
To change this path, you need to change the path of the system temp directory. For a Windows user this is very simple. See Control Panel\System and Security\System → Advanced system settings->Environment Variables->Edit TEMP, Edit TMP
After all the changes we have: