I had ever moved my IE temporary files folder into a Ram disk for reducing the disk IO during surfing.
When I play with Firefox, I don't find any option for moving its temporary files folder like IE does. But finally I found it, not just moving the firefox's profiles, even for firefox.exe itself.
There're 3 level solutions you may choose.
- Enable built-in memory cache feature to speed firefox up.
- Move profile folder to Ram disk including temporary files folder.
- Run both firefox.exe and profile folder on Ram disk.
The 1th solution is most simple, the 3th solution is most complex but has the maximum of reducing disk IO.
The steps for the 1th solution refer to:- Specify the memory cache usage
http://www.mozilla.org/support/firefox/tips#oth_memcache
Before starting to do the next 2 solutions, you will have to create a Ram disk on your computer. I use this tool called RamDisk, download it at:
- http://www.greendown.cn/Software.asp?id=530
The steps for the 2th solution refer to:
Specify where to store the cache
http://www.mozilla.org/support/firefox/tips#oth_cache- Just simply set the cache path to Ram disk.
The steps for the 3th solution:
- Copy the Firefox application folder and your profile folder to the Ram disk. In this example we will use R:\Firefox for the application folder and R:\FFProfile as the profile folder, assuming the drive letter for the Ram disk is R:.
- Create a simple batch file called R:\Firefox.bat with the following line:
start R:\Firefox\firefox.exe -profile R:\FFProfiles
- Optionally, you may don't want to lose the bookmarks saved in Ram disk after reboot. Move bookmark file back to harddisk folder by entering about:config in the address field of firefox and set
browser.bookmarks.file=C:\\Documents and Settings\\Alex\\Application Data\\Mozilla\\Firefox\\Profiles\\ve6luvh6.default\\bookmarks.html
- Make system copy firefox application and profile folder from hard disk to Ram disk automatically at each boot time by adding following lines to file C:\AUTOEXEC.BAT.
rd /S /Q R:\Firefox
rd /S /Q R:\FFProfiles
del R:\Firefox.bat
xcopy /E /H /K "%APPDATA%\Mozilla\Firefox\Profiles\ve6luvh6.default\*" R:\FFProfiles\*
xcopy /E /H /K "C:\Program Files\Mozilla Firefox\*" R:\Firefox\*
echo start R:\Firefox\firefox.exe -profile R:\FFProfiles>R:\Firefox.bat
R:\Firefox.bat - Optionally, disable firefox memory cache to reduce memory usage because the whole program and profiles are running in Ram by setting
browser.cache.memory.enable=false
- Notes: With this solution, all settings made in Ram disk will be lost after system reboots. If you want the settings to be used after rebooting, should make the setting change by running firefox based on harddisk, and then re-copy all folder from hard disk to Ram disk by running AUTOEXEC.BAT.
- Refer to:
Run Firefox from removable media
http://www.mozilla.org/support/firefox/tips#oth_usb
Refer to
- Firefox Help - Online Help for the Mozilla Firefox Web Browser
http://www.mozilla.org/support/firefox
Tested on
- OS: Windows xp professional
- Firefox: version 1.5
Windows xp professional seems not process c:\autoexec.bat, but they do use this file to set environment variables, please refer to:


