Encrypt hard drive data to increase security on Linux

Personal data on the hard drive is sensitive and requires maximum security, depending on the needs and purposes of the work that the user chooses to protect accordingly . In the following article, TipsMake.com will show you how to encrypt hard drive data, namely each partition, folder in the Linux operating system with TrueCrypt and eCryptfs.

Encrypt hard drive data to increase security on Linux Picture 1

Encrypt hard drive partition

An alternative installation version of Ubuntu provides users with another option to encrypt the Ubuntu installation partition, so you only need to download the ISO file to your computer, burn it to a CD / DVD or create a USB drive. boot and proceed to install Ubuntu later.

With the installation process quite similar to the original Ubuntu, the user will first have to choose the display language, keyboard type, network system, and the most important step is of course the Guided installation partition. - sử dụng cả đĩa và đặt tập tin LVM để sửdụng trên entire hard drive:

Encrypt hard drive data to increase security on Linux Picture 2

Note that we need to declare or initialize the Master partition or not the Slave to start the installation:

Encrypt hard drive data to increase security on Linux Picture 3

Initialize the password key used to encrypt the hard drive when logging in to Ubuntu:

Encrypt hard drive data to increase security on Linux Picture 4

Select whether you want to encrypt the home directory - home, just in case we replace this directory outside the Ubuntu installation partition:

Encrypt hard drive data to increase security on Linux Picture 5

So we have completed the basic steps, you just need to take the next steps to complete this process.

Directory encryption

eCryptfs is a PGP-based file encryption system created by Philip Zimmerman in 1991. The unique feature of eCryptfs compared to other encryption tools, such as TrueCrypt, is that there is no need to pre-determine the partition size or The hard drive we need to apply. To install eCryptfs, use the following command:

sudo aptitude install ecryptfs-utils

eCryptfs will create a private folder on the hard drive where the program operates and is used to store data in it:

ecryptfs-setup-private

Encrypt hard drive data to increase security on Linux Picture 6

Note that this process will hide the ~ / .Private folder . We should store sensitive data in this private directory to ensure that no one can access and use it, because ecryptfs will hide all data in that directory:

Encrypt hard drive data to increase security on Linux Picture 7

Another point is that this private folder will automatically appear in the system when you log in, and this is also an opportunity for others to use and access when you are not at the computer. We can apply the following method to fix this problem by preventing ecryptfs from unlocking the directory when the user logs in by deleting the empty files stored in the ~ / .ecryptfs / and "quarantine" directories. 'this folder when not using the computer:

ecryptfs-umount-private


Create a separate encrypted hidden partition

TrueCrypt is a free and open source utility used to secure hard drive data, which can work with Windows, Mac and Linux. Application with fast, completely secure and reliable operation, after being encrypted, users can continue to use as normal.

You can download TrueCrypt as a Ubuntu deb file here. After downloading the installation file to your computer, unzip and install as usual. Open TrueCrypt via the Applications> Accessories> TrueCrypt menu , and start by creating any partition we want to encrypt:

Encrypt hard drive data to increase security on Linux Picture 8

TrueCrypt's partition can change the size of the file - also known as a container, in any partition or hard drive:

Encrypt hard drive data to increase security on Linux Picture 9

Besides, the program gives users the option to create additional hidden partitions inside TrueCrypt's own partition:

Encrypt hard drive data to increase security on Linux Picture 10

You should copy files that look like sensitive and important personal data outside of that partition, they will act as 'bait' when others force you to disclose your password. While the actual files you are putting inside the hidden partition, and of course should not expose this partition:

Encrypt hard drive data to increase security on Linux Picture 11

Once you have selected the desired partition and the location needed to store, a new file will be created. If you choose to coincide with an existing file, the program will overwrite the file, so be careful in this step:

Encrypt hard drive data to increase security on Linux Picture 12

Besides the different levels of encryption, the most common is the AES standard:

Encrypt hard drive data to increase security on Linux Picture 13

Create capacity for the partition, remember to pay attention to the space needed for the rest of the hard drive:

Encrypt hard drive data to increase security on Linux Picture 14

TrueCrypt recommends that users set a minimum password of 20 characters:

Encrypt hard drive data to increase security on Linux Picture 15

Move the mouse to anywhere on the screen when the Volume Creation Wizard window displays at least 30 seconds, the longer the process is, the better the application's ability to encrypt the function keys:

Encrypt hard drive data to increase security on Linux Picture 16

TrueCrypt will automatically merge and activate the encrypted partition as a virtual hard drive on the system:

Encrypt hard drive data to increase security on Linux Picture 17

Next is the custom step and set up the hidden partition:

Encrypt hard drive data to increase security on Linux Picture 18

Select an appropriate formatted partition for hidden partitions:

Encrypt hard drive data to increase security on Linux Picture 19

The option to integrate this hidden partition is compatible with other operating systems:

Encrypt hard drive data to increase security on Linux Picture 20

As you can see, data encryption is very important to everyone, especially personal or work-related data. Support tools are many, but how to use them most effectively is really difficult. The above are some specific and basic guidelines for people to improve their ability to use and manage personal documents on a Linux-based computer (here is Ubuntu). Good luck!

5 ★ | 2 Vote

May be interested

  • How to increase the life and durability of hard drivesHow to increase the life and durability of hard drives
    all hard drives will eventually die, but that doesn't mean they will have the same lifespan. if you use it carefully and avoid the following common errors, your hard drive can be used for a while longer.
  • How to merge a hard drive in Windows 10 does not lose data with MiniTool Partition WizardHow to merge a hard drive in Windows 10 does not lose data with MiniTool Partition Wizard
    some tools that you apply in the past to merge hard drives and increase data have some unexpected flaws that make you uncomfortable and insecure. to remedy this situation, tipsmake will present you with a new tool, easy and effective implementation.
  • What is a hard drive? There are several types?What is a hard drive?  There are several types?
    today most types of computers are large and small need to use hard drives, this is an extremely important part for computers, it has the ability to store all personal data and they are always accessed regularly. .
  • 7 tools to increase hard drive performance on Windows7 tools to increase hard drive performance on Windows
    after a period of use, the windows computer will be slow. admittedly, windows 10 is better than previous versions, but this problem still occurs. this article will introduce you to some tools to increase hard drive performance
  • Computer hard drive is fast, why?Computer hard drive is fast, why?
    a hard drive is an important component of a computer, all user data such as windows operating system or personal data is stored on the hard drive and they are always accessed regularly. typically, the average life of a hard drive on a desktop computer is about 6 years. however, there are cases that only 1-2 years of use is broken. so what causes the computer hard drive to crash?
  • Upgrade the hard drive safely to the systemUpgrade the hard drive safely to the system
    recalling the early 1990s, many people had only 40mb of hard drives on hand. at that time, the only reason for you to upgrade your hard drive was to increase storage capacity. and the largest drive capacity you can buy is only 540mb. that was 15 years ago. show
  • How to split the hard drive, merge the partition on Windows XP without worrying about losing dataHow to split the hard drive, merge the partition on Windows XP without worrying about losing data
    the need to increase or decrease the amount of disk space in a computer is not small, such as increasing the capacity of the c drive for more data space for installing software, or merging small drives into a large drive. . for windows 7 or windows 10, the way to divide the hard drive is much easier. so what about managing hard drive partitions with win xp?
  • 4 methods to copy Linux hard drive4 methods to copy Linux hard drive
    always having a backup plan is a good thing, especially in case something goes wrong, such as a rare linux virus that will attack your computer or you become the target of attackers. island ransomware.
  • How to Destroy a Hard DriveHow to Destroy a Hard Drive
    do you have a useless hard drive that is no longer accessible but is full of sensitive data? are you sure you want that data to never see the light of day? once you have wiped your hard drive, you can consider the following options to further protect your data. the methods below will be very effective (but most of them sound quite complicated).
  • 4 reasons to encrypt Linux partition4 reasons to encrypt Linux partition
    encryption home directory and other data on linux is very simple. you can do that during the installation, or whenever using the distribution.