How to increase space in /home, by adding an extra hdd?

Solution 1:

As mentioned in my comment, creating a symlink is probably the easiest way of accomplishing your goal. There is one downside to going this route and I'll explain it at the end.

Here's what you need to do:

  1. Find the mount point of your new 2TB drive. If the drive is currently mounted, you can easily find this information by running the mount command - which will list all currently mounted drives / partitions.
  2. Once you have the mount point, you can create a symlink to that folder in your home directory by running the following command:

    ln -s [MOUNT POINT]  ~/secondary

    This will create a folder in your /home directory named secondary that contains all of the contents of your 2TB drive. Now whenever you want to save something to your 2TB drive, simply save it in the secondary folder.

Now you've probably already spotted the downside to going this method. Although it is simple to set up, it doesn't automatically split content across the drive for you. You'll have to do this yourself. If you wanted to, you could copy all of the contents of a folder in your home directory (like Music or Desktop) to your 2TB drive and then replace 'secondary' with the name of that folder in the command above.

Solution 2:

Here are two packages that can merge two partitions in a single mountpoint:

unionfs-fuse - Fuse implementation of unionfs
mhddfs - file system for unifying several mount points into one