Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

evillevi

macrumors newbie
Original poster
Jul 10, 2013
1
0
Hi everyone. I want to create a ramdisk for Safari cache but also for the temporary folders in Mountain Lion. I succeeded in mounting a 2GB ramdisk for Safari cache; I made an executable unix file and put it in my startup objects:

diskutil erasevolume HFS+ RAMDISK `hdiutil attach -nomount ram://4194304`;
sudo rm -Rf ~/Library/Caches;
mkdir /Volumes/RAMDISK/Caches;
ln -s /Volumes/RAMDISK/Caches ~/Library/Caches;

Now, can I add commands in the same script to move the temporary folders to the same ramdisk? Or do I have to make two scripts?
Is the MoveTempFoldersToRamDisk.sh method, as described in this post, still valid in Mountain Lion??

Thanks in advance,
Levi
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.