How to fix Firefox cache relocation "System Error. Access denied"

Started by Victor

When trying to move Firefox browser cache to the RAM Disk with Cache Relocator, I get this error:
Quote

System Error. Code: 5. Access is denied.

I have tried both hard disk emulation and removable settings and still get this error. Please advise.
SoftPerfect Support forum - Ann avatar image
Ann

Re: How to fix Firefox cache relocation "System Error. Access denied"   17 October 2025, 11:36

This error usually means either Firefox is still running (and Cache Relocator couldn't detect it), or the tool itself doesn't have sufficient privileges.

Windows requires administrative rights to create symbolic links, so please try the following:
  1. Make sure Firefox is completely closed: check in Task Manager that no 'firefox.exe' processes remain.
  2. Right-click the Cache Relocator executable and choose 'Run as administrator'.

If running it as administrator still gives "System Error. Code: 5. Access is denied", it means Windows is blocking the creation of the link for some reason. You can still set it up manually:
  1. Close Firefox completely.
  2. Move your existing cache folder to your RAM disk (for example, 'Z:\Cache').
  3. Open Command Prompt (Admin) or PowerShell (Admin).
  4. Run this command, adjusting the paths for your system:
      mklink /D "C:\Users\victor\AppData\Local\Mozilla\Firefox\Profiles" "Z:\Cache"  
  5. Start Firefox again. It should now use the cache folder on your RAM disk.

Re: How to fix Firefox cache relocation "System Error. Access denied"   17 October 2025, 15:09

I ran Cache Relocator to move Firefox's cache, and it created the symbolic link, but deleted the Profile directory and all it's data. I assume and hope this isn't normal behaviour.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

  *******    ******    **      **  **     **  **    ** 
 **     **  **    **   **  **  **  **     **  ***   ** 
 **         **         **  **  **  **     **  ****  ** 
 ********   **   ****  **  **  **  **     **  ** ** ** 
 **     **  **    **   **  **  **   **   **   **  **** 
 **     **  **    **   **  **  **    ** **    **   *** 
  *******    ******     ***  ***      ***     **    ** 

Message: