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) ?
Encrypt single partition? [Solved]
Encrypt single partition? [Solved]
Last edited by rasat on Fri Mar 13, 2020 5:54 pm, edited 1 time in total.
- dolphin_oracle
- Developer
- Posts: 22861
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Encrypt single partition?
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.
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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: Encrypt single partition?
I found cryptsetup installed in antiX, so this will do the luks encryption?
- dolphin_oracle
- Developer
- Posts: 22861
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Encrypt single partition?
That's the tool yes
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: Encrypt single partition?
Thanks... for the records, this link does the job:
https://www.techrepublic.com/article/ho ... -in-linux/
https://www.techrepublic.com/article/ho ... -in-linux/
Re: Encrypt single partition?
Link I posted didn't work as I thought
Found the solution here below...
Last edited by rasat on Fri Mar 13, 2020 5:53 pm, edited 3 times in total.
Re: Encrypt single partition?
These steps will do..... if there is a way to auto mount, would be good.
To view with any filemanager....
sudo cryptsetup luksOpen /dev/sda8 encrypted
sudo mount /dev/mapper/encrypted /luks
To add or edit via root access.
Code: Select all
sudo cryptsetup luksFormat /dev/sda8
sudo cryptsetup luksOpen /dev/sda8 encrypted
sudo mkfs.ext4 /dev/mapper/encrypted
sudo mkdir /luks
sudo cryptsetup luksOpen /dev/sda8 encrypted
sudo mount /dev/mapper/encrypted /luks
To add or edit via root access.
- dolphin_oracle
- Developer
- Posts: 22861
- Joined: Sun Dec 16, 2007 12:17 pm
Re: Encrypt single partition? [Solved]
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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/
Re: Encrypt single partition?
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.