Share /home and /var between two distros (Trisquel and Debian).

3 replies [Last post]
kuno321
Offline
Joined: 10/04/2010

Hello everybody,

I have these three partitions:

/dev/sda1 /
/dev/sda6 /home
/dev/sda7 /var

And now I need to install Debian and Trisquel in the same machine but I have a question: can I install two distributions that share partitions? So, each distro will have its root (/) but the same /home and /var.

So, the result will be like this:

/dev/sda1 / (Trisquel root)
/dev/sda5 / (Debian root)
/dev/sda6 /home (share by Trisquel and Debian)
/dev/sda7 /var (share by Trisquel and Debian)

Is it possible?

Regards.

quantumgravity
Offline
Joined: 04/22/2013

I can only tell you about /home, know nothing about /var.
It's possible, but it can cause some unpleasant effects in practice, mainly if you use same programs but different versions on your distros.

But if you make sure all versions are pretty equal (especially gnome or your DE) then this should be possible.

Darksoul71
Offline
Joined: 01/04/2012

Technical this is possible but not really advisable.
Applications store their configuration stuff inside hidden files and directories.
They might interfere e.g. if you use different versions of the same tool in Debian and Trisquel.

salparadise
Offline
Joined: 09/08/2013

No idea about /var.

As long as you don't use the same user name then sharing /home is fine.
If you have folders with stuff you want to access from both, then one possible solution is to make a folder at the root of /home and put them in there, then make it readable by all. You can then symlink that folder into appropriate home folders.
So /home would then look something like...

/home/account1
/home/account2
/home/stuff

Then in a terminal, something like 'ln -s /home/stuff/Music/* /home/account1/Music'

This a crude solution and issues arise quite quickly. But solutions based on the above and tuned accordingly are fairly easy to arrive at.