Lost bookmarks

From MozillaZine Knowledge Base
Jump to navigationJump to search

This article deals with lost or missing bookmarks, recovery methods and prevention.

  • If you got a message that your profile was already in use, created a new profile and now your bookmarks and other data are missing, see Profile in use.
  • If changes to your bookmarks are not saved after restarting the browser or you can't add new bookmarks, see Bookmarks not saved.
  • If bookmarks are missing after upgrading to Firefox 3 and you have switched back and forth between Firefox 3 and Firefox 2 in the past, see Lost bookmarks after Firefox 3 upgrade.
  • If you use Firefox 3 and Firefox opens to a blank page, your bookmarks and history are missing, you can't add new bookmarks or the back/forward toolbar buttons are disabled, see Bookmarks history and toolbar buttons not working - Firefox.

Step-by-step bookmark recovery

If you open Firefox or Mozilla Suite/SeaMonkey and don't see your bookmarks, as a first step you should close the browser and end any browser processes (or restart the computer) and then reopen the browser. [1] [2]

If your bookmarks are still missing, even after restarting the computer, the bookmarks file may have been damaged or the contents deleted. Firefox automatically makes a bookmark backup every day you use it (up to 5 backups total), with newer backups replacing the older copies. If you use the profile, you must act quickly, before they are all overwritten.

However, there are other reasons why your bookmarks may be missing, so it is important that you follow all of these steps:

  1. Mozilla browsers store user data in a separate place for each user account on your computer. Make sure you are logged on to your computer with your usual logon name.
  2. Mozilla browsers allow you to store different sets of bookmarks and other user data in separate profiles. You may have created a new profile in the past for troubleshooting or other reasons. Make sure you are using the correct profile (see Multiple profiles and profile in use, below).
  3. If bookmarks appear in the Bookmarks Manager but not in the main menu, and they can't be edited, try the fix for a corrupt localstore.rdf file, given below.
  4. If your problem is still not solved after doing the above, see Finding your bookmarks and Restoring bookmarks from backup (below).
  5. Other methods of recovery

Preventing future problems

  • You can minimize the likelihood of future problems by following these suggestions (below).
  • If your Web browser is not properly shut down, your bookmarks may be lost after restarting..
  • Do not switch back and forth between Firefox 2 and Firefox 3 using the same profile as this will cause what appears to be bookmark data loss, since the bookmarks.html file used in Firefox 2 will not be automatically imported into Firefox 3 a second time. [3].

Note that actual bookmark loss or corruption should occur much less frequently in Firefox 3, which uses a more robust system for bookmarks storage.

Multiple profiles and profile in use

Mozilla browsers allow different users to have different settings and bookmarks. You may have inadvertently switched to another profile. Start the Profile Manager (If Mozilla Suite or SeaMonkey is running, click "Tools -> Switch Profile") and, if multiple profiles are listed, select the other profile. If you receive a message that the profile is "in use" or if you are unable to start the original profile, read this article.

Corrupt localstore.rdf

(Firefox) If your bookmarks appear in the Bookmarks Manager but not in the main menu and can't be edited, this can be caused by a corrupt localstore.rdf file [4]. You can fix this by either deleting the localstore.rdf file from the profile folder or, in Firefox 1.5 and later, by starting in Firefox Safe Mode and selecting the option to reset toolbars and controls, then clicking the "Make changes and restart" button, as explained in this article.

Finding your bookmarks

Important: Windows users should make sure they can view and search hidden files and folders as the profile folder containing your stored bookmarks is hidden by default. To locate bookmarks files anywhere on your computer, you can use your operating system’s file and folder search feature to find bookmarks* (be sure to include the asterisk, with no space). You can open any bookmarks file in HTML format from within your Mozilla browser, by using "File -> Open File" from the menu to check its contents; links in a bookmarks file opened in this way will be clickable (see this article for details).

  • In Firefox 1.5 and above, five daily bookmark backup files are saved in the bookmarkbackups folder, located in the Firefox profile folder. You must recover one of these five backups before they are overwritten by newer versions.
  • In Firefox 2 and below, and in other Mozilla browsers, bookmarks are stored in the file "bookmarks.html", located in the profile folder. There is also a "bookmarks.html" file in the program folder, but this one is only a template and does not hold your bookmarks. To make sure you have the right file, you can open the bookmarks.html file or any bookmark backup file using "File -> Open File" from the menu (see above).
  • Starting in Firefox 3, bookmarks are stored in the places.sqlite file and bookmarks*.html files are only used for importing and exporting. As of Firefox 3 Beta 5 bookmarkbackup files are stored in JSON format. [5])

Restoring bookmarks from backup

Importing a bookmark backup file

The "Import from file" feature of the Bookmarks Manager will add the contents of any bookmarks file in HTML format to your current bookmarks. (Firefox users who wish to replace their current bookmarks, instead of adding to them, can start in Firefox Safe Mode, select the option, "Reset bookmarks to Firefox defaults", and choose "Make Changes and Restart", before importing the bookmarks file.)

You can import a bookmarks file from within your Mozilla browser as follows. (When the file picker appears, navigate to the folder that contains the bookmarks HTML file you wish to use and select that file.)

  • Mozilla Suite/SeaMonkey: "Bookmarks -> Manage Bookmarks... -> Tools -> Import..."
  • Firefox 2 and below: "Bookmarks -> Organize (or Manage) Bookmarks... -> File -> Import... -> from File". Windows 2000/XP/Vista users can navigate to the Firefox profile folder by typing "%APPDATA%" in the file field and pressing Enter, going into Mozilla, then Firefox, then Profiles, then xxxxxxxx.default (where xxxxxxx is any sequence of numbers and characters) and then going into the bookmarkbackups folder and selecting the bookmarks-(date).html file you wish to import [6].
  • Firefox 3: "Bookmarks -> Organize Bookmarks -> Import and Backup -> Import HTML... -> from an HTML File". Only files in HTML format can be imported. To replace your current bookmarks with a bookmark backup file stored in JSON format, you should use the "Import and Backup -> Restore" feature in the Firefox 3 Bookmarks Manager (see below).

Replacing bookmarks with a backup file

This applies to Mozilla Suite/SeaMonkey and Firefox 2 or below.

If your current bookmarks.html file is corrupt, it is better to completely close the browser, find a bookmark backup file, rename it "bookmarks.html" if necessary, and then replace the bookmarks.html file in the Firefox or Mozilla Suite/SeaMonkey profile folder with the bookmark backup. [7] In Firefox 2 or below, you can rename one of the bookmarks-(date).html files from the bookmarkbackups folder to "bookmarks.html" and use it to replace the existing bookmarks.html file in the Firefox profile folder.

Restoring bookmarks in Firefox 3

Starting in Firefox 3 you can replace your current bookmarks with a bookmark backup file using the "Restore" feature of the Bookmarks Manager ("Bookmarks -> Organize Bookmarks -> Import and Backup -> Restore"). Bookmark backups are stored in JSON format. Any bookmarks in HTML format have to be imported (see above) rather than restored. [8]

If the Import and Backup features of the Library window do not work properly or if you see the error, Unable to process the backup file. when restoring a backup, try the solutions in Bookmarks history and toolbar buttons not working - Firefox [9] [10]

Note: You can also restore your bookmarks by exiting Firefox and removing the places.sqlite file from the profile folder. Firefox will rebuild the Places database from the latest JSON backup or, if no JSON file is found, from a bookmarks.html file, as detailed here; however, you will lose your browsing history.

Restoring bookmarks from external media

If you are restoring bookmarks (or an entire profile) from CD-Rom or other storage media that creates write-protected files, make sure that you remove the read-only attributes from any copied files. Otherwise, read-only bookmarks or other profile files can result in multiple numbered copies of the read-only files. See Multiple profile files created for details.

Other methods of recovery

  • Check the Recycle Bin/Trash for a file called "bookmarks.html".
  • (Windows) Run the error-checking tool Chkdsk (Windows 2000, XP) or ScanDisk (Windows 95, 98, ME) to see if you can recover any file fragments that contain your lost bookmarks. Look for files with names like FILE0001.chk or FILE0002.chk on the root directory (the files may be inside folders named FOUND.000 or similar). Open each file in Wordpad or Notepad and, if it contains bookmark data, rename it with an .html extension (for example, rename FILE0001.chk to bookmarks1.html). Finally, import the file using the Mozilla Suite/SeaMonkey or Firefox Bookmarks Manager [11].
  • Use a file undelete utility to see if you can recover the file [12] [13]

Bookmarks missing after restarting

This may occur on Windows systems if your Web browser is not properly shut down before you power down or restart the computer. Make sure you always close the browser before shutting down or restarting the computer.

The problem can also be caused by a faulty or misconfigured plugin or extension, or even malware, causing Firefox to remain in memory. To see if this is your problem, perform the following steps:

  1. Use Firefox to browse the web for a while, then open the Windows Task Manager, select the Processes tab and find firefox.exe in the list.
  2. Use "File -> Exit" from the Firefox menu to close Firefox, then wait for firefox.exe to disappear from the Task Manager Processes list (this may take a few seconds if many tabs were open, or Firefox was using a lot of memory). If the firefox.exe process disappears and doesn't come back, this is normal, so if your bookmarks are always missing whenever you restart the computer, it could be related to bug 333907 which may cause .rdf file corruption. To avoid it, exit Firefox before shutting down your PC.
  3. If firefox.exe remains in the Processes list, end the firefox.exe process by selecting it in the Windows Task Manager and clicking "End Process".
    • If the process disappears and doesn't come back, you may have an extension or plugin issue causing Firefox to persist in memory (for example, firefox.exe may remain active after running a Java applet). You should make sure all plugins and extensions are up to date and seek support if the problem persists.
    • If the process disappears but comes back, you probably have a virus, or some other malware. Anti-virus software may not be able to detect it. If yours doesn't, seek support. See also Firefox.exe always open.

Prevention

  • Do not power down your computer with Firefox/Mozilla Suite/SeaMonkey running.[14]
  • Be careful when using Firefox Safe Mode. If you use the option to reset bookmarks to Firefox defaults, this will delete your bookmarks.
  • Be careful when organizing your bookmarks. You can lose your bookmarks by accidentally deleting them in the Bookmarks Manager or sidebar. In that case you can use "Edit -> Undo" or "Organize -> Undo" to get them back.
  • Periodically export your bookmarks to the backup location of your choice (especially important in Mozilla Suite and SeaMonkey, which don't include automatic bookmarkbackups):
    • Mozilla Suite/SeaMonkey: "Bookmarks -> Manage Bookmarks... -> Tools -> Export..."
    • Firefox 2 and earlier: "Bookmarks -> Organize (or Manage) Bookmarks... -> File -> Export..."
    • Firefox 3: "Bookmarks -> Organize Bookmarks -> Import and Backup -> Export HTML... (or Backup...)". Note: Use "Export HTML..." to save a bookmarks file in HTML format that can be imported by any browser. Use "Backup..." to save an additional bookmark backup file in JSON format that can be restored in Firefox 3.
  • You can increase the number of Firefox automatic bookmarkbackups by modifying the value of the browser.bookmarks.max_backups preference to the desired number.
  • Instead of backing up just your bookmarks, you can also back up your entire profile.
  • Some "computer clean-up" programs like System Wiper may delete your bookmarks. Make sure you do profile backups before using such programs.

Related bug reports