Input/Output error when I read decrypted *.eCryptfs file
Posted: 22 Dec 2021, 18:49
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.
```
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.