My current system is laid out across two drives:
- 40GB for
/
and/swap
(dev/sdb
) - 1TB for
/home
(dev/sdc
)
As my /home
drive is running out of space, and storage is cheap, I've bought a 2TB drive with the intent of expanding /home
across that drive too (so /home
is spread over two drives/3TB).
I expected this to happen automagically (though I have no idea why I would expect that, really), the drive is installed (dev/sda
), formatted as ext4
, but I've no idea where to go next. Is this easy, is there a tool that can do this?
I've read the following questions:
But I can't piece together the advice in such a way that it makes sense to me, or how it enables:
- Expansion of
/home
, - Auto-mounts the new drive.
I've been using Ubuntu for almost three years, and I still need schoolin'...sigh.
Here are two packages that can merge two partitions in a single mountpoint:
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:
mount
command - which will list all currently mounted drives / partitions.Once you have the mount point, you can create a symlink to that folder in your home directory by running the following command:
This will create a folder in your
/home
directory namedsecondary
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 thesecondary
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
orDesktop
) to your 2TB drive and then replace 'secondary' with the name of that folder in the command above.Yes you would need to do some hacking with LVM,but I think you would lose your data once you setup as an LVM partition. LVM is great if you use it from the start, but a pain in the but if you change your mind later. I would back up all of your data and reinstall from scratch and setup all of your drives for LVM and then restore the data from before.