Ubuntu Forums Archive Viewer

HowTo Get Rid of a Corrupt Firefox Profile (and keep the bookmarks)

Archived thread 103930 from Outdated Tutorials & Tips. Markdown source: Outdated_Tutorials_&_Tips/thread_103930_HowTo_Get_Rid_of_a_Corrupt_Firefox_Profile_(and_ke.md

Original URL About this archive
#1

It happens in Windows. It happens in Mac. And... it also happens in Linux (and Ubuntu, specifically). Sometimes, your Firefox profile gets corrupt. You can't launch Firefox. The pages look all weird. Maybe it was the extensions you installed. Maybe it was something else.

Bottom line: for whatever reason, you need to start anew.

First get the Run command going (Alt-F2), then type ``` firefox -safe-mode


Then, open a terminal...
In Breezy or Dapper, Applications > Accessories > Terminal
In Hoary, Applications > System Tools > Terminal
In Kubuntu, KMenu > System > Konsole

Type this command to back up your corrupt profile (just in case): ```
mv ~/.mozilla ~/.mozilla_backup

Finally, launch Firefox again (click on the icon). Go to Bookmarks > Manage Bookmarks > File > Import and get the bookmarks.html you saved before on your desktop.

#2

There doesn't seem to be enough steps above, by "finally, launch firefox again..." do you mean re-install or just click the firefox icon?

#3

There doesn't seem to be enough steps above, by "finally, launch firefox again..." do you mean re-install or just click the firefox icon? Sorry for being unclear. It means just click the Firefox icon. I've edited the original post.

#4

I would also suggest that if you use Adblock (plus), TMP, Noscript, etc you would export those filters/settings/whitelists as well so you don't lose them.

#5

That's a good idea in theory, but I think (correct me if I'm wrong) that safe mode disables your extensions.

I always back up my Adblock and NoScript settings on a regular basis.

#6

I gave this a try because Ive been having troube with firefox crashing whenever I click links on certain sites and Im still having problems. Do you have any other ideas of how to fix this? Thanks.

#7

Yes, extensions are disabled.. but you can still grab your adblock plus filters

Install adblock plus on the new profile, then copy the adblock plus filters (unsure of the location of adblock)

cp ~/.mozilla_backup/firefox/*.default/adblockplus/patterns.ini ~/.mozilla/firefox/*.default/adblockplus/patterns.ini
#8

Actually, just launching Gmail is causing FF to crash on my Linux box. It isn't the extension. Opera does not work well enough as a replacement as it can't handle hotmail very well.

#9

Don't know if this is your proplem but, since 1.5.0.7 update, firefox has occasionally gotten a segment fault when starting and nothing happens on the desktop. I've started it with "firefox www.google.com" when this occurs.

#10

Firefox just gives me a segmentation fault when I try to run it. Adding a first page for it to go to does nothing different. The "-safe-mode" switch doesn't keep it from crashing. Moving the .mozilla folder to backup doesn't change it. Uninstalling and reinstalling also doesn't change the result. It just seems to be dead.

#11

I've run into that a few times since the last update. Experimenting with the command line to see error messages I found that if I gave firefox an argument it would start and seemed to straiten itself out. I used "firefox www.google.com" because I'm sure that's a good well formed site.

#12

hackeron@ubuntu:~$ firefox -safe-mode Bus error (core dumped)

#13

hackeron said: hackeron@ubuntu:~$ firefox -safe-mode

Bus error (core dumped) I'm not seeing many solutions, but a Google search of your error turned up about 35 results. A lot of BSD users, some Epiphany users, and a lot of stuff about building Firefox...

#14

This post was just recommended.

Ever since Firefox installed Macromedia Flashplayer (which was the first time I used Firefox in Linux, which was at the first website, CNN, I visted) Firefox crashes without warning.

How do I simply *delete* the Mozilla profile? I'm trying to return Firefox to its pre-anything state.

(I have already tried re-installing via Synaptic Package Manager, to no avail.)

#15
rm -r ~/.mozilla
#16

Removing the mozilla profile makes firefox start again, but after a few minutes of use, Bus error (core dumped) again :(

Removing ubuntu-desktop and going to xubuntu-desktop solved the problem - moving back to ubunbu-desktop resurrected the problem - still trying to figure out what exactly is causing the problem.

#17

hackeron said: Removing the mozilla profile makes firefox start again, but after a few minutes of use, Bus error (core dumped) again :(

Removing ubuntu-desktop and going to xubuntu-desktop solved the problem - moving back to ubunbu-desktop resurrected the problem - still trying to figure out what exactly is causing the problem.

Aha! -- I did

apt-get remove ubuntu-desktop firefox-gnome-support

and presto, firefox starts again, now to figure out exactly what in firefox-gnome-support broke my firefox and why it worked before - I don't have any extensions installed or anything like that, hmmmm

#18

????? said: I would also suggest that if you use Adblock (plus), TMP, Noscript, etc you would export those filters/settings/whitelists as well so you don't lose them.

Actually, I've found that Adblock Plus can crash Firefox too. I had it installed once, and had to remove it because it was keeping FF from opening at all. Once I got rid of it the problem stopped.

Although now I'm having problems with Firefox just closing itself with no error message at all. I've heard some talk that it might be the Flash plugin, but I'm not sure, especially because it didn't seem to start happening until after I updated my system via the Synaptic Package Manager (I just marked all upgrades and then let it run them). Might try getting rid of ubuntu-desktop as suggested above, though.

#19

I've just started experiencing the same problem. I've apt-get removed ubuntu-desktop and firefox-gnome-support. I've removed all add-ins; I've deleted ~/.mozilla, but firefox still keeps closing on me. Anyone got any further ideas?

#20

I had this problem once -- it eventualy went away. I did manage to get Firefox to start if I dragged a text file to the Firefox icon. Firefox came up with the text file displayed and then worked for the rest of the session only. I have no good explanation why this worked but it did.

#21

thank you so much!!!