Can ecryptfs be resized safely?

Asked by plasma

I have a 500gb /home partition on a 1tb disk, and I want to resize the partition to fill the disk. The partition is ext4 with ecryptfs over the top. Can I safely resize this using ext resizing tools?

I know some encrypted filesystem setups cannot be resized, but can't find any authoritative source on if it can be done with ecryptfs, and I don't want to take the chance with my data unless I know.

Question information

Language:
English Edit question
Status:
Answered
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Markus (doits) said :
#1

yes, you can do. since ecryptfs is transparent to the filesystem the data is stored like it is in an unencrypted file, the encrypted data is just "translated" (unencrypted) on reading. its' not like it's some special type of saving the data to the disk, what is saved is just translated (encrypted) before writing it like any other file.

so there shouldn't be any problem. i've resized partitions with mixed data already an everything worked fine.

Can you help with this problem?

Provide an answer of your own, or ask plasma for more information if necessary.

To post a message you must log in.