Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I upgrade from ubuntu 11.10 to ubuntu 12.04 LTS using ISO image, and after finishing upgrading I found out that /var/www folder was deleted. I know I was stupid to believe that it was upgrade and all my software and file will be there, I should've take a backup before upgrading. Is there any chance that I can have my projects back? Is there a special folder where ubuntu stores old files something similar to windows. Old as applied to windows (sorry for mentioning windows here :-P)

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Sometimes our last resource is to use some recovery tool like photorec or foremost.

Photorec is easier to use:

1) Install testdisk,

2) Open a terminal,

3) Run sudo photorec and answer the questions.


Foremost lets you choose which files you want to recover:

1) Install foremost,

2) Open a terminal,

3) The command is something like sudo foremost -d -vqT -o /media/sda3/foremost -t jpg,ole,zip -i /dev/sdb1

The output folder comes after the option -o and the input comes after -i.

The recovered files chose here are jpg, ole (= docx odt), zip.

share|improve this answer
    
thanx for your help! That was life saver.. –  samdev May 7 '12 at 16:04
    
I know how it feels to lost important files... Glad to help. –  desgua May 7 '12 at 16:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.