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.

  1. Enable built-in memory cache feature to speed firefox up.
  2. Move profile folder to Ram disk including temporary files folder.
  3. 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:

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:

The steps for the 3th solution: 

  1. 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:.
  2. Create a simple batch file called R:\Firefox.bat with the following line:
    start R:\Firefox\firefox.exe -profile R:\FFProfiles
  3. 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
  4. 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
  5. 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
  6. 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.
  7. Refer to:
    Run Firefox from removable media
    http://www.mozilla.org/support/firefox/tips#oth_usb

Refer to

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:

Post a comment

mail.png


相似文章|Related Entries

最近更新|Recent Entries

不定期更新|Handy Entries

相似标签|Related Tags

Firefox
debug (1)
gmail (1)
Google (3)
https (2)
IE (3)
Javascript (5)
ramdisk (1)
ramdisk
Firefox (7)

分类栏目|Categories

按月归档|By Month

2008
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

站内链接|Site Links

Powered by
Movable Type 3.34