Skip to content

Instantly share code, notes, and snippets.

@K0NRAD
Created August 6, 2013 09:19
Show Gist options
  • Save K0NRAD/6163029 to your computer and use it in GitHub Desktop.
Save K0NRAD/6163029 to your computer and use it in GitHub Desktop.
create a RAM disk on OSX
# size in GB * 1024 * 2048 -> 3GB * 1024 * 2048 -> 6291456
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://6291456`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment