I have accessed my crashed Ubuntu version via live USB trial. Where am I supposed to find my former Firefox bookmarks and history files in order to copy and transfer them into a new installation?


The easiest thing to do would be copying the Firefox profile folder over



The bookmarks are actually stored in bookmarks.html if you just want that.

| improve this answer | |
  • ~/.mozilla/firefox/xxxxxxxx.default should I insert this into terminal? – Andy Nov 17 '12 at 19:53
  • 1
    @Andy the xxxxxxxx is a random string generated, you need to take a look at yours and take it from there;-) – Terry Wang Nov 17 '12 at 23:25
  • I found the hidden folder mozilla on the previous version but I cannot access its contents due to the password protection in the previuos version. could you recommend any method of opening such a folder from the trial ubuntu on live USB or from a newly installed system? – Andy Nov 18 '12 at 9:38
  • @Andy Can you explain "password protection"? Do you mean the bookmarks or the profile folder (or filesystem it resides)? If you know the password you set, try to run firefox -p /mount_point/home/user/.mozilla/xxxxxxxx.default and see if you can input the password and export the bookmarks. – Terry Wang Nov 18 '12 at 12:03
  • thank you a lot I managed to restore my broken boot and access the system :) – Andy Nov 18 '12 at 15:19

If you have never used the firefox option Bookmarks->Show All Bookmarks-> Import and Backup -> Export Bookmarks to HTML, then you will never see a file, bookmarks.html. In such a case, you can probably copy over the history files stored in ~/.mozilla/firefox/xxxxxxxx.default/bookmarkbackups/ where xxxxxxxx.default is a FF assigned directory. And then, don't forget to export the bookmarks to wherever you want them. It will be stored at /bookmarks.html

| improve this answer | |
  • 1
    After copying across the most recent backup, I restarted firefox and opened the library. I clicked "import and backup" then on mouse over, the restore option showed the backup file. Select this and the bookmarks are imported into the browser. – dmkonlinux Aug 19 '18 at 6:08
  • @dmkonlinux This should be the answer. – Skippy le Grand Gourou Oct 14 '18 at 11:01

You can simply copy the old .mozilla folder into your home folder, after which you can select the appropriate backup through Import and BackupRestore within FireFox (or IceCat) under BookmarksShow All Bookmarks.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.