1

Background

I have installed Pop!_OS distro on my local machine, and turned on the full-disk encryption layer, which means on each boot I'll have to enter the password in order to access it, lately, I'm facing some issues booting into the distro after entering the password to unlock the encrypted partition.

Now what I want to do is to remove the encryption layer completely, that is, decrypting the whole filesystem and keep the files as is.

Research

I have looked up on ways to remove this cryptsetup software and the suggestions were to unlock the drive using a live linux USB, copy the files, remove the encrypted layer, and copy back the files (and reconfigure some stuff that I didn't fully understand what they are), I can't go with this option as I don't have an external drive with enough storage to back up my data to it.

Others have suggested that cryptsetup does include an option to decrypt the drive, as mentioned in http://man7.org/linux/man-pages/man8/cryptsetup-reencrypt.8.html, I'm supposed to run

cryptsetup reencrypt /dev/partition --decrypt --header header_file.img

where the header file can be obtained using (which I also backed up)

cryptsetup luksHeaderBackup /dev/partition --header-backup-file header_file.img

Reference: Replace LUKS partition with ext4 partition with same contents

What I tried

I downloaded arch linux live CD, boot it up, ran the above commands and waited for the decryption process to finish, all went well, however when I reboot the machine I'm still getting a prompt to insert my password, and even if I enter it now it doesn't boot and I'm in a busybox/initramfs shell, so I'm stuck here and have no idea what I'm supposed to do next, I tried searching in google and stack exchange but couldn't find similar situation that could help.

So... how can I fix this?

4
  • I tried to mount the same partition after the decryption process but I'm getting "unknown file system crypt LUKS" or something like that, so no I can't mount it. About that backup, again, I'm out of space and can't backup the data right now as I mentioned above. Remember, I just want to get rid of the encrypted drive and keep the files, yes I may be taking some risks from doing so, and I'm fully aware of it. Commented Mar 29, 2020 at 17:35
  • Chen She suggests unix.stackexchange.com/questions/60971/… as a duplicate Commented Aug 25, 2020 at 23:03
  • 1
    This question is similar to: How to remove LUKS encryption?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Jan 22 at 18:07
  • This question is about fixing a seemingly failed attempt to remove encryption, not about how to remove the encryption; the answers to the suggested duplicate don’t address that (apart from Chen She’s answer which indicates that one scenario leads to unrecoverable loss of data, but it’s not clear that that’s the case here). Commented Jan 27 at 10:49

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.