Mozilla Firefox in a RAM Partition
For Windows 2000 & XP

Get FirefoxThis tutorial will show you how to get Mozilla Firefox installed and running in your RAM rather than from your hard drive. It is based on a tip from Texturizer.net and uses AR RAM Disk.




First we will setup Firefox to run from a single directory. This method is identical to the one used to run Firefox from a removable media device, such as a USB memory stick.

Create a folder which you will put all Firefox files in. For this tutorial we'll call it ff_folder. Within this folder, create an empty folder called Profile.

Download the zipped version of Firefox and extract it into ff_folder. It will automatically create its own folder called Firefox.

Right now your folder structure should look like this:

\ff_folder\Profile\     (currently empty)
\ff_folder\Firefox\     (contains firefox.exe and other program files and folders)

Now we need to create a shortcut to instruct Firefox to create your profile. Create a shortcut by right-clicking in Explorer and selecting New > Shortcut. Point it to the following location.

"B:\ff_folder\firefox\firefox.exe" -ProfileManager

Name this file Firefox Profile in any location, such as your desktop. This starts Firefox with the profile manager so you can create a profile that resides on your RAM Disk (be sure to click on Choose Folder during the profile setup) so that it does not go to the default location (on your hard drive).

Now create a new shortcut called "Firefox" to start Firefox normally.

"B:\ff_folder\firefox\firefox.exe"

You can now copy ff_folder to any removable media and run Firefox by double-clicking on the shortcut.




Download and install AR RAM Disk. This program creates a 64MB partition that by default shows up as B:\ in Explorer (you can change these settings in the Control Panel). The 64MB is taken from your RAM, so anything on this partition will be residing in your system memory, not on your hard drive.

The drive will empty its contents each time you boot your computer, so Firefox will need to be copied to the RAM Disk upon startup and, if you want, saved the hard drive before shutdown. First we'll get Firefox to copy to to the disk upon start up. It's best to automate this process with a .bat (batch) file that will run automatically.

Open up Notepad and create a new text file called load_firefox.bat (no txt extension) and enter the following code:

XCOPY C:\ff_folder\*.* B:\ff_folder\ /E /Y /C

This file will copy your ff_folder contents to drive B:, the default drive letter of the RAM Disk. If your ff_folder is not in your C:\ directory, or your RAM Disk is not at B:you will need to change that. It is recommended that you put this file in your Start Menu's Startup folder so that these operations are performed automatically and Firefox is ready to go as soon as you start Windows.

Now you will need a way to copy your Firefox settings back to your hard drive before you shut down your PC so that you can save your settings, bookmarks, extensions, etc. Create a new text file called save_firefox.bat and copy the following code:

XCOPY B:\ff_folder\*.* C:\ff_folder\ /E /Y

This will copy the entire program files and profile back to your hard drive and replace the existing copy (the one that was copied to the RAM partition upon system boot). You can put this file wherever it is convenient, such as the Desktop. You can run it any time you want to save your settings, but it is recommended you close Firefox first.

So now the following is set up:

  • Upon booting Windows, a partition will be created in your RAM and Firefox will be copied there along with your profile.
  • Use Firefox by double-clicking on the shortcut.
  • Before you shut down your PC, run save_firefox.bat to save your profile.

Be sure to update your shortcuts, including on your desktop, QuickLaunch bar, and in your Start Menu.

Enjoy the performance boost!

Return to Guides