Mounting does not erase data, but it might hide data since the contents of the mountpoint are replaced with the mounted filesystem (which may be empty). Of course, there may be side effects (programs that behave differently depending on how things are mounted), so things can still go horribly wrong when you mismanage your mountpoints.
If you mounted an empty filesystem in the wrong place, simply umounting would do:
umount /acme
If you want to see what is below a mountpoint without umounting it, you can bind-mount the parent filesystem elsewhere:
mkdir /mnt/root
mount --bind / /mnt/root
ls /mnt/root/acme
It's more difficult if there are more filesystem layers mounted over one another. Use lsblk
and cat /proc/mounts
to figure out the structure. You can bind-mount each layer separately in a temporary directory and check out the contents.
Note those bind-mounts are writable by default so it's possible to change, rename and remove files. For a read-only view, just add --read-only
.