I create a RAM Disk on Ubuntu 16.10 (running within a VM) with the following commands
sudo mkdir -p /media/RAMDisk sudo mount -t tmpfs -o size=2048M tmpfs /media/RAMDisk
After this, if I go into the RAMDisk and do this
df .
I get the following
tmpfs 2097152 0 2097152 0% /media/RAMDisk
So far so good.
Then I reboot Ubuntu (which reboots the VM running via Workstation Pro).
After reboot, I expect either the /media/RAMDisk folder to not exist at all, or to exist as a tmpfs file system with no contents in it.
The /media/RAMDisk folder does exist with no contents, but surprisingly as a /dev/sda1 file system. When I do df . with /media/RAMDisk, I see this:
/dev/sda1 17413904 9577448 6928836 59% /
Now, I could easily put the commands within my .bashrc and have them run and do the right things everytime, but I need to know what is going on.
Also, could my virtual machine manager -- Workstation Pro -- be doing something?