Questions tagged [disk-encryption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
267 views

How to decrypt an old DVD encrypted with aespipe

I encrypted some DVDs a long time ago like this: exec mkisofs -r $basename | aespipe -e aes256 > $fullname Now I'm trying to decrypt them and I don't know how to do it anymore. The encryption ...
L Dupe's user avatar
  • 3
6 votes
1 answer
1k views

Is swapped memory encrypted on encrypted partitions?

If I installed Ubuntu on an encrypted ext4 partition, I normally have a /swapfile. Now I would expect that the swapped memory is also encrypted by default. However, the man-page of swapon says: The ...
Kolodez's user avatar
  • 191
0 votes
1 answer
96 views

Booting updated system with encrypted root partion fails

I've just updated my Debian system to Bullseye and using the 5.10.0-13-amd64 kernel can no longer access my encrypted root disc. I can still boot using previous version 5.4.0-0.bpo.2-amd64 kernel. The ...
nottledim's user avatar
1 vote
1 answer
354 views

How to change a key stored on a keydisk so it can decrypt a drive on OpenBSD?

Following the guide from https://www.openbsd.org/faq/faq14.html#softraidFDEkeydisk I know how to encrypt a drive and store a key on a usb stick. Suppose I've lost a copy of the key or suspect someone ...
zajer's user avatar
  • 213
0 votes
1 answer
9k views

Decrypting a full disk LUKS encryption manually from initramfs

I recently installed a fresh Ubuntu 20.04 image on my laptop while doing so i chose a full disk encrpytion using a password. (I think it is LUKS but I do not know how to verify this). For some reason ...
oswaldo70iq's user avatar
0 votes
0 answers
376 views

Please help me change my LUKS password

I have a terrible LUKS password and if that wasn't enough I also have to type it blindly with the wrong locale keyboard in a headless server. I want to change it to something else but I have a very ...
password is password's user avatar
0 votes
1 answer
62 views

Shrink partitionless filesystem

I have data on a disk that I want to encrypt by cloning the full filesystem of that disk (source) to a virtual block device (devicemapper/cryptsetup) based on an additional disk (target) of identical ...
user236012's user avatar
  • 2,235
6 votes
1 answer
4k views

Storage encryption on Linux desktop: LVM on LUKS or ZFS

I choose solution for storage encryption on Linux desktop. For years LVM on LUKS was a best option with superior performance and reliability. But ZFS on Linux actively develops new functions and now ...
bvasiliev's user avatar
  • 181
0 votes
1 answer
591 views

Change mount location of an encrypted volume?

I've followed this page to make a partition encrypted. When I format the created luks volume I do this: root@M17A:/home/mike# sudo mkfs.ext4 /dev/mapper/cryptpart mke2fs 1.45.5 (07-Jan-2020) Creating ...
mike rodent's user avatar
  • 1,132
14 votes
2 answers
2k views

Bit Rot within LUKS Encryption

How does bit rot affect a LUKS container and the filesystem inside? Suppose you have a filesystem that is well suited to deal with bit rot. Now put it inside a LUKS container. In case bit rot ...
Semnodime's user avatar
  • 347
1 vote
1 answer
429 views

cant create encrypted usb drive on raspberry pi 4

I have a raspberry pi 4. I have followed the instructions at https://linuxconfig.org/usb-stick-encryption-using-linux I have created and recreated the partitions, tried fat32, apt, and gpt. I started ...
DavesPlanet's user avatar
1 vote
1 answer
321 views

Data-loss safety of "cryptsetup luksOpen <root device>" between suspend and resume

I'm setting up suspend-to-disk and resume in an 2021.12.x Arch Linux install. My question is about safely (without data-loss) unlocking partitions when resuming. Here is my configuration. The ...
nishanthshanmugham's user avatar
3 votes
5 answers
4k views

Automatically mount fulldisk encrypted disk without entering passphrase?

Some time ago I installed a linux Pop-OS (based on Ubuntu 20.04). All good so far. It's my secondary play-around box. I installed it with fulldisk encryption which prompts for a passphrase to decrypt ...
unsafe_where_true's user avatar
0 votes
1 answer
2k views

Is it possible to enable dm-integrity on an existing LUKS/cryptsetup device?

I have a large LUKS2 device created with cryptsetup that holds an LVM2 with my root and other filesystems. The device is several TB in size and I don't have any others disks (or combinations of disks) ...
ATLief's user avatar
  • 308
0 votes
1 answer
944 views

How do I change the cryptsetup background?

When I encrypt my disk/OS, GNU/Linux shows a screen or image on boot where you can type in your password. How do I edit that image/change it? I am currently on Debian, which includes a black ...
Kitty Cat's user avatar
3 votes
0 answers
163 views

Ignoring the SED encrypted drives until after booting is completed [closed]

I have an Ubuntu system which boots from a small NVME disk using software encryption, TPM, etc. to mitigate against data loss in case of theft. The system is interfaced with customised PCIe hardware ...
fishter's user avatar
  • 131
1 vote
0 answers
191 views

Cannot access encrypted root partition after moving it

I had a Windows laptop with an additional Manjaro installed, on /dev/sda6 (somewhere wedged between the Windows 10 main partition and the recovery partiton). The Manjaro partition is using ext4, with ...
Zak's user avatar
  • 397
7 votes
2 answers
2k views

Mounting external hard drive using LUKS2 and FIDO2 Key

I have encrypted an external hard drive using LUKS2 on my machine running Fedora 34 using the cryptsetup command. When I now plug in the hard drive and enter the passphrase, the drive is unlocked ...
maweil's user avatar
  • 73
3 votes
3 answers
1k views

Is it possible to encrypt sensitive data on a headless embedded device in a secure way?

My company works with Raspberry Pis, where all data (OS, our software, etc) is stored on an SD card. We configure these devices (load our software on them), and send them out into the field (an ...
John's user avatar
  • 467
0 votes
0 answers
109 views

Can I use TPM-based transparent storage encryption, and have a recovery key?

We have 100ish laptops that run Windows 10 Enterprise with full on Bitlocker encryption, but we want to go away from Windows. I looked at multiple distros but none (and no open-source product) can ...
Nicolas Formichella's user avatar
2 votes
1 answer
594 views

Encrypted LUKS volume does not accept password on boot after system freeze

My Laptop froze and after a hard shutdown the boot process won’t accept my disk encryption password anymore. I have a ‘standard’ luks-inside-lvm setup, generated while installing fedora, split in a /...
luroc's user avatar
  • 31
0 votes
0 answers
90 views

Can a filesystem be encrypted in such a way that only specific processes can access it?

I can certainly mount a filesystem and all the files in it as 700, but I want something even tighter than that. Let's say someone manages to get into my system, somehow. They'd be able to read just ...
Sniggerfardimungus's user avatar
4 votes
2 answers
4k views

LUKS + TPM2 + PIN

I am currently aware of two recent methods to bind a LUKS encrypted root partition to a TPM2: systemd-cryptenroll and clevis. Both of them seem to release the encryption key after successfully ...
Simon's user avatar
  • 175
9 votes
2 answers
772 views

What is the epoch of LUKS that is shown when running luksDump?

When you run luksDump on a LUKS device, I get this: $ sudo cryptsetup luksDump /dev/sda1 LUKS header information Version: 2 Epoch: 3 Metadata area: 16384 [bytes] Keyslots area: ...
rugk's user avatar
  • 3,086
2 votes
2 answers
514 views

How can hide the encrypted partition in gui?

I can encrypt my /dev/sdb4 with cryptsetup this way sudo apt-get install cryptsetup sudo umount /dev/sdb4 sudo cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb4 sudo cryptsetup luksOpen /...
showkey's user avatar
  • 333
0 votes
1 answer
2k views

tang / clevis: automatic unlocking for luks device not triggered unless defined as _netdev

I've setup a server with luks devices (not used for root partition), they are listed in /etc/crypttab this way # <target name> <source device> <key file> <options> ...
Baptiste Mille-Mathias's user avatar
0 votes
2 answers
677 views

How do I get a self encrypting NVMe SSD partition to show up in /dev after unlocking it?

I've been spending some time working with self encrypting SSDs recently, and I am stuck on how to access drive contents after I've unlocked it. Normally with this drive, you would load a Preboot ...
C-Scholl20's user avatar
0 votes
1 answer
434 views

Only first slot password is valid during decryption of boot device while all others are valid while testing to open a device

I made a full encryption setup of Ubuntu 20.04 LTS according to this article. Due to it is highly recommended to add further passphrases to avoid loosing all data due to unavailability of the initial ...
Eduard Tibet's user avatar
20 votes
4 answers
20k views

Is disk encryption without requiring a password at boot possible?

Is it possible to encrypt the boot disk but not require users to input a password when the system boots? I have some headless boxes in remote locations for which I cannot guarantee they will be ...
sjaak's user avatar
  • 584
0 votes
1 answer
469 views

What is deleting my symlink to my USB luks partition upon cryptsetup luksOpen?

I wrote a new udev rule to create a symlink to a luks-encrypted partition on a USB flash drive when the drive is plugged in. The new udev rule I wrote does create the symlink to the USB drive's ...
bored2infinity's user avatar
2 votes
1 answer
8k views

cryptsetup luksFormat error "Device /dev/nvme0n1p3 is in use. Can not proceed with format operation."

I've followed this guideline to the point where I encrypt the target partition: cryptsetup -h sha256 -c aes-xts-plain64 -s 512 luksFormat /dev/nvme0n1p3 Then, the error appears, even though I'd ...
Andreas L.'s user avatar
0 votes
1 answer
3k views

mounting NTFS bitlocker in linux

I use ntfs-3g from tuxera in RHEL/CentOS 7.9 to mount my windows 10 disk. I have linux installed on a separate disk when I use linux. mount -t ntfs-3g /dev/sdb3 /mywin10 However I do this on ...
ron's user avatar
  • 6,637
2 votes
0 answers
391 views

How secure is it to suspend Linux (Fedora) while using whole disk encryption?

I have a full disk encryption on my Fedora 33 workstation. The purpose of encryption was protection from stealing the laptop physically. But how much more unsafe to just suspend the OS, not fully ...
apazent's user avatar
  • 21
0 votes
1 answer
261 views

Recovering deleted files on an encrypted drive

My drive is encrypted. I am running Fedora. I also have a Win 10 boot (not encrypted), if that's relevant) I accidentally ran rm -Rf * in the wrong folder - one in which I had a dozen or so small ...
mike65535's user avatar
  • 149
2 votes
1 answer
563 views

is it possible to upgrade a distro (debian) in an Encrypted LVM partition?

I installed Debian on a VM using Guided Partitioning with Encryption and using LVM and it created something like this: - /boot - encrypted partition -- LVM --- / --- /home --- swap After the ...
Amir's user avatar
  • 21
12 votes
1 answer
18k views

How to create a new encrypted LUKS-partition in GParted?

I want to create a new encrypted LUKS-partition in GParted. I've searched the UI and the help, but the only thing I can find is how to open and close an existing LUKS partition and how to to copy and ...
rugk's user avatar
  • 3,086
14 votes
1 answer
21k views

"cryptsetup: ERROR: Couldn't resolve device" combined with "cryptsetup: WARNING: target 'sda3_crypt' not found in /etc/crypttab"

After setting up hibernation on ubuntu 20.04 and modifying it that it works for encrypted swap partitions, I'm getting several issues: First, after rebooting from hibernation, I got "Gave up ...
Andreas L.'s user avatar
0 votes
2 answers
394 views

which partitions encrypt?

Time to encrypt. My setup: /boot [1 gb] LVM swap [4 gb] /root [30 gb] /usr [4 gb] /var [4 gb] /home [150 gb] /tmp & /var/tmp [2 gb] At first gonna encrypt swap & /home, but not sure if its ...
user406126's user avatar
0 votes
1 answer
309 views

Recover formated Linux Mint encrypted Drive

When installing Windows 10 I accidentally mixed the drives and deleted another one that had Linux Mint and was encrypted, since then I haven't done anything on drive to not overwrite anything. Is it ...
Ester's user avatar
  • 1
1 vote
1 answer
2k views

can't open bitlocker encrypted devices with a clear key with cryptsetup but it works with dislocker

I'm trying to open a bitlocker encryptet partition (/dev/nvme0n1p2) with cryptsetup, but it always returns the following error: # cryptsetup -v open --type bitlk /dev/nvme0n1p2 crypt0 Enter passphrase ...
MaxSilvester's user avatar
0 votes
0 answers
49 views

Is anything on this list a tool I can use the enable some kind of disk encryption?

I have a device running on some kind of obscure Linux distribution used for embedded devices. This device has a web gui where there is an option to enable encryption of the internal storage. However, ...
d-b's user avatar
  • 1,901
0 votes
1 answer
823 views

How do I interpret the output from lvs and the content in /dev/mapper?

I just asked this question and got an answer but it led to new questions. I am trying to follow this guide to create an encrypted volume on an embedded device with a limited version of Linux (e.g., it ...
d-b's user avatar
  • 1,901
2 votes
0 answers
71 views

Seagate/LaCie NasOS - enable volume encryption on non-supported device?

According to the guide at https://www.seagate.com/gb/en/support/kb/nas-os-4x-setting-up-volume-encryption-006007en/ there should be an option to encrypt a volume on devices running NAS OS 4.0. That ...
d-b's user avatar
  • 1,901
4 votes
1 answer
3k views

Arch Linux Setup with Encryption (LVM on LUKS)

I'd like to setup Arch Linux with encryption. I found the tutorial on the Arch wiki, and think that the second option (LVM on LUKS) is the best option for me. Here's the partitioning I'd like to use (...
Patrick Bucher's user avatar
4 votes
3 answers
2k views

Does *BSD have the ability to encrypt a system partition with full disk encryption?

Does FreeBSD, NetBSD, or OpenBSD have an encryption feature like Linux's dm-crypt? And will it work for a system partition?
user avatar
3 votes
4 answers
6k views

GRUB cannot find encrypted boot partition

Arch Linux Installation (On encrypted LVM) and attempt to encrypt boot partition. It's something that bothers me having a "Full disk encryption" with a non encrypted boot partition. This ...
Heitor Santana's user avatar
1 vote
1 answer
1k views

Enable Belgian keyboard for LUKS-LVM passphrase in OpenSUSE Leap 15.1

I have a new notebook from a German manufacturer with a Belgian keyboard and OpenSUSE Leap 15.1. The notebook was delivered with a temporary passphrase that you can change after completing the OS ...
Tsundoku's user avatar
  • 828
1 vote
1 answer
869 views

LUKS encrypted drive is missing. "cryptsetup: lvm is not available"

I have an internal SSD (NVMe) on which I've installed Ubuntu 18.04 with Full Encryption using LUKS. Recently, I replaced the motherboard of my laptop which caused the signature verification of the ...
Sparkzz's user avatar
  • 121
2 votes
0 answers
2k views

Trying to mount a Mac HFS+ encrypted disk

tl;dr I'm having trouble mounting a disk in Buster using hfsplus formatted under Mac OS Extended (Journaled, Encrypted) that was created under Catalina. This was asked on the Pi exchange but they '...
user avatar
2 votes
1 answer
265 views

Backup tool for pulling files out of encrypted disks?

Are there any backup/cloning/recovery tools that can pull files from LUKS-encrypted disks while dropping free blocks? Something that runs from within the unlocked system and hot-transfers the files, ...
david's user avatar
  • 329