Home > linux > Recovering microSD under Ubuntu (12.04), should work on other Linuxes

Recovering microSD under Ubuntu (12.04), should work on other Linuxes

My Android phone somehow managed to kill the inserted 32 GB microSD card, which is really annoying as I have most of my applications on this card and – which is much worse – photos taken at several occasions.

When I connected the card (via an SD-microSD adapter), Ubuntu told me “mount: /dev/sdb1: can’t read superblock” (obviously trying to mount it as ext).  Forcing Linux to mount the card as FAT didn’t work either, so I googled somewhat and found a tool called TestDisk!

TestDisk allows to recover lost data and this is what I did to get most of my content back

  1. sudo apt-get install testdisk
  2. sudo testdisk
  3. [Create] create a new log file
  4. Select /dev/sdb (“…FlashMedia”) and Proceed
  5. Select [Intel] Intel/PC partition
  6. (Backup, just in case sth happens)  [Advanced] -> [Image Creation] -> Select target Folder
  7. [Analyze]->[Quick Search]
  8. [Enter to continue]
  9. [Deeper Search]
  10. [P] (list files)
  11. [A] (select all files, which includes folders)
  12. [C] Copy files
  13. select target folder
  14. [C] (copy to selected folder)

And thats it 🙂 Whee!!!!

Categories: linux Tags: , , , ,
  1. robin
    March 5th, 2013 at 01:43 | #1

    I made good experience with the recoverjpeg tool, especially if it’s a SD card from a camera.

  2. Marcelo Paris
    March 28th, 2014 at 05:57 | #2

    Gracias Robin! con recoverjpeg recupere todas las fotos de la SD de mi camara fotografica!!!

  3. June 27th, 2014 at 19:47 | #3

    The recoverjpeg tool that user robin above suggested just saved every image I had deleted on my SD card since 2010. Very happy to get those back. Also worth noting that it picks up everything the SD card has held as a jpg, all the tumbnail type data that was found in apps that I had moved to the SD card were returned as well, so overall it pulled about 10x as much data as was actually needed – which is easily filtered away by sorting the small file size jpg’s out.

  4. Niktia
    April 1st, 2015 at 17:00 | #4

    Great thanks!
    Had a damaged sd from my go pro with my snowboarding videos.
    Got them all recovered!
    Very cool!

  5. omayib
    June 28th, 2015 at 17:12 | #5

    wow awesome! thanks for this tutorial. my data was coming back after follow this tutorial…

  1. No trackbacks yet.