I was trying to find a way to set up a ramdisk and have firefox store the cache there. After a bit of reading this is what I found and did.
Reference Link:
http://en.wikipedia.org/wiki/TMPFS
Step 1: Make a place to mount the ramdisk. In the terminal type:
Code:
sudo mkdir /media/ramdisk
Where /media/ramdisk is where you will mount the ramdisk.
Step 2: Mount the ramdisk
Code:
sudo mount -t tmpfs -o size=64M,nr_inodes=10k,mode=0777 tmpfs /media/ramdisk
I set the permisions to 777 which allows anybody and everybody to access it. Set these as you wish
Step 3 In firefox: Set the cache location to you new ramdisk
Reference link: http://www.infohole.com/blog/computi...ache-location/
Basically type in the URL address bar. Search for
Code:
browser.cache.disk.parent_directory
or add a new string by right clicking and choosing new. Then set the location to your ramdisk. In my case I set it to Optional:
Step 4: If you wish to automount the ramdisk you need to edit your FSTAB file
Reference Link: http://ubuntuforums.org/showthread.php?t=283131
Code:
gksudo gedit /etc/fstab
Add the line
Code:
tmpfs /media/ramdisk tmpfs size=64M,nr_inodes=10k,mode=777 0 0
Everything should be all set. You can check the ramdisk to see if a folder 'Cache' is created when you load firefox. Don't forget to close firefox or restart firefox before you set this up.
PS. I don't know much about inodes but the above seems to work for me.
Bookmarks