Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I wanted to run different releases (stable, development) of the same distribution on a single computer, what do I need to configure to ensure they can share a /home partition between them?

share|improve this question
    
It might be a good idea to use the same /etc/passwd file on both installs. –  Brad Gilbert May 3 '09 at 23:04
add comment

3 Answers 3

up vote 10 down vote accepted

You need to keep the username to UID, and groupname to GID mappings in sync between the installs.

Add the partition to fstab of both installs.

You might find that some application has configuration file somewhere under your home directory, and the updated package may make changes to the configuration that are not compatible with the previous release used on the other install. As a safety precaution it is important to keep good backups of files.

share|improve this answer
add comment

Just set it to mount the partition in /etc/fstab on both installs. Similar to this:

/dev/sda3 /home ext4  defaults,errors=remount-ro  0 2
share|improve this answer
add comment

While I'm particularly interested in best practices for doing this with multiple partitions/drives on a single machine, I'd also like to mention that one option would be to host /home on network attached storage or a separate machine on the network and have it automounted.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.