Mac OS X Ramdisk Feb 16th, 2009 | Comments #!/usr/bin/env bash if [[ $1 == "" ]]; then mb=409600 # 200 MB else ((mb=2048*$1)) fi diskutil erasevolume HFS+ "ramdisk" \ `hdiutil attach -nomount ram://$mb`