Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to set up a single shared desktop folder for multiple linux installations on a dual-boot computer? I'd like multiple Linux installations on one computer to share a single desktop. I'm also currently using Ubuntu 64 bit.

share|improve this question
    
What is a "single desktop"? –  criziot Jul 11 '12 at 23:41
add comment

2 Answers

up vote 5 down vote accepted

I believe you'd most likely want to have a /home partition shared between all your installations. That way, all per-user customizations will be shared, but all distro-specific system configuration is separate.

When you install your system for the first time, you usually can select custom partitioning, and there also choose existing partitions and specify a mount point for those. That would be the easiest approach. So for your first system you'd do custom partitioning, create new partitions as you want them, have one of them for this linux /, one for /home, and both of these newly formatted. For subsequent installs, you'd use one of the other partitions for / after formatting, and the existing file system for /home without formatting.

If you want to start from an existing system, things become difficult and errors might have severe consequences. You'd have to

  1. shrink the existing file system
  2. shrink the containing partition
  3. create a new partition
  4. creating a file system on that
  5. boot into single user mode for subsequent steps
  6. rename the old home
  7. create a mountpoint for the new home
  8. create a fstab entry for the new mount
  9. mount the new home
  10. cp -a stuff from old to new home
  11. reboot again in multi-user mode

Some further aspects you should be aware of:

  • Linux file ownership information is stored using numeric user and group identifiers. The files /etc/passwd and /etc/group map those to names. You should ensure that the mappings for users are the same on both systems. There usually are a a large number of system accounts for various services, but only very few user accounts. And most distros these days might allocate ids in the same way. So it might work out automatically, but if files suddenly become inaccessible, this would be the likely cause.
  • Make sure you don't start any linux while another one is hibernating. Hibernation will leave the filesystem in an inconsistent state, and even worse, the kernel will expect the system not to change during hibernation, and might cache things for this reason. So major data corruption could be caused by this access pattern.
share|improve this answer
    
Yes, I would like to do that. –  Anderson Green Jul 12 '12 at 1:03
    
What steps will I need to take in order to accomplish this? –  Anderson Green Jul 12 '12 at 1:03
add comment

If you put that folder on a separate partition, you can just mount that partition to the desktop folder on boot :)

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.