Ok, So after trying out what you’ve suggested it looks like it shows the source for bind mounting regular folders.
fish@Loken: ~ $ findmnt ~/test2
TARGET SOURCE FSTYPE OPTIONS
/home/fish/test2 /dev/sdb2[/@home/fish/test] btrfs rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=258,subvol=/@home/fish/test
but apparently doesn’t work for binding a folder that’s mounted as tmpfs, which is what I’m trying to accomplish. I didn’t realise that was the specific problem.
fish@Loken: ~ $ findmnt /mnt/HDD_NTFS/Linux/Heroes\ of\ the\ Storm/
TARGET SOURCE FSTYPE OPTIONS
/mnt/HDD_NTFS/Linux/Heroes of the Storm tmpfs[/Heroes of the Storm] tmpfs rw,relatime,size=23068672k
Ok so what I was originally trying to do was make a bash script that would create a Ramdisk at /mnt/RAMDISK
as tmpfs, then copy whatever folder I specified into the ramdisk, then mount it over the original folder. I wanted this because it would make the contents of that folder read and write incredibly quickly, greatly reducing loading times and stuttering of whatever game I put in there. This part works fine.
Then when I was done with the Ramdisk, I wanted it to unbind the mount from the original folder, copy everything back and remove the tmpfs. However because it doesn’t show the source folder in the list of mounts, it’s not straightforward for the script to know which mount is the correct one in the list.
The entry in mountinfo is similar to the results of using findmnt:
fish@Loken: ~ $ less /proc/self/mountinfo |grep Heroes
183 98 0:54 /Heroes\040of\040the\040Storm /mnt/HDD_NTFS/Linux/Heroes\040of\040the\040Storm rw,relatime shared:229 - tmpfs tmpfs rw,size=23068672k
hmmm…