Talk:RAM disk/@comment-69.47.32.7-20120816060414

Having trouble getting ram disks to persist across sleep sessions on OS X 10.8 Mountain Lion? While I haven't figured out quite how to effectively unmount it, try this as a script instead:

RAMDEV=`hdiutil attach -nomount ram://"${1}"` newfs_hfs -v ramdisk $RAMDEV mkdir /Volumes/ramdisk mount -t hfs $RAMDEV /Volumes/ramdisk
 * 1) !/bin/bash


 * 1) Not as nice as having a one-liner, I know... but at least you won't lose it when your Mac sleeps!