Following an issue with my QNAP device I've had to do a whole load of manual recovery of data and only getting at my encrypted data remains.
It seems that QNAP use eCryptFS to do this. I've managed to set-up the passphrase (with ecryptfs-add-passphrase --fnek
) and mounted the filesystem with:
mount /mnt/md3/.__eN__securedocs/ /mnt/md3/documents/Secure/ -t ecryptfs \
-o rw,ecryptfs_sig=b04b010ba4c32521,ecryptfs_fnek_sig=4f23065f483e5b1c,ecryptfs_unlink_sigs,relatime,ecryptfs_cipher=aes,ecryptfs_key_bytes=32
I can see my files but the permissions are in a state I've never seen before making them impossible to interact with, not even enough to copy:
[~] # ll /mnt/md3/documents/Secure/
/bin/ls: cannot access /mnt/md3/documents/Secure/battle.net.txt: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/steam.txt: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Work: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Passport Application Declaration.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Bills: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Car: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Receipts: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/.DS_Store: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/._.DS_Store: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/House: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/Banking: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/hmpo_reminder_2016_02_25.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/hmrc_tax_code_2017_2018.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/hmrc_tax_refund_2016_2017_full.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/hmrc_tax_refund_2016_2017.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/2017_11_26_disclosure_scotland_details.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/2017_11_29_disclosure_scotland_basic_disclosure.pdf: No such file or directory
/bin/ls: cannot access /mnt/md3/documents/Secure/passport_scan.pdf: No such file or directory
total 12K
drwxrwxrwx 10 admin administrators 4.0K Feb 13 10:21 ./
drwxrwxrwx 9 admin administrators 4.0K Feb 13 09:53 ../
-????????? ? ? ? ? ? .DS_Store
-????????? ? ? ? ? ? ._.DS_Store
drwxr-xr-x 2 admin administrators 4.0K Apr 9 2017 .digest/
-????????? ? ? ? ? ? 2017_11_26_disclosure_scotland_details.pdf
-????????? ? ? ? ? ? 2017_11_29_disclosure_scotland_basic_disclosure.pdf
d????????? ? ? ? ? ? Banking/
d????????? ? ? ? ? ? Bills/
d????????? ? ? ? ? ? Car/
d????????? ? ? ? ? ? House/
-????????? ? ? ? ? ? Passport Application Declaration.pdf
d????????? ? ? ? ? ? Receipts/
d????????? ? ? ? ? ? Work/
-????????? ? ? ? ? ? battle.net.txt
-????????? ? ? ? ? ? hmpo_reminder_2016_02_25.pdf
-????????? ? ? ? ? ? hmrc_tax_code_2017_2018.pdf
-????????? ? ? ? ? ? hmrc_tax_refund_2016_2017.pdf
-????????? ? ? ? ? ? hmrc_tax_refund_2016_2017_full.pdf
-????????? ? ? ? ? ? passport_scan.pdf
-????????? ? ? ? ? ? steam.txt
Other posts on the net say this is caused by the containing directory not having execute permission but as can be seen in the snippet above that this is not the cause here as the execute permission is present.
Any thoughts on how to overcome this last hurdle?
-o ro
instead ofrw
while mounting, does it yeild same result?ro
and it does indeed yield the same result. I also triedecryptfs_xattr
&ecryptfs_encrypted_view
but they don't seem to be valid options in the version/build of ecryptfs on the QNAP.