Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 installed Ubuntu on my laptop over the windows, I had 2 partitions on one hard disk. It seems like old partition is gone with all my files (photos, music, etc.). How can I recover old files. Files weren't on same partition as windows.

share|improve this question
If you deleted your files by accident or something, take a look here on how you can recover them :… – NikTh Oct 25 '12 at 19:18

It is unlikely that your other partition is actually deleted, and much more likely that it is simply not mounted in Ubuntu. Unlike Windows, where partitions are given a drive letter automatically in almost all cases, Linux typically leaves them unmounted/disconnected.

Find the missing partition by running:

sudo fdisk -l

This will list all of the partitions on the machine, you just need to find the one that is not mounted. To see a list of already mounted partitions, run:

sudo mount

Now all you need to do is mount the drive to a folder, and the contents will be available there. Replace /dev/sda2 with the device of your partition. It will be the one which shows up in fdisk -l, but not in mount.

sudo mkdir /mnt/spare_partition
sudo mount /dev/sda2 /mnt/spare_partition

If the files really are deleted, there is a way to get at least some of them back, but we can discuss that after you rule out the obvious problem first!

share|improve this answer

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.