Creating an encrypted volume. Before we create our first volume, VeraCrypt provides easy-to-follow instructions in their manual. The manual is accessible both within the application and online. To find the in-app help, from the main menu, select Help, User's Guide. The manual starts off with a beginner's tutorial that includes how to create a container and how to create an encrypted hard drive partition, USB stick, or other device.
I've opened VeraCrypt on the left side and the manual on the right side to show you that although the screenshots are from a Windows machine in the manual, the user interface on Linux is almost identical, so you should be able to follow along quite easily. You'll notice a slight difference in the main window. Under Windows, you can mount VeraCrypt volumes as virtual hard drive partitions, like E:, F:, G:, etc., and the VeraCrypt main screen allows you to select that drive letter for opening a volume and mounting it. VeraCrypt under Linux also mounts the volumes as virtual hard drive partitions, but the main screen gives you what it calls slots to use for holding the volumes before you mount them. In the VeraCrypt main window, Linux slots and Windows drive letters work exactly the same way. You'll see that the rest of the buttons and selections are identical on this screen.
Now let's create our first volume. Click Create Volume. VeraCrypt starts the Volume Creation Wizard that will walk us through the steps. In this step, you need to choose where you want to put your VeraCrypt volume. A VeraCrypt volume can reside in a file, in a partition, or drive on your computer. We will choose the first option and create a VeraCrypt volume in a file. Click Next. Now you'll choose whether to create a standard or a hidden VeraCrypt volume. I'm going to create a standard VeraCrypt volume. Click Next.
In this step, you have to specify where you want the VeraCrypt volume created. Note that a VeraCrypt container is just like any normal file. It can be moved or deleted like any normal file. Also note the warning on the screen. Don't select an existing file unless you want it deleted. If you choose an existing file, VeraCrypt doesn't encrypt it. It deletes the old file and creates a new encrypted one with the same name. In the next step, you can specify a new file and a new filename. Click Select File. Select the path where you want the container to be created. I'm going to put it in the Documents folder. Then type the filename. Since VeraCrypt lets you name your file anything you want, I'll call mine MyTestVolume.ppt. Presentation files can be pretty big, so to the casual observer, this will look like a simple PowerPoint file. Click Save. The Volume Creation Wizard now shows the path and the name of the file. Click Next.
Now you choose an encryption algorithm and a hash algorithm for the volume. If you're not sure what to select here, you can use the default settings and simply click Next. Now I enter the size of our VeraCrypt container. I'll make it 20 MB just as a test. You can make it any size you like, bigger or smaller. I can make this file as big as the 422 GB of available space on my hard drive. Click Next. Here you have to choose a good password for your volume. VeraCrypt offers suggestions as to what makes a good password right on this screen. Type your password into both input fields. Then click Next.
If your password is too weak, VeraCrypt provides a warning. If you get the warning, click OK and consider using a more secure password. Now you can choose the file format you want to use with the VeraCrypt volume. The most compatible formats are NTFS and FAT. Since I'm just testing this on Linux, I'll choose ext4 and click Next. Since I chose a Linux file format, VeraCrypt lets me know that other operating system platforms may not be able to use the volume. If I don't say that I'm using the volume only on Linux, VeraCrypt tells me that if I choose a format designed for Linux, if I plan on sharing the volume with other operating systems, they may not be able to read the files, or they might require special drivers or utilities to make this possible. Click OK and then click Next.
Normally, you would move your mouse as randomly as possible within the VeraCrypt creation wizard window for at least 30 seconds or so. This motion helps VeraCrypt create strong encryption keys. For this test, I'll just click Format. VeraCrypt now begins creating the volume. It creates a file called mytestvolume.ppt in the Documents folder. This file will contain the encrypted VeraCrypt volume. Depending on the size of the volume that you create, the volume creation step might actually take quite a bit of time. When it finishes, you'll be asked for your Linux administrator password. That's because, from a Linux perspective, we're making a system change that requires administrator permission to be secure.
The virtual disk will be entirely encrypted, including file names, allocation tables, free space, and so on, and it will behave just like a real drive partition. Files that are being read or copied from an encrypted VeraCrypt volume are automatically decrypted on the fly in RAM memory. Similarly, files that are being written or copied to the VeraCrypt volume are automatically encrypted on the fly in RAM right before they're written to the disk. VeraCrypt never saves any encrypted data to a disk. It only stores it temporarily in RAM memory. Even when the volume is mounted, data stored in the volume is still encrypted when you restart or turn off your computer. The volume will be dismounted, and all files stored on it will be inaccessible and encrypted.
Once the volume is created, click OK to close the dialog box. Our first VeraCrypt volume is ready to use, so click Exit to close the wizard. Now let's mount the volume to see how it works. Select the slot from the list where you want your VeraCrypt container to be mounted. Notice that the volume file we just created is already selected, so to begin using the VeraCrypt volume, we just need to click Mount. VeraCrypt asks for the password we gave to the VeraCrypt volume so that it can unencrypt it before mounting it. Now type the password and click OK. If you open a file stored on a VeraCrypt volume, in a media player for example, the file will be automatically decrypted to RAM, on the fly, when it's being read.
Once my volume is mounted, you'll see that Linux has opened it in what looks like a 21 MB hard drive partition named VeraCrypt1. You can see that the virtual drive is empty. Let's test it out by copying my background wallpaper file into the virtual drive. My wallpaper is in the Pictures folder. I'll just drag it from here and drop it here. Click on the virtual drive, and there it is.