Files are safe as mentioned in @codeMonks answer.
But there's a safer workaround to access the files. Let's say that you have existing directory /data/media/
with assorted media files (/data
and /data/media
are on the same filesystem)
Now mounting something like over /data/media
will hide files that it contained. (lets assume that you've added usbdrive /dev/sdb1
and mounted it over /data/media
)
To access files in /data/media
:
To be on the safe side, first create empty directory /mnt/mymedia
and then use mount --bind
(works on directory level)
sudo mount --bind /data /mnt/mymedia/
Please note that you have to use the upperdir /data
if you're mounting after usb drive! But if you used
sudo mount --bind /data/media /mnt/mymedia/
before mounting said usbdrive you can still access you original files from /mnt/mymedia