Skip to content

Instantly share code, notes, and snippets.

@jak
Created September 1, 2014 08:42
Show Gist options
  • Save jak/70a40c45dd008f5759ff to your computer and use it in GitHub Desktop.
Save jak/70a40c45dd008f5759ff to your computer and use it in GitHub Desktop.
Need a faster hard drive temporarily? Use a RAM disk on OS X
› diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://4194304` # Create a 2GB ramdisk
› rsync -avr Code/ /Volumes/RAM\ Disk/ # Copy your work over
› open /Volumes/RAM\ Disk/ # Open in Finder
# Change ram://XXXX to MB required x 2048 (4194304 = 2048 x 2048)
# 1GB = 2097152
# 2GB = 4194304
# 3GB = 6291456
# 4GB = 8388608
# 8GB = 16777216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment