Blog/20140304 Samsung Galaxy S2 data recovery
- Blog:20200228 Migrating from OSX to Ubuntu
- 20190328 TVET community report
- 20180803 If you like apps do not get the Nokia 2
- 20180721 Higher accuracy GPS on mobile phones
- 20180506 Backing up WhatsApp on the commandline for Android 7
- 20180401 Google Docs Helper bookmarklet
- 20180325 Digital Moves
- 20180310 Publishing only PDF and not your sources is like voluntary entropy
- 20180305 Which Mobile
- 20180221 Open textbooks for K12
- 20171220 MacBook power supply fixed with heat shrink
- 20171215 ssh tunnels
- 20171205 Help mapping Zambia and Ghana
- 20170927 Roaming in Europe
- 20170725 Saving mobile data
- 20170518 Hands on Missing Maps
- 20170425 Teachers Upfront University of Johannesburg
- 20170328 Can We Afford Free Textbooks
- 20170302 T-TEL TPD Programme
- 20161229 Cost of mobile internet
- 20161228 Using SSHelper to backup your internal Android phone memory
- 20160806 Upgrading Word to 2016
- 20160616 Evidence for digital learning
- 20150525 Equitable access to education
- 20150520 WEF and Open
- 20150429 Open Content encyclopaedia entry
- 20150405 OER4Schools ZIM files
- 20150331 PiJuice
- 20150206 OER Schools Conference video
- 20150129 TES goes Creative Commons
- 20150126 Where Its Needed Most
- 20150120 K12 OER calls
- 20150116 AIMS video 10 years on
- 20141218 Getting started with Android
- 20141201 Raspberry Pi GPIO labels
- 20141113 measuring below zero temperatures with DS18B20
- 20141105 OS X Lion 10.7 Internet Sharing with Raspberry Pi
- 20141028 OER Guidance for Schools
- 20141027 Google calendar world clock and timezone
- 20141020 Accessible PDFs
- 20141006 Annotation breaks searching in OS X Preview.app
- 20140923 OER Guidance for Schools and Share Alike
- 20140918 Tablets in Malawi and Ivory Coast
- 20140917 Roaming call charges in the EU
- 20140811 New Raspberry Pi model B Plus
- 20140811 Chesteron Community College Tablet Learning Scheme
- 20140805 new overnightrider ticket
- 20140625 Zambia update
- 20140608 Android battery life
- 20140601 Open data - open references ... further results
Some older entries are here.
1 Samsung Galaxy S2 data recovery
A week ago my Samsung Galaxy S2 didn't start up any more, see here. I had just been to Mobile Learning Week at UNESCO, and wanted the pictures back from internal storage, hence reluctant to just wipe completely. (Side note: Some phones don't have a micro sd card slot, but really, I think it's essential. At least it allows you to back certain stuff up regularly, and then if your phone doesn't like you any more, you can pull the sd card and at least have something. But while the SGS2 has an sd card slot, I hadn't set the camera to go to internal memory - one to remember for the future.)
So how do I get access to the internal storage when the phone doesn't boot? It took me a full week of experimenting. Not ideal.
Here are some things that didn't work:
- Flashing a new ROM / recovery. I don't have access to a PC with Windows to use Odin. Heimdall didn't work on OS X 10.7, and on Linux (on Raspberry Pi) the phone wasn't recognised. (Though see here for how I got this to work.)
- I was able to boot into stock recovery, which sees external storage, and thus could run CWM v4. CWM v4 (as zip, see clockworkmod recovery site) allowed me to back up the /data partition. However, this goes onto the internal storage, which I cannot access. So app data saved, but still no access to internal storage. CWM v4 couldn't see the external sd card at all.
- I could also do the same to get CWM v5 (as zip, touch version, again from cwm site), but similar story. However, at least it sees the external storage. While CWM sees the external storage, it does seem to mount it with root permissions, so it's not possible to use adb to pull the data. Also v5 seemed to confuse internal and external storage.
I finally tried CWM 6.0.4.5 (again as zip, not from cwm site). The zip failed verification, so I couldn't install it. However, in v5, there's an option to ignore that, so I was able to run v6. It seems to run fine so far, and the storage is mounted correctly, and I can now pull with adb! So - solution:
2 Solution
Preparation:
- Download CWM v5 (from cwm site), and put onto external sd card (as zip).
- Download CWM v6.0.4.5 (as zip, e.g. search on google [1]), and put onto external sd card (as zip).
Then:
- Boot into stock recovery (Home + volume up + power).
- From stock recovery, install the previously downloaded CWM v5 from sd card (as zip) (Choose "apply update from external storage", navigate to zip file, and select.)
- When booted into CWM v5, disable signature verification, and then install the previously downloaded CWM v6 from sd card, i.e.
- Go to "install zip from sdcard"
- "toggle signature verification" (Signature Check: disabled)
- "choose zip from internal sdcard" (actually accesses the external sd card)
- In CWM v6, you can then mount internal storage (as /storage/sdcard0), and then use adb to pull /storage/sdcard0. (adb will not preserve time stamps, but you can do a "ls -laRe" if you want particular file stamps.
- You could also back up the system (including /data) to internal sd card.
So in this way I was able to retrieve the contents of the internal sd card. That's all good.
3 What next?
But - the story isn't quite over. I had expected that (once my data was recovered) I could just do a factory reset to sort out the original problem (i.e. the phone not booting). However, turns out that this was not the case. I did a factory reset in v6, and then again tried in v5 (in case there was a problem with the formatting), but the phone still will not boot properly.
However, at least it did turn out that (as far as I can tell), the factory reset did not wipe the internal sd card storage. It does of course wipe the data (/data), but seems to not have wiped the internal sd card (/storage/sdcard0).
For a solution, see here: Flashing Samsung Galaxy S2 i9100 with Heimdall 1.3.2 in OS X 10.7.5. However, when you have done the factory reset, and you are booting again, make sure that you wait - it will take time for all the apps to be re-installed, and the initial device setup screen to appear. However, if that doesn't work, see the next blogpost.
UPDATE: Apparently I am not the only person whose Samsung phone lost data: http://www.dailymail.co.uk/news/article-2580084/Samsung-spokesman-LeBron-James-tweets-phone-crashed.html However, LeBron James seems to have recovered his data much more quickly than I have. Maybe he had help?!
2014-03-04 | Leave a comment | Back to blog Share on Twitter Share on Facebook