Encrypted HDD to Decrypted SDD

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
markxtra
Level 1
Level 1
Posts: 2
Joined: Fri Dec 15, 2017 11:51 am

Encrypted HDD to Decrypted SDD

Post by markxtra »

Hi All

I'm trying to move from a 500GB hard drive with 120GB space free to a 256GB SSD Drive.
The whole hard drive is encrypted which I believe doubles the used space on the HDD.....so I only have 190GB of data, of which 50GB can be deleted.

I think I need to:

Decrypt the HDD
Clone to SSD
Encrypt just the folders I need on the SSD

Is this right and if so how do I go about it.

Thanks
Mark
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mute Ant

Re: Encrypted HDD to Decrypted SDD

Post by Mute Ant »

"which I believe" Err no. Encryption causes the plain-text data to be scrambled before it is stored on the drive, but there is still a 1:1 mapping between the original and scrambled versions...

(plain-block-X) * (block-X-key) -----> (scrambled-block-X)

(scrambled-block-X) / (block-X-key) -----> (plain-block-X)

If you have 380GB of encrypted data you need 380GB of space to make a plain-text copy.

"how do I go about it"

I would use a third store as a temporary holding area for everything, a 1TB removable drive, with the bonus of having a backup before you do something horribly permanent to the original.

Editing data so you only keep the important stuff is prone to error. I have learned not to fiddle with data until there's a verified backup available.
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Encrypted HDD to Decrypted SDD

Post by Pierre »

as always, the query is - "why the encryption"? - is it really, necessary?
- as it just adds another layer of potential issues. . .
you should decrypt the Data, any way & before you copy anything over to the SSD.

in theory, you could just copy the whole encrypted Data over to the SSD,
but there is an element of risk, attached to that.

do back-up, the whole setup, just in case & before you do anything, else.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
Locked

Return to “Beginner Questions”