Lost hours of work in Firefox?

by cw Email

My wifey lost 3 hours of work last night, after typing furiously into a textarea window for a site she runs on Drupal6, clicking submit...and SERVER NOT RESPONDING...aaaarrrrggghhhh. Back-clicks didn't bring it back... everything was gone. So I awoke to one very grumpy wifey.

Super Geek to the rescue!

The following solution works ONLY if Firefox has not been closed! And Only works on Linux.

1) First, find the PID of Firefox. Do a 'ps aux | grep firefox' in command prompt, and take notice of the first number. In my case the PID was 3961.
2) Secondly, dump firefox' memory to disk with gcore: 'gcore -o dumpfile 3961'. This might take a little time; let's hope you have enough disk space.
3) Third, extract all text from the dump: 'strings dumpfile.3961 &> strings.txt'.
4) Fourth, now your text should be in strings.txt, but along with it there is a considerable amount of junk. Try to remember a keyword from the text you want to find; I looked for "Christel".
5) Check if the keyword is in strings.txt (repeat with another keyword if you get zero, remember to spell it EXACTLY right): 'grep Christel strings.txt'.
6) When you have a hit, open strings.txt in your favorite editor (could be gedit or whatever, I used geany): 'geany strings.txt'.
7) Search for the keyword again: CTRL+F Christel

I found this recipe in an archive of Ubuntu forums, and replicated it here for posterity. And because it's darn geeky. :D

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Details

CombatWombat Speaks is a personal blog about Computing, Faith, and Life.
It is deliberately anonymous, as it doesn't really matter who I am.
What matters is the quality of the information within, and how
relevant it is to you.

There is a heavy emphasis here on technical computing, especially Linux, Ubuntu, Mint, Microsoft, VirtualBox, Networking, and Usability.

Please drop a comment in if you would like to have more details, or wish to learn about something specifically.

Close Details
CombatWombat speaks
2 Corinthians 10:4