scientificlinuxforum.org QR code
Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> decrypted file system
satnn
 Posted: Nov 18 2011, 08:50 PM
Quote Post


SLF Junior
**

Group: Members
Posts: 30
Member No.: 1028
Joined: 13-November 11









Hi all,
I have encrypted a partition as follow:
cryptsetup luksFormat /dev/sda4

How do I decrypt /dev/sda4?

Thanks


PM
^
helikaon
 Posted: Nov 21 2011, 11:18 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Hi there,
basically, firstly, you need to 'open the encryption':

cryptsetup luksOpen /dev/sdx (you have to suplly the password to open it)

then mount the partition

mount /dev/sdx /some/mount/point

some time ago i written quite explanatory artictle on notebook forums:

luks encryptions

cheers,


--------------------
PMEmail Poster
^
satnn
 Posted: Nov 22 2011, 04:05 PM
Quote Post


SLF Junior
**

Group: Members
Posts: 30
Member No.: 1028
Joined: 13-November 11









Hi helikaon,
thanks, but I already knew about the "cryptsetup luksOpen". I thought luksOpen is just creating a "backdoor" to the encrypted partition (/dev/sda4). Let's say I umount and luksClose /dev/mapper/xyz, and then run:

blkid

it still indicated /dev/sda4 is encrypted. So my question is if there is a way to remove the encryption + password of the /dev/sda4 completely?

Thanks
PM
^
helikaon
 Posted: Nov 25 2011, 03:29 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Hi there,
atm, i really dont know. I never been doing the removing encryption on encrypted partition, so all my suggestion would be based on only hearsay, or googling.

If you find anything, let us here know, im interested too smile.gif

cheers,


--------------------
PMEmail Poster
^
satnn
 Posted: Dec 2 2011, 06:34 AM
Quote Post


SLF Junior
**

Group: Members
Posts: 30
Member No.: 1028
Joined: 13-November 11









QUOTE (helikaon @ Nov 25 2011, 10:29 AM)
Hi there,
atm, i really dont know. I never been doing the removing encryption on encrypted partition, so all my suggestion would be based on only hearsay, or googling.

If you find anything, let us here know, im interested too  smile.gif

cheers,


Hi Helikaon,
sorry for the late reply. I " think " I got it.

1) unmount the encrypted partition's mapped device. blink.gif
I am referring to this- earlier command: cryptsetup luksOpen /dev/sda123 crypt_XYZ
If crypt_XYZ is mounted, then unmount it.

2) then close the backdoor:
cryptsetup luksClose /dev/mapper/crypt_XYZ

3) final step, which I am sure you're familiar with but we just didn't think it would be this simple:
mkfs.ext4 /dev/sda123
partition sda123 should be back to file system ext4 and ready to be mounted.
*Note: That final step removes luks-crypt. It also REMOVES every file that is in it. So backup.
smile.gif
PM
^
helikaon
 Posted: Dec 2 2011, 09:54 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11










Hi,
haha, let's say, this is offensive way how to solve this, i thought, there would be possibility to 'just remove the encryption' and keep data.
Well, if it's not, this is probably fastest way smile.gif
Thank for info!

cheers,


--------------------
PMEmail Poster
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll