Shared desktop for multiple Linux installations

4

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.

Anderson Green

Posted 2012-07-11T23:38:47.643

Reputation: 5 214

What is a "single desktop"? – fmanco – 2012-07-11T23:41:10.760

Answers

5

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.

MvG

Posted 2012-07-11T23:38:47.643

Reputation: 1 259

Yes, I would like to do that. – Anderson Green – 2012-07-12T01:03:01.380

What steps will I need to take in order to accomplish this? – Anderson Green – 2012-07-12T01:03:27.463

2

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

Lucas Kauffman

Posted 2012-07-11T23:38:47.643

Reputation: 2 545