@scottalanmiller Excellent! For some reason, I was having a hard time wrapping my head around the fact that /data is it's own filesystem within /.
As a test, I tried this. I unmounted /data, and mounted my VHD onto /home (which contains ./eddie/testFile). I figured this would happen: ./eddie/testFile would vanish, because /home is now representing a completely different physical data location.
Turns out that indeed happened. When I unmounted /home, ./eddie/testFile reappeared, which I expected.
Let's say, I'm in a situation where /home to be a mount point for another disk, and the current data within /home need to be moved to the other disk (for whatever reason). Would this be the likely process?
- Copy /home to a /tmp or some other holding place.
- Partition and format the new disk.
- Mount it on /home.
- Copy the data from /tmp (keeping the directory structure, so the end result is /home/subdirectories/foo
- If you wanted to reclaim space on the original drive (since files were initially copied rather than moved), unmount /home, remove /home (since the resultant /home is the directory from the original drive), create a new /home, remount the second disk to this newly created /home.