Open Firefox, goto: Bookmarks -> Manage Bookmarks.
It'll open Bookmarks Manager.
Here goto: File -> Export and save the file.
SIMPLE...
When u reinstall firefox, repeat the same process, but instead of Export click on Import and give the path of previously saved file.