My personal preference ( not that anyone's asked ) is to use bind. Probably because I share a lot of my folders with Samba across the network and Samba can't follow symlinks.
Let's say your second disk is mounted in fstab as /Data. Then copy all of the home folders you want to /Data. Then use the following command to bind the folders in /Data back to the home folder:
Code:
sudo mount --bind /Data/Videos /home/morbius/Videos
You've got 3 options to have this all happen automatically:
[1] Stick that same expression in /etc/rc.local right above the "exit 0" line.
[2] Back in the good old days you could add it to fstab but that doesn't work anymore - well, it works in Debian just not in Ubuntu. The syntax changes though:
Code:
/Data/Videos /home/morbius/Videos auto bind 0 0
You just had to make sure you place that line after the fstab line that mounts /Data itself.
[3] Create an upstart job that will execute the "mount --bind" only after mountall is complete. This is that way I do it these days.
Either way you have to make sure you are auto mouning /Data in fstab.
Bookmarks