Created
September 1, 2014 08:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› 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