I decided to de-crypt my home folder yesterday. I copied all of my home folder to an external hard drive with
sudo cp -rp /home/brad /media/brad/WD_4TB/brad.backup
I removed the .ecryptfs
directory on the external hard drive. I then rm -rf /home/brad
. This left what I thought was the empty /home/brad
directory, because it said it was being used. This is probably one place I made my mistake. I logged out and logged in as tempuser. Due to temporary insanity I used mv instead of copying.
sudo mv /media/tempuser/WD_4TB/brad.backup /home/brad
As you can guess this created a subdirectory in /home/brad and I next moved the files from the subdirectory back into /home/brad.
I was able to re-login as brad and all of my data was present where it was before (i thought now unencrypted). When looking at my files I got a message the cache needed updating and it required authentication. I initiated the cache update. Later I rebooted the machine. When I login as brad it returns to the login screen. When I look at the files from another account I see
when I run
ecryptfs-mount-private
root@brad-Main:/home/brad# ecryptfs-mount-private
ERROR: Encrypted private directory is not setup properly
when I run
ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
find: ‘/run/user/1001/gvfs’: Permission denied
when I run from the GUI
Access-Your-Private-Data.desktop
I get:
Sorry, but you cannot execute commands from a remote site. This is disabled due to security considerations.
when I run from the command line I get this...
my data seems to be encrypted in .Private
I have logged into user brad from the command line and the same commands give pretty much the same answer. I'm pretty sure startx doesn't work because my home directory files are missing.
If I can decrypt my data I will copy it back off to the external hard drive. At that point I can find a way to replace or fix my brad user account.
Any ideas are greatly appreciated.
mv ext/user.backup /home/user
. Do you really mean this or did you actually domv ext/user.backup /home/brad
? Everywhere else you usebrad
but here you referenceuser
. I'd suggest you go back through your question and provide real and complete paths for everything you did (for example, also,ext/home.user
is unlikely). – Chris Davies Sep 07 '19 at 17:56.ecryptfs
. Where did that come from. You did not introduce this character into your story. then there is an empty directory, because it is being used. How dose use make it empty. Then This is probably one place I made my mistake. What is (you can't use this to refer to something that you have not yet introduced. (Oh I am starting to make sense of it now, but it is taking a LOT of effort. It needs editing, It needs to be made clearer.) – ctrl-alt-delor Sep 07 '19 at 22:05/home/brad
a separate filesystem? Usually when you delete something you don't get refused, and certainly not with a message about a directory being in use. (df -h /home/brad
; what filesystem does it report?) – Chris Davies Sep 07 '19 at 23:26