Created
June 15, 2014 10:21
-
-
Save beginor/9eccbd8c9aa5932ade1c to your computer and use it in GitHub Desktop.
script create ramdisk on mac os x
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
| if ! test -e /Volumes/\"Ramdisk\" ; then | |
| diskutil erasevolume HFS+ \"RamDisk\" `hdiutil attach -nomount ram://$((2*1024*512))` | |
| mkdir -p /Volumes/RamDisk/Caches | |
| mkdir -p /Volumes/RamDisk/Logs | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment