I'm fairly new to Ubuntu and Linux in general, and I'm working on a small project in which I'm coming up against something new to me.
I'm adding a second disk to a ubuntu VM, and I want to mount it to /media/recordings I'm pretty sure I've got that process nailed down, but I was wondering what happens to files that are already in the /media/recordings folder.
Out of curiosity, I wrote a text file into the /media/recordings directory before mounting /dev/sdb1 to it. I mounted the disk, and that text file was gone. I wrote a new text file to the disk, and then unmounted and rebooted. I check the /media/recordings directory, and my original text file was there, and not the new one (as expected).
I guess my question is what happens to the original directory when the disk is mounted? I guess I was expecting the two locations to be merged, not "overwritten".