CyberNotes
Web Browser Wednesday


One of the new things in Ubuntu 7.10 is the ability to read and write to NTFS formatted drives, which is great for Windows XP and Vista users. What that means is that you can create a Firefox profile in Windows and set it up so that Ubuntu uses the exact same profile.

Why would that be nice to have? Any bookmarks, extensions, and options you configure in Windows will be used in Ubuntu as well. You won’t have to spend extra time trying to setup a Firefox profile just for Ubuntu, which for me makes this trick a must!

Here’s what you have to do:

  1. Call up the terminal in Ubuntu, and type firefox -profilemanager at the prompt:
    Firefox Ubuntu Profile 1
  2. You should be presented with the Firefox Profile Manager which we’ll use to create a new profile. After you press the Create Profile button you’ll need to click Next on the following screen.
    Firefox Ubuntu Profile 2
  3. Here you’ll want to type in the name of the new profile, and once you’ve done that click the Choose Folder button:
    Firefox Ubuntu Profile 3
  4. This is where you need to hunt down the location of your Firefox profile on your Windows partition, which in my case was labeled by default in Ubuntu as “sda2″. The profiles are located at Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles\ on Windows XP/2000 or users\[User Name]\AppData\Roaming\Mozilla\Firefox\Profiles\ on Windows Vista. After you select your Firefox profile folder click the Open button.
    (Click to Enlarge)
    Firefox Ubuntu Profile 4
  5. Now you can finish up the profile creation process. When you’re taken back to the Profile Manager, select the new profile that you just made, and start Firefox. If you check the Don’t ask at startup option, Firefox will always use that profile as the default one.
    Firefox Ubuntu Profile 5

See, I told you it was simple! The same type of thing can be done with Mozilla Thunderbird, but I thought Firefox was a good place to start. Enjoy having all of the same extensions, bookmarks, and settings in your Windows and Ubuntu versions of Firefox! ;)

There Are 46 Comments

  1. Interesting idea. What would happen if either OS used an extension that was only for that OS? Would it cause a crash?

    • It just wouldnt load at startup.. then next time you start up firefox it would reinstall, but keep the old options.

  2. Nice tip…but where was this article a month go when I was swearing at Ubuntu, trying to get my FF profile onto it from Windows :P

    If only I’d known it was so easy!

  3. it is good that ubuntu has the ability tread write to ntfs partitions out of the box. it was a pain installing ntfs-3g driver for full permissions to windows partitions. having done that i had already imported my profile. But this is a nice tip.

  4. Gee, that’s actually easier than the way I used to do it. (It involved manually editing some files, which was a pain in the ***.) I knew about the profile manager but I never knew that it could do this. Ah well, yay for hidden Mozilla features! :)

    This trick should also work with Mozilla derivative products such as Flock, Instantbird and more. Imagine the possibilities!

    Peter Gasston wrote:
    Interesting idea. What would happen if either OS used an extension that was only for that OS? Would it cause a crash?

    Good question. C’mon, who’s willing to give it a try? :D

  5. Firefox just crashes on start. I had a few extensions that made the Ubuntu not work, so I ended up copying the folder and removing extensions in safe mode. Extensions like IE Tab and the like.

  6. Peter Gasston wrote:
    Interesting idea. What would happen if either OS used an extension that was only for that OS? Would it cause a crash?

    It depends on how complicated the extensions are that you’re using. Most extensions probably just won’t do anything, but some could definitely make the browser crash. You can always disable certain extensions as you switch between the operating systems.

    Michael Dobrofsky wrote:
    Nice tip…but where was this article a month go when I was swearing at Ubuntu, trying to get my FF profile onto it from Windows :P
    If only I’d known it was so easy!

    :) Guess my timing was a bit off. Although you do have to be using the new Ubuntu 7.10 for this to work. I’m not sure if you were using a pre-release version or not when you were trying it before.

    Tinhed wrote:
    it is good that ubuntu has the ability tread write to ntfs partitions out of the box. it was a pain installing ntfs-3g driver for full permissions to windows partitions. having done that i had already imported my profile. But this is a nice tip.

    I love that Ubuntu now supports both reading and writing to NTFS drives. I also thought that I may still have some troubles with Vista drives because of the complicated permission system, but it was no trouble at all.

    Pieter wrote:
    Gee, that’s actually easier than the way I used to do it. (It involved manually editing some files, which was a pain in the ***.) I knew about the profile manager but I never knew that it could do this. Ah well, yay for hidden Mozilla features! :)
    This trick should also work with Mozilla derivative products such as Flock, Instantbird and more. Imagine the possibilities!

    That’s why I’m excited to see all the branches off of Mozilla products. There’s so much that you can do with them all, and stuff like this helps bridge the gap for Windows users. If more apps were able to do profile sharing between operating systems then I’m sure more people would be willing to at least try Linux.

    Anonymous wrote:
    Firefox just crashes on start. I had a few extensions that made the Ubuntu not work, so I ended up copying the folder and removing extensions in safe mode. Extensions like IE Tab and the like.

    Guess we know what happens when there’s an incompatible extension. You could, however, just boot Firefox into safe mode when you’re on Linux and disable some of those extensions. Then when you’re back on Windows you can re-enable them.

  7. My experience with sharing a profile has been that the addons/extensions end up being corrupted and no longer load on either system. Great idea, but it needs work. Major shame that firefox can’t share profiles between versions/architectures and systems

  8. This is the easy part you should see what I had to do to make a unified lightning(thunderbird’s calendar extension) .xpi that worked in both Vista 32 bit and Ubuntu 64 bit so that I could boot into either vista or ubuntu at school and still be able to schedule homework and tests. Let me know if you’d be interested in a tutorial for that, if so I’ll make a howto.

  9. Another option is Google Browser Sync ([google.com]). I’ve been using it for a long time now to share settings between copies of Firefox running on various PCs, including Ubuntu. Works like a charm: bookmarks, browser options, even some cookie settings. I’ve become so spoiled by it that I can’t even consider switching back to IE.

  10. Thanks for TIP. I have adopted similar approach for all my dual booting machine. This could only be achieved after great NTFS auto support from GUTSY Gibbon. You can also apply to common download folder for both profile where downloaded documents could be shared

  11. Can someone please write what windows-extensions could cause an Ubuntu-Firefox to crash..
    Thanks.

  12. Adrian wrote:
    My experience with sharing a profile has been that the addons/extensions end up being corrupted and no longer load on either system. Great idea, but it needs work. Major shame that firefox can’t share profiles between versions/architectures and systems

    It really depends on the extensions that your using, because I have over 10 installed and haven’t had a single problem.

    BigDaddy-CF- wrote:
    This is the easy part you should see what I had to do to make a unified lightning(thunderbird’s calendar extension) .xpi that worked in both Vista 32 bit and Ubuntu 64 bit so that I could boot into either vista or ubuntu at school and still be able to schedule homework and tests. Let me know if you’d be interested in a tutorial for that, if so I’ll make a howto.

    That sounds pretty interesting. I would think that it would be as simple as sharing the Thunderbird profile, but I guess that’s not the case?

    Dan wrote:
    Another option is Google Browser Sync ([google.com]). I’ve been using it for a long time now to share settings between copies of Firefox running on various PCs, including Ubuntu. Works like a charm: bookmarks, browser options, even some cookie settings. I’ve become so spoiled by it that I can’t even consider switching back to IE.

    I’ve used that a bit in Firefox, but it has been known to cause some performance problems. So I keep my distance now. ;)

    Anonymous wrote:
    Can someone please write what windows-extensions could cause an Ubuntu-Firefox to crash..
    Thanks.

    It’s tough to know right off the bat, but I’m sure there are some of the obvious ones like IE Tab. If you’re having problems try posting your list of extensions and I’ll see if there are any that stand out to me.

  13. When I tried this trick, it detected everything OK but none of the add-ons worked. When I copied the profile to a folder in the Linux partition and set that as the default, it worked fine.

  14. Lozza wrote:
    When I tried this trick, it detected everything OK but none of the add-ons worked. When I copied the profile to a folder in the Linux partition and set that as the default, it worked fine.

    That’s odd, I had no problems with my add-ons working. It’s especially weird since you just copied the profile and it worked fine, which indicates that it wasn’t a bad extension. Must just be some sort of glitch.

  15. If the bookmarks are enough for you, all you need is the Foxmarks extension. I have 2 machines and one uses Feisty and the other dual boots with Gutsy and Simply Mepis. Foxmarks keeps all bookmarks synched.

  16. I think it would be better to use Ext2 Installable File System For Windows ([fs-driver.org]) to make your linux drive show up in windows. Why? because any time there is a improper shutdown of Xp, NTFS puts a lock on the drive. Ubuntu will not mount a drive that has a lock on it.

    I have found it easier to keep a third FAT32 partition on my system. I use the Google Browser sync extension for tabs, passwords, history, and cookies. Then I use the FEBE extension to just back up my extensions to my FAT32 drive. It works ok for me.

    Thanks for the great article.

  17. hendoc wrote:
    If the bookmarks are enough for you, all you need is the Foxmarks extension. I have 2 machines and one uses Feisty and the other dual boots with Gutsy and Simply Mepis. Foxmarks keeps all bookmarks synched.

    That is a solution that I highly recommend for users, but that can cause some unneeded overhead for Firefox as well if you’re only using your profile between Windows and Linux on the same computer. Foxmarks has to frequently sync your bookmarks, which can slow down your browsing from time to time. If you’re just on the same computer I would consider sharing your profile.

    Randy Bryan wrote:
    I think it would be better to use Ext2 Installable File System For Windows ([fs-driver.org]) to make your linux drive show up in windows. Why? because any time there is a improper shutdown of Xp, NTFS puts a lock on the drive. Ubuntu will not mount a drive that has a lock on it.

    I have found it easier to keep a third FAT32 partition on my system. I use the Google Browser sync extension for tabs, passwords, history, and cookies. Then I use the FEBE extension to just back up my extensions to my FAT32 drive. It works ok for me.

    That’s a good point, but it’s not often that my Windows abnormally shuts down. It’s not a bad idea to keep a separate FAT32 partition though, and you could even just store your Firefox profile on that partition. Then setup Windows and Linux to access the profile on the FAT32 partition following most of the steps outlined above.

  18. :?: Well I’d love to use this tip, but for some reason the Profile Manager in Ubuntu GG refuses to work!
    I run ‘firefox -ProfileManager’ as required but only get a new instance of firefox … anyone know whats happening?

  19. :!: update! .. sorted it!
    Shut down other firefox windows before running Profile Manger!!
    I learn something new every day … thanks for this tip BTW!

  20. :) Yep, you have to shutdown Firefox before it will work. Guess I forgot to mention that. :roll:

  21. There are too many things that can go wrong with this scenario.

    Frankly, I prefer Google’s Browser Sync Extension.

    It continuously synchronizes your Firefox settings – including bookmarks, history, persistent cookies, and saved passwords – across your computers. It also allows you to restore open tabs and windows across different machines and browser sessions.

  22. Scott wrote:
    There are too many things that can go wrong with this scenario.

    Frankly, I prefer Google’s Browser Sync Extension.

    It continuously synchronizes your Firefox settings – including bookmarks, history, persistent cookies, and saved passwords – across your computers. It also allows you to restore open tabs and windows across different machines and browser sessions.

    That’s true, but that extension has been known to cause heavy memory and performance usage. So I try to stay away from it.

  23. I had written a similar article sometime ago, which involved modifying the configuration files manually. You may want to check it at [smart-techie.com]

  24. Extensions are shown in ubuntu but are not working :(

  25. Sepehr wrote:
    Extensions are shown in ubuntu but are not working :(

    Some extensions may not work. It’s dependent on whether the developer made it so that they work on all platforms.

  26. When I enter firefox -profilemanager in the terminal, instead of opening up the firefox Choose User Profile Box, it opens the firefox program. How can I get to the profile manager?

  27. Bob wrote:
    When I enter firefox -profilemanager in the terminal, instead of opening up the firefox Choose User Profile Box, it opens the firefox program. How can I get to the profile manager?

    Sounds like you already have Firefox open when trying to do that? Try closing all instances of Firefox.

  28. Problem solved!
    Thanks Ryan

  29. Hi Ryan,
    Sorry to bother you again, but I have a new problem!

    I was able to complete the process for both Firefox and Thunderbird. I then rebooted in windows and everything was working fine, I had even added some bookmarks and folders while I was in Ubuntu and the changes showed up in xp.
    But when I tried to start both programs in Ubuntu, I was told that the programs where already running. I can start them using the default user but not under the new user.
    I have gone back to windows, restarted both applications with no problem. I then made certain that both programs where closed, did a complete shutdown and rebooted
    in Ubuntu with the same result,i.e. “Firefox/Thunderbird is already running”. And they still both work under the default user.
    Do you have any idea why this is happening.
    Thanks
    Bob
    .

  30. Hi Ryan,
    My son, who first introduced me to Linux, just resolved my problem.
    My xp drive was not mounted. It is now mounted permanently and everything
    is working fine.
    Regards
    Bob

  31. Glad you got it all working great now Bob!

  32. I have come to use my FF3 profile on Windows XP and Ubuntu (8.04).
    There are some inconveniences though…
    Whenever I start up FF in Ubuntu after having run it on Windows, it says that there probably is another instance running which I ought to shut down. I resolve this by deleting the lock object that maybe Windows has kindly left behind.
    But then (in both WIndows and Ubuntu) FF behaves like it has just been upgraded, checking every addon for available updates instead of just booting up. How can I fix these two problems?

  33. lb, It has to make sure it disables all of the extensions that will not work on one or the other operating systems.

  34. THIS IS AWESOME!! I got my windows profile and ADD ONS and EVERYTHING on my linux ubuntu now!! THANK YOU **SOOO** MUCH!
    Even sxipper, speed dial and everything work!

  35. Hey,

    I have the same problem as Bob : My xp drive was not mounted. Can you tell me how to mount the xp drive?

    Kind Regards
    Pete

    • pete and bob,

      make a directory by typing “mkdir /media/xp”. This is called the mount point.
      edit your /etc/fstab (as root or using sudo). If your xp partition is on /dev/sda1, add a line:

      /dev/sda1 /media/xp ntfs defaults 0 4

      Save it. Your xp directory will now mount every time you boot in Linux.
      Test it out by typing “mount /dev/sda1″.

      -randy

  36. Nice piece but it seems then the firefox is always accessing the XP partition, which is lousy techcraft, n’est pas- if it gets trashed, corrupted, or simply inaccessible. Or it can corrupt the Windows stuff simply by the variations of OS’s or some Windows permission shock. Wouldn’t it be much preferable to copy over the profile to the Ubuntu partition, and access internally???

    Secondly- in copying over info and preferences, (prev. autocomplete, downloads, bkmarks) they (Ubuntu) say to copy the sqlite data files- are these identical between Windows and Ubuntu- the different OS’s won’t make it go crazy? Well I’m about to try it (backup up existing files) and will let you know. Anything to add about this circa Dec 2010 info?

  37. copied places, downloads, cookies, and form history sqlite files from Windows XP SP3 to Firefox 3.6.13 under Ubuntu 10.4.1, and so far seems to work- old bookmarks are all showing. Course I didn’t want to lose the new ones, but no option for merge. Before I had created a new profile name mkhm, and imported the bookmarks, but could not find it again, and profiles.ini didn’t show it. Insane choice of default profile folder name 6ethwil5.default- you must use that profile finder in help! regards

Leave Your Comment


Message is the only required field.
Emails are not published.