为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

How to modify FF .ini file to move the profile folder on a different location ?

  • 3 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 glfirex

more options

Hi,

I was reading this forum post on how to move a Firefox profile folder on a different location: the suggested modification is the same found on some other articles dating back many years.

Now a default Firefox installation contains an .ini file whose structure is changed as you can see in this image

The old file structure can be seen in this image.

Can someone suggest the right .ini file modifications to move the profile to a different folder?

Thank You.

Hi, I was reading [https://support.mozilla.org/en-US/questions/944695 this forum post] on how to move a Firefox profile folder on a different location: the suggested modification is the same found on some other articles dating back many years. Now a default Firefox installation contains an .ini file whose structure is changed as you can see [https://i.imgur.com/LN6FhtD.png in this image] The old file structure can be seen [https://img.raymond.cc/blog/wp-content/uploads/2014/12/change-firefox-profiles.png in this image]. Can someone suggest the right .ini file modifications to move the profile to a different folder? Thank You.

由glfirex于修改

被采纳的解决方案

Hi, safest is to use the Profile Manager or the about:support page to create a new profile in the preferred location. Best is to create this folder beforehand and use the "Choose Folder" button to select this folder.


You can copy certain files with Firefox closed to the current profile folder to transfer or recover personal data. Note that best is to avoid copying a full profile folder.


  • bookmarks and history: places.sqlite
  • favicons: favicons.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (encrypted logins;32+) and key4.db (decryption key;58+) for Passwords saved in the Password Manager
    key3.db support ended in 73+; to use key3.db in 58-72, make sure to remove key4.db
  • cert9.db (58+) for (intermediate) certificates stored in the Certificate Manager
  • persdict.dat for words added to the spell checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

定位到答案原位置 👍 1

所有回复 (3)

more options

选择的解决方案

Hi, safest is to use the Profile Manager or the about:support page to create a new profile in the preferred location. Best is to create this folder beforehand and use the "Choose Folder" button to select this folder.


You can copy certain files with Firefox closed to the current profile folder to transfer or recover personal data. Note that best is to avoid copying a full profile folder.


  • bookmarks and history: places.sqlite
  • favicons: favicons.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (encrypted logins;32+) and key4.db (decryption key;58+) for Passwords saved in the Password Manager
    key3.db support ended in 73+; to use key3.db in 58-72, make sure to remove key4.db
  • cert9.db (58+) for (intermediate) certificates stored in the Certificate Manager
  • persdict.dat for words added to the spell checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

Note that creating a profile this way will store all data that is currently in "AppData\Roaming" and "AppData\Local" in this profile.

Once you have copied your personal data to the new profile and have verified that it is working properly you can remove the old profile in both locations. Doing it this way is safer than modifying profiles.ini.

more options

cor-el said

Note that creating a profile this way will store all data that is currently in "AppData\Roaming" and "AppData\Local" in this profile.

Merging the two Mozilla folders inside Local and Roaming directories is even better: since I have a lot of ram available, I created the new Firefox profile on a ramdisk to reduce writes to the Ssd disk, so they all now flow into the same folder.

Thanks.

由glfirex于修改