LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06:23 AM   #1
andrew262
LQ Newbie
 
Registered: May 2014
Posts: 10

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, 01:19 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
I hope you have a unencrypted backup...
 
Old 05-15-2014, 01:23 PM   #3
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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



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 07:24 AM
resetting root password of encrypted hard drive drink76cup Slackware 10 05-21-2013 07: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 07:18 AM
Ubuntu 11.04 encrypted LVM password not working after user login password change prateekm21 Linux - Security 0 10-29-2011 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:07 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
Open Source Consulting | Domain Registration