Created
June 17, 2018 07:16
-
-
Save hugotai101/3473ce2e16f220c5336fca1dd0d1406f to your computer and use it in GitHub Desktop.
Create ramdisk on macOS #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
#Size of RAM disk desired(MB) * 2048 = amount to specify | |
#Using the above example, that would be: | |
#eg 2GB 2048 * 2048 = 4194304 | |
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nomount ram://524288` # 0.5GB | |
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nomount ram://4194304` # 2GB | |
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nomount ram://8388608` # 4GB | |
diskutil erasevolume HFS+ 'RAMDisk' `hdiutil attach -nomount ram://12582912` # 6GB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment