Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Background

I have a 16GB Samsung micro SD card that I use on my Samsung Galaxy tablet. It has 116 videos and tons of pics and songs. One day I recorded a concert and when my tablet's battery became low I switched the SD card to my Galaxy S3 phone. It recorded fine and was able to upload some of the videos on a website. One morning, I was taking a picture from my Galaxy S3 phone which still has the 16gb card, when I checked the gallery, it has nothing on it but the new pic I took.

I then realized that I've lost all my files for some reason, devastated but was able to recover the files via a FREE download of Wondershare Data Recovery software (which I actually ended up paying) and saved it on my PC. I was able to recover the pics, the songs I can open but only plays for 4 seconds. When I tried opening the video files, some are fine and was able to play them on my computer some won't let me. They are 3gp file extensions. I've tried playing them on a 3gp media player but they still don't play.

My question is:

Why am I able to play some of them fine and not the others? I've tried inserting the videos on my tablet and on my s3 phone it says:

CANNOT PLAY VIDEO. UNSUPPORTED FILE FORMAT

I am devastated and would really like to recover them. Is there any other solution?

share|improve this question
3  
Other than the fact that this card at one point was in an Android device, I don't see how this question relates to Android. Voted to close. –  Chahk Aug 1 '12 at 15:24
    
The ones that doesn't play fine are the ones that the software couldn't recover properly. –  roxan Aug 2 '12 at 4:05
    
add comment

closed as off topic by Chahk, roxan, Zuul, Izzy, ce4 Aug 14 '12 at 22:55

Questions on Android Enthusiasts Stack Exchange are expected to relate to Android within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

File systems are organized in "blocks" of data, where each block has the same size. Internal storage (as well as some others which use NAND-Flash) on Android uses a block size of 128kB.

Especially video files are a bit larger, so they do not fit in a single "block" on the file system. In order to store them, they are split and spread about multiple blocks. This usually is no problem, as there is some "index" holding all the information of where those blocks are and what file they belong to. However: On a crash, some of that information might be lost -- while other parts have been preserved.

So your recovery process was 100% able to restore those files where complete information was available. I don't know what you used, but many of those recovery tools additionally scan all "unused blocks" (where the "index" says there's nothing stored currently) for data fragments, and this way discovers some additional files. But sometimes it's not possible to get all their pieces together, or do so in the correct order. Because of this, some of your videos might play for a few seconds (blocks), until the "lost information" part is reached.

I hope my explanation was understandable; I went for easy understanding instead of precise technologic terms.

As to your question on how to restore the missing parts: I'm afraid they are lost. But if you update your question and add information on what you used to restore your files, plus how you did it, we can look into it. One word straight ahead: I hope you didn't write anything on that SD card since -- or chances for restauration are really low.

First thing to make sure on data loss: AVOID WRITING TO THAT MEDIUM UNTIL YOU HAVE ALL YOUR DATA RESTORED (or all hope to restore them is lost)!!

First steps on data loss

  1. STOP WRITING to the device you lost data from (in your case, the SD card). Lost data might still be left more-or-less intact somewhere on the medium, but the corresponding blocks are marked "unused" -- so each new write lowers your chances on a successful recovery
  2. Make sure all subsequent access to the device is read-only. While you might not have access to a Write Blocker, some SD-cards offer a corresponding switch (use it!), or some card readers might provide something like that. With a Linux/Unix system you are well off also, as it is quite easy to explitly mount devices read-only.
  3. Best idea is to make a block-level copy of the medium. On Linux/Unix, this can be done using the dd command. This copy can be done to an equivalent medium (which in your case would be another 16GB SD card, best of the same brand), but also to a file -- which then can be mounted (again, best read-only) as a Loopback device. All susequent steps should use the so-created disk image: This ensures, even if some action fails and destroys something here, your original medium remains untouched, providing an additional safety layer.
  4. Having created a disk image, optionally make a copy of that again (easy if it is a file -- otherwise just repeat the first procedure with the image as source). This provides another level of safety, as, having broken something on the 2nd image, you needn't touch the original, but can start again from the first copy.
  5. Having created and mounted the image, as described in the previous steps, you now can try with all available recovery tools to get as much data restored as possible. If one tool doesn't restore enough, try the next, and so on. If the image breaks, see previous step.
  6. Having all data (or as much as was possible) restored, there's not much more you can do. You might decide to keep one of the images and/or the original. If not all data was restored successfully, you might even decide to send the original plus the image to some forensics specialist or data recovery service.
  7. On the seventh day He rested from his work ;)

Useful tools

There are a lot of tools available to help you recover your data. I cannot mention them all here -- but at least a few should be named. Some are addressing the end user, coming with a nice GUI -- others are rather intended for the forensics specialist, coming with a lot of command-line switches, and again others might provide both.

  • Wondershare Data Recovery was already mentioned being used by the OP. I cannot say much about it, as I never used it: It is available for Windows and MacOS (and I run Linux).
  • TestDisk would be my tool of choice. It is available for DOS, Windows, MacOS, Linux, and more -- and I have successfully used it a couple of times.
  • PhotoRec comes from the same developers as TestDisk, and is available for a broad range of operating systems
  • Both tools are mentioned on LiveHacker's article Five Best Free Data Recovery Tools -- and as it says "five", there are obviously 3 more available.

I don't want to list up things I don't know -- but from here, everybody should find his/her way. Hopefully. So good luck -- or better: good results!

share|improve this answer
    
I recovered it with a FREE Wondershare Data Recovery download.. :( –  Mary Aug 1 '12 at 15:48
    
OK, that is the kind of software I assumed -- so above stated applies (scanning "unused blocks" for missing data, etc.). Still the main question is: Did you safeguard your SD card -- or did you write to it again? e.g. moved the restored stuff back to the card, or put it into some device and stored other data on it? –  Izzy Aug 1 '12 at 15:48
    
The only time it was written again was when I realized I lost all the files. I couldn't move the files back to the card due to it's large size.. So the card remained the same as it was, I believe. –  Mary Aug 1 '12 at 15:52
    
So first: Don't touch it before things are clear -- there might still be hope! Then: can you please explain what was written that "only time"? Did you initiate something -- or do you mean the "disappearing" of your data here? Next steps might get a bit technical, so I'm not sure this Q&A is the best place for it. We could try the chat -- but I'm not sure if that is available to you (not enough "reputation" -- you need 20 points, but have just one)... –  Izzy Aug 1 '12 at 16:02
    
lol... I am new here and don't know what reputation means... How do I even get a better reputation? I would appreciate a chat though :( –  Mary Aug 1 '12 at 17:01
show 6 more comments

protected by eldarerathis Aug 9 '12 at 15:05

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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