Personal directory distributed over several physical disks
- How to split your home directory in several disks instead of having a bunch o units visibly mounted on your file manager.
Someone may say that it is a symptom of OCD, but the fact is that I do not like having disk drives visible in the file browser. Point! I also do not like having a separate disk to store other things and that remain outside my home directory.
What I like is being able to use the directories that are pre-configured for each user: Documents, Downloads, Images, Public, Music, Videos.
When you have a single disk on your computer, it is very simple:
- Disc 1:
- Partition for the system:
/
- Partition for user:
/home
- Partition for the system:
But when you have multiple albums that’s when things start to get a little disorganized. It is possible to use a whole disk for the system (the small one) and the rest for the home (the big one). But if the system disk is big, having all that space dedicated to / would be a waste, then we also put home there:
- Disc 1:
- Partition for the system:
/
- Partition for user:
/home
- Partition for the system:
- Disc 2:
- (n partitions that are mounted as independent drives)
But in this case, the partition (s) of Disk 2 appear in the file browser, as something apart. I do not like it, it seems out of place, I will also store my files there, they should be below /home/<user>
.
In that Disc 2, the extra, maybe we put what is “not essential”: Images, Music and Videos. With this situation I started to think about alternatives and I came to:
- Disc 1:
- Partition for the system:
/
- Partition for user:
/home
- Partition for the system:
- Disc 2:
- Partition mounted to:
/home/<user>/Media
- Partition mounted to:
In Media then I put the directories Images, Music and Videos. But it seemed unnatural to me to have to go to another directory to get to music, videos, etc. Something better should be able to do.
After thinking a bit, I came up with the schema I’m currently using:
- Disc 1:
- Partition for the system:
/
- Partition for user:
/home
- Partition for the system:
- Disc 2:
- Partition mounted to:
/home/<user>/.media
- Partition mounted to:
In this way, and using symlinks, the traditional file structure of a home remains, distributed between 2 physical disks.