Created
September 6, 2019 16:41
-
-
Save antelle/eaadd12d1a6e480b1210e64eacb059c8 to your computer and use it in GitHub Desktop.
Create a RAM disk on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 42 = desired disk size in megabytes | |
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://$((42*2048))` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment