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 wanted to upgrade from 11.04 to 12.04. Shame on me, but I too late noticed that my powercord was out of machine and as a result of that in the upgrading process my laptop switched of. When turned on it shows black screen with icons, but no possibility to move mouse or do anything else. I made bootable USB stick with 12.04 version. It took a long time to split(?) HD and install it. It looks like itš working fine, but the thing is that I cant access my files and folders - every thing is just empty. So the question is

  • how can I get my files back
  • there are two Ubuntu 12.04 on my machine, but when I switched on there is a list of options to choose, but starts one version of them with no files. Is there a way to get my files back?
share|improve this question

If you have formatted the partition that contained your data, then you will have to use a recovery tool to get back the files. You can use testdisk (sudo apt-get install testdisk) which I have personally found to be quite effective.

Or else, if you have just mounted/booted-into the 12.04 that has the home folder that contains no data, you can simply locate the other partition with sudo fdisk -l , mount it and copy/get your data from there.

testdiskInstall testdisk

share|improve this answer
I have to try it on "empty" version of 12.04 I presume? – kristaps May 2 '12 at 16:50
Could you be a bit more specific? Try what on "empty" version? I'd recommend you download Gparted (sudo apt-get install gparted), open the application and take a screen shot of it and update your question with it. – harisibrahimkv May 2 '12 at 16:54
Shame on me again, but how can I add a screen shot here? – kristaps May 2 '12 at 20:24
Shame on me again, but how can I add a screen shot here? Gparded shows that I have two partitions - /dev/sda1 used space is 77Gb (there is data that I need) and /dev/sda2 wich splits in /dev/sda5 and /dev/sda6. sda2 is "extended", sda6 is "ext4" and mount point "/", sda5 is "linux-swap". All of them (sda2, sda5, sda) have "key symbol"..... So any advice for dummy :) – kristaps May 2 '12 at 20:34
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000437ba – kristaps May 2 '12 at 20:48

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.