Monday, September 22, 2014

When mounted disks become directories and eat your drive space...

I'm currently running a Centos 7 machine on which I'm running Windows 7 in a VMWare Player.

When I mount a 1TB TrueCrypt encrypted disk, which mounts in the /media directory, and share it on the Player (as a "shared folder" in settings) it works normally.

But what happens when you reboot the machine and no longer have the TrueCrypt disk mounted?

The Player still uses the /media directory as a shared folder. It took me a couple of boots to figure out why my 50GB /root partition was filled to brim (it had 14MB free) - all the Windows 7 backups were made into the folder, which was no longer the expected 1TB external disk...

So, unless you are mounting that TrueCrypt disk automatically with a keyfile, you better have a good memory and always manually mount it after every boot. I had a couple of power outs because of electrical installations, which the UPS could not handle and my memory concerning machines I'm used to being "leave running and forget" isn't that great anymore. Thus, "hilarity" ensues...