Page 1 of 1
Encrypt single partition? [Solved]
Posted: Thu Mar 12, 2020 3:06 pm
by rasat
How to encrypt a single partition?
I never thought doing this, didn't take interest in knowing. Also there are anything important which cannot be recovered from backup. But when traveling a lot, which I do. If notebook get lost, there are sensitive company data and other information one don't want falling into the wrong hands. Google search shows different option, what does MX recommend... simple and manageable via file manager (I am using Dolphin) ?
Re: Encrypt single partition?
Posted: Thu Mar 12, 2020 3:18 pm
by dolphin_oracle
you can use luks to encrypt a partition.
I have such a partition, and when I access it via the usual file manager options I'm prompted for the encryption password.
there are many luks tutorials on the interweb.
Re: Encrypt single partition?
Posted: Thu Mar 12, 2020 4:49 pm
by rasat
dolphin_oracle wrote: Thu Mar 12, 2020 3:18 pm
you can use luks to encrypt a partition.
I found cryptsetup installed in antiX, so this will do the luks encryption?
Re: Encrypt single partition?
Posted: Thu Mar 12, 2020 6:21 pm
by dolphin_oracle
That's the tool yes
Re: Encrypt single partition?
Posted: Fri Mar 13, 2020 7:49 am
by rasat
Re: Encrypt single partition?
Posted: Fri Mar 13, 2020 3:07 pm
by rasat
Link I posted didn't work as I thought
Found the solution here below...
Re: Encrypt single partition?
Posted: Fri Mar 13, 2020 5:45 pm
by rasat
These steps will do..... if there is a way to auto mount, would be good.
Code: Select all
sudo cryptsetup luksFormat /dev/sda8
sudo cryptsetup luksOpen /dev/sda8 encrypted
sudo mkfs.ext4 /dev/mapper/encrypted
sudo mkdir /luks
To view with any filemanager....
sudo cryptsetup luksOpen /dev/sda8 encrypted
sudo mount /dev/mapper/encrypted /luks
To add or edit via root access.
Re: Encrypt single partition? [Solved]
Posted: Sat Mar 14, 2020 9:21 am
by dolphin_oracle
you could set up an automount thru use of a keyfile, but unless you put the keyfile on an external device (like a usb stick) then your newly encrypted partition would not be secure.
Re: Encrypt single partition?
Posted: Fri Mar 27, 2020 8:15 am
by rasat
rasat wrote: Fri Mar 13, 2020 5:45 pm
To add or edit via root access.
This was solved by adding one directory with user access... same permit as the secured files. After login and mounting, works same as in /home. In other words, this is very nice and handy when working with sensitive data.