Page 1 of 1

Input/Output error when I read decrypted *.eCryptfs file

Posted: 22 Dec 2021, 18:49
by dhfbv
I used photorec and got three .eCryptfs file.

```
mkdir crypted decrypted
mv *.eCryptfs crypted
ecryptfs-recover-private crypted
```
Showed:
INFO: Success! Private data mounted at [/tmp/ecryptfs.aNvzhSaQ].

```
cd /tmp/ecryptfs.aNvzhSaQ
cat xxxxx.eCryptfs
```
Showed:
Input/Output error.

```python
f = open('xxxxx.eCryptfs', 'rb')
```
Showed:
OSError: [Errno 5] Input/output error: '/tmp/ecryptfs.aNvzhSaQ/xxxxx.eCryptfs'

I tried to use `mount -t ecryptfs` command.
```
sudo mount -t ecryptfs -o ecryptfs_passthrough=n,key=passphrase,ecryptfs_enable_filename_crypto=n,ecryptfs_key_bytes=16,ecryptfs_cipher=aes crypted decrypted
```
Showed:
Not adding sig to user sig cache file; continuing with mount.
Mounted eCryptfs

There's also `Input/Output error` for all the .eCryptfs files as it is in `tmp` folder.

How to fix that? Any hints appreciated.

Re: Input/Output error when I read decrypted *.eCryptfs file

Posted: 22 Dec 2021, 21:04
by recuperation
The recovery failed, your files are partly broken.

Re: Input/Output error when I read decrypted *.eCryptfs file

Posted: 24 Dec 2021, 05:37
by dhfbv
recuperation wrote: 22 Dec 2021, 21:04 The recovery failed, your files are partly broken.
Thanks. That's the right answer.