Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.. – Sam Samson 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


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.