Built-in diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX` where XXXXX is the size of the RAM disk in terms of memory blocks. Notes: