Recover /home/ after deleting /usr/lib
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I accidently deleted my /usr/lib folder. I had the genius idea of rebooting to see if it still boots.
Suprise, it doesn't.
My home directory is encrypted and I don't remember the encryption phrase.
However I can boot into a root terminal and access my files. From there I can even log into my account. So as far as I know you don't need the encryption pw if you are logged into the account that encrypted the files.
But for some Reason I still only see the "Access-Your-Private-Data.desktop" file in the /home/MYUSER/ . And also when I run the command: "ecryptfs-recover-private" I'm asked for a recovery passphrase.
All that, even though I'm logged in to my user that encryped the files. Once my UI was still working I never had to enter the recovery phrase.
Is there any way to get back my data without knowing the encryption key but just my User name?
boot encryption data-recovery ecryptfs
add a comment |Â
up vote
2
down vote
favorite
I accidently deleted my /usr/lib folder. I had the genius idea of rebooting to see if it still boots.
Suprise, it doesn't.
My home directory is encrypted and I don't remember the encryption phrase.
However I can boot into a root terminal and access my files. From there I can even log into my account. So as far as I know you don't need the encryption pw if you are logged into the account that encrypted the files.
But for some Reason I still only see the "Access-Your-Private-Data.desktop" file in the /home/MYUSER/ . And also when I run the command: "ecryptfs-recover-private" I'm asked for a recovery passphrase.
All that, even though I'm logged in to my user that encryped the files. Once my UI was still working I never had to enter the recovery phrase.
Is there any way to get back my data without knowing the encryption key but just my User name?
boot encryption data-recovery ecryptfs
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I accidently deleted my /usr/lib folder. I had the genius idea of rebooting to see if it still boots.
Suprise, it doesn't.
My home directory is encrypted and I don't remember the encryption phrase.
However I can boot into a root terminal and access my files. From there I can even log into my account. So as far as I know you don't need the encryption pw if you are logged into the account that encrypted the files.
But for some Reason I still only see the "Access-Your-Private-Data.desktop" file in the /home/MYUSER/ . And also when I run the command: "ecryptfs-recover-private" I'm asked for a recovery passphrase.
All that, even though I'm logged in to my user that encryped the files. Once my UI was still working I never had to enter the recovery phrase.
Is there any way to get back my data without knowing the encryption key but just my User name?
boot encryption data-recovery ecryptfs
I accidently deleted my /usr/lib folder. I had the genius idea of rebooting to see if it still boots.
Suprise, it doesn't.
My home directory is encrypted and I don't remember the encryption phrase.
However I can boot into a root terminal and access my files. From there I can even log into my account. So as far as I know you don't need the encryption pw if you are logged into the account that encrypted the files.
But for some Reason I still only see the "Access-Your-Private-Data.desktop" file in the /home/MYUSER/ . And also when I run the command: "ecryptfs-recover-private" I'm asked for a recovery passphrase.
All that, even though I'm logged in to my user that encryped the files. Once my UI was still working I never had to enter the recovery phrase.
Is there any way to get back my data without knowing the encryption key but just my User name?
boot encryption data-recovery ecryptfs
boot encryption data-recovery ecryptfs
asked Apr 13 at 8:40
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
Florian Würmseer
112
112
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
You should always backup your encryption passphrase and create a separate backup on an external hd ...
Anyway, I think you didn't delete the key itself.
You deleted the encfs libraries.
find /usr/lib/ | grep encfs
/usr/lib/libencfs.so.6
/usr/lib/libencfs.so.6.0.2
/usr/lib/libencfs.so
Your encryption key sould be at:
/home/$USER/.ecryptfs
or
/home/.ecryptfs/$USER/.ecryptfs
You need to boot from a live system, mount the home partition with your encrypted home.
For recovery use:
sudo ecryptfs-recover-private
It should find the encrypted home, you only need the login password. Make an external backup after recovery and reinstall your system.
add a comment |Â
up vote
0
down vote
accepted
Ok I found a way to recover it. Unfortunately most commands to restore the encryption key or installing packages didn't work from the machine as there were no packages at all. I also used another machine to try accessing the encryption key at /home/$USER/.ecryptfs but I got an error that the key was corrupted.
At the end I installed the same linux version on a new partition, mounted the old one and copied the whole /usr/lib folder of the new installation to the one I crashed.
After that I was able to boot into my system again and I could decrypt all my files with the user password.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You should always backup your encryption passphrase and create a separate backup on an external hd ...
Anyway, I think you didn't delete the key itself.
You deleted the encfs libraries.
find /usr/lib/ | grep encfs
/usr/lib/libencfs.so.6
/usr/lib/libencfs.so.6.0.2
/usr/lib/libencfs.so
Your encryption key sould be at:
/home/$USER/.ecryptfs
or
/home/.ecryptfs/$USER/.ecryptfs
You need to boot from a live system, mount the home partition with your encrypted home.
For recovery use:
sudo ecryptfs-recover-private
It should find the encrypted home, you only need the login password. Make an external backup after recovery and reinstall your system.
add a comment |Â
up vote
1
down vote
You should always backup your encryption passphrase and create a separate backup on an external hd ...
Anyway, I think you didn't delete the key itself.
You deleted the encfs libraries.
find /usr/lib/ | grep encfs
/usr/lib/libencfs.so.6
/usr/lib/libencfs.so.6.0.2
/usr/lib/libencfs.so
Your encryption key sould be at:
/home/$USER/.ecryptfs
or
/home/.ecryptfs/$USER/.ecryptfs
You need to boot from a live system, mount the home partition with your encrypted home.
For recovery use:
sudo ecryptfs-recover-private
It should find the encrypted home, you only need the login password. Make an external backup after recovery and reinstall your system.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
You should always backup your encryption passphrase and create a separate backup on an external hd ...
Anyway, I think you didn't delete the key itself.
You deleted the encfs libraries.
find /usr/lib/ | grep encfs
/usr/lib/libencfs.so.6
/usr/lib/libencfs.so.6.0.2
/usr/lib/libencfs.so
Your encryption key sould be at:
/home/$USER/.ecryptfs
or
/home/.ecryptfs/$USER/.ecryptfs
You need to boot from a live system, mount the home partition with your encrypted home.
For recovery use:
sudo ecryptfs-recover-private
It should find the encrypted home, you only need the login password. Make an external backup after recovery and reinstall your system.
You should always backup your encryption passphrase and create a separate backup on an external hd ...
Anyway, I think you didn't delete the key itself.
You deleted the encfs libraries.
find /usr/lib/ | grep encfs
/usr/lib/libencfs.so.6
/usr/lib/libencfs.so.6.0.2
/usr/lib/libencfs.so
Your encryption key sould be at:
/home/$USER/.ecryptfs
or
/home/.ecryptfs/$USER/.ecryptfs
You need to boot from a live system, mount the home partition with your encrypted home.
For recovery use:
sudo ecryptfs-recover-private
It should find the encrypted home, you only need the login password. Make an external backup after recovery and reinstall your system.
edited Apr 13 at 9:34
answered Apr 13 at 9:25
2IRN
32316
32316
add a comment |Â
add a comment |Â
up vote
0
down vote
accepted
Ok I found a way to recover it. Unfortunately most commands to restore the encryption key or installing packages didn't work from the machine as there were no packages at all. I also used another machine to try accessing the encryption key at /home/$USER/.ecryptfs but I got an error that the key was corrupted.
At the end I installed the same linux version on a new partition, mounted the old one and copied the whole /usr/lib folder of the new installation to the one I crashed.
After that I was able to boot into my system again and I could decrypt all my files with the user password.
add a comment |Â
up vote
0
down vote
accepted
Ok I found a way to recover it. Unfortunately most commands to restore the encryption key or installing packages didn't work from the machine as there were no packages at all. I also used another machine to try accessing the encryption key at /home/$USER/.ecryptfs but I got an error that the key was corrupted.
At the end I installed the same linux version on a new partition, mounted the old one and copied the whole /usr/lib folder of the new installation to the one I crashed.
After that I was able to boot into my system again and I could decrypt all my files with the user password.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Ok I found a way to recover it. Unfortunately most commands to restore the encryption key or installing packages didn't work from the machine as there were no packages at all. I also used another machine to try accessing the encryption key at /home/$USER/.ecryptfs but I got an error that the key was corrupted.
At the end I installed the same linux version on a new partition, mounted the old one and copied the whole /usr/lib folder of the new installation to the one I crashed.
After that I was able to boot into my system again and I could decrypt all my files with the user password.
Ok I found a way to recover it. Unfortunately most commands to restore the encryption key or installing packages didn't work from the machine as there were no packages at all. I also used another machine to try accessing the encryption key at /home/$USER/.ecryptfs but I got an error that the key was corrupted.
At the end I installed the same linux version on a new partition, mounted the old one and copied the whole /usr/lib folder of the new installation to the one I crashed.
After that I was able to boot into my system again and I could decrypt all my files with the user password.
answered Apr 16 at 8:02
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
Florian Würmseer
112
112
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024581%2frecover-home-after-deleting-usr-lib%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password