Some background: I have installed Linux Mint 17 Cinnamon on my laptop SSD on a 10GB formatted partition and i have another HDD with 75GB, both ext4 formatted.
The question part: I have two partitions lets call them System(sda1) and Data(sdb1).
How do i move the folders: home, usr, var and tmp to the Data(sdb1) and make them accessible from the root system?
I tried symlinks and fstab with a lame logic that didn`t work.
What i appended in my /etc/fstab
:
UUID=XXX-Data-drive-UUID-XXX /media/data ext4 default 0 1
/media/data/tmp /tmp ext4 default 0 1
/media/data/home /home ext4 default 0 1
/media/data/usr /usr ext4 default 0 1
/media/data/var /var ext4 default 0 1
Can anyone at least point me in a right direction ?
-- Edited--
The answer worked, but just to help whoever is following this path:
First, i copied with the command cp -rp (-r for recursive and -p for keeping the same permissions, without -p everything will belong to root)
Them i changed the /etc/fstab as the answer, the bind clause really did the trick.
Them i rebooted with a liveUSB only to rename the old folders in the System(sda1) and avoid some kind of conflict.
And them i started normally, not a single error.