Results 1 to 7 of 7

Thread: Shared Data partition for sharing programs between Fedora and Ubuntu.

  1. #1
    Join Date
    May 2008
    Location
    -81.516651, -122.752075
    Beans
    68
    Distro
    Lubuntu

    Shared Data partition for sharing programs between Fedora and Ubuntu.

    I presently use Fedora and Ubuntu.

    I want to share user profiles and data in programs such as:

    ~/.mozilla ~/.thunderbird ~/.purple ~/.VirtualBox .... and so forth.


    Does anyone have any experience and know-how setting something like this up?

    I guess I need to:

    1. Set up some partition using a file system which both OSes can read.
    2. Move the Program's user data there.
    3. Create some type of symbolic links to the Shared data partition files in the locations they would otherwise be in the respective home directories.

    Does that sound right?

    Any comments, recommendations, and instructions are much appreciated.

    Thanks,

    jpinson

  2. #2
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,771
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    In my opinion you should just create an ext3 partition where the data is stored, and mount it in each distro, they should be able to read it. As far as profiles go just point the appropriate apps at the shared partition.

    Using links would be fine as well, just one thing though, if you encrypt the home directory it will break the link.

  3. #3
    Join Date
    May 2008
    Location
    -81.516651, -122.752075
    Beans
    68
    Distro
    Lubuntu

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    Thank you Dangertux,

    I guess my only question now is how to "point the appropriate apps to the shared partition"?

    thanks,

    jp

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    One important thing to check is your UID (user identity) in Fedora and Ubuntu. In Ubuntu, if your account is the first created account, it will be 1000. In Fedora, account UIDs start at 500. Or at least they did until recently. I seem to remember that Fedora was planning to change things so that UIDs started at 1000. Whether they have done already, or will do so in the future, or whether I have misremembered, I don't know, but check this. If you try to share profiles with accounts with different UIDs you will run into permissions problems.

    If your Fedora account is 500, I guess the easiest thing to do would be to create a new account in Fedora and specify a UID of 1000.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  5. #5
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,459
    Distro
    Ubuntu Development Release

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    +1 with coffeecat
    Tried to share a /home and permission problems with different UID's was not a good thing
    at all. Edited and took out rambling on coffeecat said my experience with same.
    Last edited by garvinrick4; September 24th, 2011 at 12:06 AM.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  6. #6
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,771
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    Starting in Fedora 16 the default UID is 1000.

    However, you don't have to create a new user, you can simply :

    Code:
    sudo umod -u 1000 username
    As far as the profiles in question it just depends on the application, you may wish to consult the documentation for that or like stated already just create links.
    Last edited by Dangertux; September 24th, 2011 at 12:34 AM.

  7. #7
    Join Date
    May 2008
    Location
    -81.516651, -122.752075
    Beans
    68
    Distro
    Lubuntu

    Re: Shared Data partition for sharing programs between Fedora and Ubuntu.

    Thank you all for your comments and suggestions.

    I've finally reached a solution and editing my post to reflect it here.

    I backed up my ubuntu home.

    sudo cp /directory /backup_directory/
    I changed the permissions back to 777 to make things a bit easier to work with.

    sudo chmod 777 /directory/of/backup/ -R

    I reinstalled ubuntu with the following partitions:

    Swap
    Shared Data (ext4)
    Ubuntu(ext4)
    Empty

    I installed Fedora on the empty partition. (with the boot information being stored on the first sector of the Fedora partition.)

    I rebooted into Ubuntu and updated grub to detect fedora
    sudo update-grub


    As far as the topic at hand is concerned:

    1. I moved my .whateverprogram files to the shared directory.
    2. I deleted any existing .whateverprogram files in my existing installation's home directory.
    3. I used the following command in both Ubuntu and Fedora to create symbolic links.

    ln -s /directory/for/referenced/files/.WhateverProgram /newly/created/symbolic/link/.WhateverProgram
    4. As noted by Dangertux, Fedora 16 's default UID is 1000, so I didn't have to make any changes there.

    5. I manually mounted the shared partition.
    6. I then launched the various programs which referenced the shared directory without a hitch.

    hurray!


    Comment:
    It seems the "umod" command does not exist under fedora or at least I couldn't find it. I ran sudo yum install umod....
    So the following command didn't work for me.
    sudo umod -u 1000 username
    However, it seems fedora has graphical tool under Administration-->Users and groups to manage all of that.


    Questions remaining:
    1. how should I configure my systems to automatically mount the shared drive on startup?
    2. If I later want to encrypt my home directories, is there another equally simple solution to reference the shared configuration files on the shared partition?


    Thanks and all the best,

    jp
    Last edited by YQ002lc2; October 16th, 2011 at 09:58 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •