Thursday, December 27, 2012

Mac - create a ram disk in OS X Mountain Lion

Reasons:

1. I have many Ram
2. SSD has limited write cycles
3. Fast read/write in ramdisk: good for BT, compilation, zip/unzip, encoding/decoding, etc.


How?

// copy and paste the following into a“create_ramdisk.scpt”, and run this apple script

do shell script "
if ! test -e /Volume/\"ramdisk\" ; then
diskutil erasevolume HFS+ \"ramdisk\" `hdiutil attach -nomount ram://4629672`
fi
"

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home