Ask Your Question

Revision history [back]

Hard to know what the best solution might be.

Potential problems: 1. The Desktop directory is sort of an exception here. The location is defined in ~/.config/user-dirs.dirs

See https://askubuntu.com/questions/116276/how-to-set-the-desktop-to-home-desktop for a brief discussion.

  1. Each system identifies users by UID an not user name. Most distros will by default assign a UID of 1000 to the first user, and 1001 to second, etc.

  2. Depending on distro, there may be some configuration problems if you share a /home

Potential solutions:

  1. Make a /home partition and mount it at /home. This is likely your best option, but it can cause problems across distros.

  2. Make a /data partition, mount it anywhere you like, and copy your user settings with cp or rsync.

  3. Mount your /data partition in a standard location and copy the config files you want to your home.

  • Specify the location of Desktop directory in .config/user-dirs.dirs as say /data/Desktop and /data/Pictures

  • mount/bind your other directories in fstab

    /data/scripts /home_your_user/scripts none defaults,bind 0 0

and copy config files such as .bashrc, .config/user-dirs.dirs, /vimrc, etc to your new home .

Hard to know what the best solution might be.

Potential problems: 1. The Desktop directory is sort of an exception here. The location is defined in ~/.config/user-dirs.dirs

See https://askubuntu.com/questions/116276/how-to-set-the-desktop-to-home-desktop for a brief discussion.

  1. Each system identifies users by UID an not user name. Most distros will by default assign a UID of 1000 to the first user, and 1001 to second, etc.

  2. Depending on distro, there may be some configuration problems if you share a /home

Potential solutions:

  1. Make a /home partition and mount it at /home. This is likely your best option, but it can cause problems across distros.

  2. Make a /data partition, mount it anywhere you like, and copy your user settings with cp or rsync.

  3. Mount your /data partition in a standard location and copy the config files you want to your home.

  • Specify the location of Desktop directory in .config/user-dirs.dirs as say /data/Desktop and /data/Pictures

  • mount/bind your other directories in fstab

    /data/scripts /home_your_user/scripts none defaults,bind 0 0

and copy config files such as .bashrc, .config/user-dirs.dirs, /vimrc, etc to your new home .

I would not bother linking these files they are small size and should be a one-time copy or rsync