LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-30-2013, 06:41 AM   #1
PuffDaddy
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
URGENT - How to recover an encrypted partition? Need Help


Hi everyone:

I have encountered the following problem:

I have updated to Ubuntu 12.10 recently and - as I have no possibilty to burn a bootable CD/DVD - I did this by using UNetBootin over WinXP.
In order to mount the target-drive I installed UnetBootIn at the MBR of the second (external) HD.
This Disc did contain also an encrypted Partition with my Data-Backup in it.
When I finished installtion I found that both Ubuntu and WinXP show the Partition as not used, so I was
not able to mount it either.

My question now is how to recover the partition, I have learned that running dd over an encrypted partition is not a very smart thing to do.
Also I do not have enough disc-space to copy an image of the whole disc. I would have to copy that partition to another partition on the same disc. Is that possible anyway? I guess with the right offset it should work. Agree?

Any other solutions?

Is the small size shown as Luks partition, because this only is the Luks-Header? How can I acces that without mounting the disc?

I have had testdisc run over the relevant disc. This is an excerpt from the log-file:

__________________________________________________________________________________________________
Results
* HPFS - NTFS 0 1 1 4851 254 63 77947317 [Primary ]
NTFS, 39 GB / 37 GiB
P Linux 4852 0 1 18238 254 63 215062155
EXT4 Large file Sparse superblock Recover, 110 GB / 102 GiB
P Linux 18239 0 1 18239 254 63 16065
LUKS 1 (Data size unknown), 8225 KB / 8032 KiB

interface_write()
1 * HPFS - NTFS 0 1 1 4851 254 63 77947317 [Primary ]
2 P Linux 4852 0 1 18238 254 63 215062155
3 P Linux 18239 0 1 18239 254 63 16065
____________________________________________________________________________________________________

So it inidcates the Luks Partition, which obviously has the wrong size.
 
Old 01-30-2013, 10:00 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,254

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
I found this link: http://blog.miketoscano.com/?p=72

Maybe it will help. I don't have any first-hand experience with this.
 
Old 01-30-2013, 10:57 PM   #3
PuffDaddy
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your Help ...

But I found a way.

Currently my machine is performing a hexdump search for the LuksHeader and than I should be able to loop-mount the partition in question.
 
Old 01-31-2013, 08:03 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,254

Rep: Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559Reputation: 1559
Good. If it works, it might help someone else if you post what you did.
 
1 members found this post helpful.
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
recover encrypted filesystem aggrishabh Linux - Newbie 5 03-16-2011 04:39 AM
[SOLVED] Want to recover data from Encrypted partition (created by EXT3 Ubuntu 10.04) shikhar623 Linux - Newbie 34 10-21-2010 08:40 PM
Recover Accidentally formatted encrypted raid partition pazzport Linux - Desktop 1 10-15-2010 04:49 AM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 03:20 AM
Urgent. Need to recover a partition Neo-Leper Ubuntu 72 07-31-2007 01:30 AM


All times are GMT -5. The time now is 07:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration