LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2014, 07:23 AM   #1
andrew262
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Ubuntu 12.04 hard drive was encrypted and the existing password cannot decrypt it...


Hello everybody!

I've just switched to Ubuntu 12.04 one year ago and moved all my photos, documents, etc to the 1TB main hard drive that has been encrypted during the installation process - not LVM but only the home folder.

I didn't record any key or passphrase when prompted...
However, it only required the password to login in the system and have access to the files.

It happened that after one month of holiday I've forgotten my password so I've googled and found a way to change it:

from the recovery mode, I've selected the root shell and at the prompt I entered:

mount -rw -o remount /
passwd <username>
init 2


Desperately I've tried lots of passwords.. and after a while I've found the initial password written down.

I've set this password back again and now the system doesn't want to start up Ubuntu - it only loops in between the login screen - it doesn't say "Invalid password" - and a black screen and then back to the login screen.

So the system cannot decrypt the hard drive.

Could it be that the "init 2" has deleted some sort of info?

Looks like something has been altered by these password changes...

What could be done to recover my data?
I know that Kali linux has an utility to decrypt WiFi by "listening" it. Could I use a similar program to find the passphrase?

Thanks a lot in advance.

Andrew

PS : thinking to clone the system hard drive on another drive so I will have a master copy just in case the attempts to decrypt it might alter some sectors. What software could I use to clone an Ubuntu hard drive? dd took 2 days to clone another 1TB drive..

Thanks again,

Andrew.
 
Old 05-15-2014, 02:19 PM   #2
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
I hope you have a unencrypted backup...
 
Old 05-15-2014, 02:23 PM   #3
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
sorry but if I found an encrypted drive or would have a look at the pc of a company, I would post the same. Thats life: buy a new drive and next time write the password anywhere.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 12.04 hard drive encrypted and the existing password cannot decrypt it... andrew262 Ubuntu 2 05-22-2014 08:24 AM
resetting root password of encrypted hard drive drink76cup Slackware 10 05-21-2013 08:32 PM
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 08:18 AM
Ubuntu 11.04 encrypted LVM password not working after user login password change prateekm21 Linux - Security 0 10-29-2011 02:20 PM


All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration