Join us to show up for other Firefox users 🦊. Earn fun badges and Mozilla swag vouchers! Find out more: https://mzl.la/askafox150

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to make Firefox internet temp files write to second HD only

  • 5 个回答
  • 2 人有此问题
  • 86 次查看
  • 最后回复者为 cor-el
  • 已存档

Hi there,

My new PC has a SSD as the primary HD and a conventional HDD drive as the secondary HD, what I need to know is how do you set up Firefox so that all the internet temp files write to the secondary HD only, I don't want temp files to be written to the primary SSD at all, I just want that drive for the Windows 7 operation system + programs and nothing else, by doing this I hope to extend the life of the SSD as well.

Can you please help with any information to help me do this.

Thanks, Stuart

Hi there, My new PC has a SSD as the primary HD and a conventional HDD drive as the secondary HD, what I need to know is how do you set up Firefox so that all the internet temp files write to the secondary HD only, I don't want temp files to be written to the primary SSD at all, I just want that drive for the Windows 7 operation system + programs and nothing else, by doing this I hope to extend the life of the SSD as well. Can you please help with any information to help me do this. Thanks, Stuart

所有回复 (5)

You need to set the %TMP% and %TEMP% environment variables to that folder on the second HD drive.

  • Control Panel > System > Advanced > Environment variables
  • Right-click My Computer > Properties > Advanced > Environment variables

Hi again,

There were no TMP or TEMP folders on my second HDD, so I created them and edited the settings in My Computer > Properties > Advanced > Environment variables to point to the new folder, but I don't think it worked, after browsing in Firefox for a while there are no new files going into this new folder that I created.

Please see the attached screen dump jpeg

Any ideas?

Stuart

I see two sets (system and user) that have the TMP and TEMP environment variables.

Which one should Firefox use?

You will have to remove the other set and make sure that the specified folder exists.

由cor-el于修改

Why are you asking me Which one should Firefox use? how would I know? that's why I'm asking these questions in the first place, Also, I think your answers are a little bit over simplified, you say what to do, but not really how to actually do it. can you dumb in down a bit more and explain in much more detail how to do it, I'm sure I couldn't be the only person asking this sort of question with a lot more people using SSD as primary HD these days. I originally thought that you would have to change something in the Firefox folder or in the Firefox browser settings.

You obviously want to have the temp folder on a specific drive.

Is that the one that you created as S:\Windows\TEMP or is this your SSD system drive?

If you have created a folder for the TEMP files on another drive then modify both sets and set all TMP an TEMP variables to this second drive.

Firefox will only use the environment variable to check where to store those files.