How to create a RAM disk on OS X
1 2 $ hdid -nomount ram://32768 3 /dev/disk1 4 $ newfs_hfs /dev/disk1 5 $ mkdir /tmp/ramdisk1 6 $ mount -t hfs /dev/disk1 /tmp/ramdisk1
To unmount:
1 2 hdiutil detach /dev/disk1
DZone Snippets > peter > tiger
13460 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Peter Cooperx http://www.petercooper.co.uk/
1 2 $ hdid -nomount ram://32768 3 /dev/disk1 4 $ newfs_hfs /dev/disk1 5 $ mkdir /tmp/ramdisk1 6 $ mount -t hfs /dev/disk1 /tmp/ramdisk1
1 2 hdiutil detach /dev/disk1
1 lookupd -flushcache
1 defaults write com.apple.screencapture type image_format