LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Want to recover data from Encrypted partition (created by EXT3 Ubuntu 10.04) (http://www.linuxquestions.org/questions/linux-newbie-8/want-to-recover-data-from-encrypted-partition-created-by-ext3-ubuntu-10-04-a-837380/)

shikhar623 10-11-2010 06:38 AM

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.

TB0ne 10-11-2010 08:05 AM

Quote:

Originally Posted by shikhar623 (Post 4123763)
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.

shikhar623 10-12-2010 12:12 PM

Quote:

Originally Posted by TB0ne (Post 4123854)
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.

TB0ne 10-12-2010 12:41 PM

Quote:

Originally Posted by shikhar623 (Post 4125143)
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??

shikhar623 10-12-2010 03:04 PM

Quote:

Originally Posted by TB0ne (Post 4125169)
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.

TB0ne 10-12-2010 03:08 PM

Quote:

Originally Posted by shikhar623 (Post 4125267)
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.

shikhar623 10-12-2010 03:37 PM

Quote:

Originally Posted by TB0ne (Post 4125274)
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)?

TB0ne 10-12-2010 08:26 PM

Quote:

Originally Posted by shikhar623 (Post 4125301)
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.

shikhar623 10-17-2010 01:15 PM

Quote:

Originally Posted by TB0ne (Post 4125476)
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..

TB0ne 10-17-2010 02:40 PM

Quote:

Originally Posted by shikhar623 (Post 4130470)
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.

eSelix 10-18-2010 05:38 PM

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.

shikhar623 10-19-2010 11:15 AM

Quote:

Originally Posted by eSelix (Post 4131820)
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.

eSelix 10-20-2010 03:53 AM

Skip this, go to "Troubleshooting" section. If you can't understand that, open terminal (from LiveCD) and write
Code:

fdisk -l
Show results here.

thorkelljarl 10-20-2010 12:56 PM

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

shikhar623 10-21-2010 05:49 AM

3 Attachment(s)
Quote:

Originally Posted by thorkelljarl (Post 4133797)
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.

Attachment 4929



I mounted the partition by first editing /etc/fstab file.
and inserting the line
Quote:

/dev/sda7 /media/sda7 ext4 defaults 0 0
Attachment 4930

now by entering command
sudo mount /dev/sda7
Attachment 4931

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


All times are GMT -5. The time now is 11:04 PM.