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
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