LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-11-2010, 06:38 AM   #1
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Rep: Reputation: 0
Lightbulb Want to recover data from Encrypted partition (created by EXT3 Ubuntu 10.04)


Hello friends,

I am facing a serious problem.I installed UBUNTU 10.04 and encrypted it during installation.
I accidentally erased some of the necessary files from root folder.
now the the OS is NOT booting.luckily i still have the encryption key
i have some important documents in that drive (desktop folder).
please help me to get those files, as i need them badly.


thank you,
Shikhar


PS: I have tried to run Live Ubuntu it shows the Root, but it does not enter any of the folder.
 
Old 10-11-2010, 08:05 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,769

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by shikhar623 View Post
Hello friends,
I am facing a serious problem.I installed UBUNTU 10.04 and encrypted it during installation.
I accidentally erased some of the necessary files from root folder.
now the the OS is NOT booting.luckily i still have the encryption key i have some important documents in that drive (desktop folder).
please help me to get those files, as i need them badly.

PS: I have tried to run Live Ubuntu it shows the Root, but it does not enter any of the folder.
From Ubuntu forums.
https://help.ubuntu.com/8.04/install...d-volumes.html

After you get your files off, it would be a good idea to do a fresh load of the OS. Since you don't say what "necessary files" you erased, and since this was a fresh OS install, it's just easier to blow everything away and start fresh.
 
Old 10-12-2010, 12:12 PM   #3
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
From Ubuntu forums.
https://help.ubuntu.com/8.04/install...d-volumes.html

After you get your files off, it would be a good idea to do a fresh load of the OS. Since you don't say what "necessary files" you erased, and since this was a fresh OS install, it's just easier to blow everything away and start fresh.

can this be done after logging in as a live user?
thank you very much.
 
Old 10-12-2010, 12:41 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,769

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by shikhar623 View Post
can this be done after logging in as a live user?
thank you very much.
Did you bother to read the link in the first post, where it tells you how to manually mount encrypted partitions after booting??
 
Old 10-12-2010, 03:04 PM   #5
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Did you bother to read the link in the first post, where it tells you how to manually mount encrypted partitions after booting??
but i mentioned that my os is not booting.
 
Old 10-12-2010, 03:08 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,769

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by shikhar623 View Post
but i mentioned that my os is not booting.
Right. And I gave you a link that told you how to mount your partitions manually.

So now if you boot the system as a "live user" (as you've said you can), you can MANUALLY MOUNT THE ENCRYPTED PARTITIONS, if you follow the directions.
 
Old 10-12-2010, 03:37 PM   #7
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Right. And I gave you a link that told you how to mount your partitions manually.

So now if you boot the system as a "live user" (as you've said you can), you can MANUALLY MOUNT THE ENCRYPTED PARTITIONS, if you follow the directions.
you mean to say when I boot as live user it will ask me passphrase (as shown in the document)?
 
Old 10-12-2010, 08:26 PM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,769

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by shikhar623 View Post
you mean to say when I boot as live user it will ask me passphrase (as shown in the document)?
No, that is NOT what's shown in the document. READ IT. When you boot, you have to load a module manually, then you will be able to proceed. If you can't follow the instructions on that page, then reload your system from scratch, and recover your data from backups. It doesn't get much simpler.
 
Old 10-17-2010, 01:15 PM   #9
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
No, that is NOT what's shown in the document. READ IT. When you boot, you have to load a module manually, then you will be able to proceed. If you can't follow the instructions on that page, then reload your system from scratch, and recover your data from backups. It doesn't get much simpler.
i did not create any backup disks. please can u explain a few steps where to begin from.i am a newbie..
thanks a lot..
 
Old 10-17-2010, 02:40 PM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,769

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
Quote:
Originally Posted by shikhar623 View Post
i did not create any backup disks. please can u explain a few steps where to begin from.i am a newbie..
thanks a lot..
Sorry, I am not going to read the web link I provided to you line by line.

It doesn't get more step-by-step than that...there are, at most, 3 steps. Read them, follow them.
 
Old 10-18-2010, 05:38 PM   #11
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,221

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
If you have problems with instruction from link provided to you by TB0ne, write what you did already and where you stuck or what you don't understand.
 
Old 10-19-2010, 11:15 AM   #12
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eSelix View Post
If you have problems with instruction from link provided to you by TB0ne, write what you did already and where you stuck or what you don't understand.
i started the live CD and waited for the :

Quote:
Starting early crypto disks... part_crypt(starting)
Enter LUKS passphrase:
to appear , but started right away.
moreover, i am not able to find any module to be loaded manually as mentioned by TBOne.
 
Old 10-20-2010, 03:53 AM   #13
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,221

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Skip this, go to "Troubleshooting" section. If you can't understand that, open terminal (from LiveCD) and write
Code:
fdisk -l
Show results here.
 
Old 10-20-2010, 12:56 PM   #14
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,737

Rep: Reputation: 196Reputation: 196
Not at boot, after boot...

I believe that what TB0one is referring to is the procedure under "Troubleshooting" halfway down the page in the Ubuntu Forum post.

If you read carefully, it says that, after you have booted the live-cd and it is running, you then should be able to mount the encrypted files/volumes with the correct password using the command "mount".

Try to get the live-cd up and running, and after that try to open the files. If you have a problem, post back exactly what you tried and what the results were.

http://www.linuxquestions.org/linux/...Ask_a_Question

Last edited by thorkelljarl; 10-20-2010 at 01:17 PM.
 
Old 10-21-2010, 05:49 AM   #15
shikhar623
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Post

Quote:
Originally Posted by thorkelljarl View Post
Not at boot, after boot...

I believe that what TB0one is referring to is the procedure under "Troubleshooting" halfway down the page in the Ubuntu Forum post.

If you read carefully, it says that, after you have booted the live-cd and it is running, you then should be able to mount the encrypted files/volumes with the correct password using the command "mount".

Try to get the live-cd up and running, and after that try to open the files. If you have a problem, post back exactly what you tried and what the results were.

http://www.linuxquestions.org/linux/...Ask_a_Question
I am not able to mount it directly by:
Quote:
sudo mount /dev/sda7
it gives an error.

Screenshot-1.jpg



I mounted the partition by first editing /etc/fstab file.
and inserting the line
Quote:
/dev/sda7 /media/sda7 ext4 defaults 0 0
Screenshot-2.jpg

now by entering command
sudo mount /dev/sda7
Screenshot-3.jpg

but it doesnot ask for any passphrase!
i am able to view all the file and folders.
the problem is whien i open USERNAME folder inside the HOME folder.

it gives the error "The folder contents could not be displayed.you donot have permissions necessary to view contents of __"
Attachment 4932

Last edited by shikhar623; 10-21-2010 at 06:00 AM. Reason: forgot to insert screenshots
 
  


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
recover data from ext3 partition wolfgangsz Linux - General 1 12-30-2009 09:47 PM
Recover data on ext3 partition on Ubuntu IMNOboist Linux - Hardware 1 04-26-2009 08:48 AM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 02:20 AM
How to Recover Data from an ext3 partition harikrishnan81 Linux - Hardware 1 06-27-2008 05:54 AM
How to recover Data from LVM+ext3 partition ? neel.gurjar Linux - Server 3 06-20-2008 04:54 PM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
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