
| This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| satnn |
Posted: Nov 18 2011, 08:50 PM
|
|
![]() SLF Junior ![]() ![]() Group: Members Posts: 28 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 |
|
| helikaon |
Posted: Nov 21 2011, 11:18 AM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 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, -------------------- |
|
| satnn |
Posted: Nov 22 2011, 04:05 PM
|
|
![]() SLF Junior ![]() ![]() Group: Members Posts: 28 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 |
|
| helikaon |
Posted: Nov 25 2011, 03:29 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 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 cheers, -------------------- |
|
| satnn |
Posted: Dec 2 2011, 06:34 AM
|
|||
![]() SLF Junior ![]() ![]() Group: Members Posts: 28 Member No.: 1028 Joined: 13-November 11 |
Hi Helikaon, sorry for the late reply. I " think " I got it. 1) unmount the encrypted partition's mapped device. 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. |
|||
| helikaon |
Posted: Dec 2 2011, 09:54 AM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 514 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 Thank for info! cheers, -------------------- |
|
![]() |
![]() ![]() ![]() |