Make a RAM disk on Mac OS X 1.5 or later
Create the RAM disk: diskutil erasevolume HFS+ “ramdisk” `hdiutil attach -nomount ram://1165430` (the magic number 1165430 is explained here as the number of 512 byte sectors. The string “ramdisk” is just the name of the disk, which will appear under /Volumes after creation) Write some stuff to the RAM disk: echo “hello RAM disk” > […]
Make a RAM disk on Mac OS X 1.5 or later Read More »