[Q] Restore internal sd data after unlocking bootloader - AT&T HTC One (M8)

Hi 2 all,
Forgot to make nandroid and unlocked bootloader on my wife's m8. And 27GB of photos gone. I think she'll kill me after she wake up in the morning. Is there any way to get data back?

Unlocking the bootloader is not supposed to do that. It will wipe user data (/data partition) but I believe the internal storage ("virtual SD") should have been untouched. So you shouldn't blame yourself too much. And a nandroid would not have helped you as not only is that partition not backed up with a nandroid, but the default location for a nandroid is the internal SD, so it would have been lost, anyway.
That said, I try to backup any important personal data (even on partitions that are not supposed to be impacted) to my computer whenever doing something major like flashing a ROM or unlocking the bootloader. Only reason I've started doing that is a similar bug on the One X (EVITA) where actions that are not supposed to wipe the internal memory, occasionally did so (which is what I suspect happened to you).
I think your only hope is to use data recovery programs (Recova is a free one). But I've had mixed results doing so (and have seen similar reports here) when trying to recovery photos and other data that were "accidentally" deleted or recovered. Its certainly worth a try, and also keep in mind that you should do so ASAP as the more you use your phone, the higher the chance that those memory sectors where the photos were saved will be overwritten by other data.
Also, is there anything left on the internal memory at all when you browse with a file manager? Sometimes, corrupted data will be saved to a folder named LOST.DIR and there have times where folks have often found many of their photos simply moved there.

Found very helpful post
http://forum.xda-developers.com/galaxy-nexus/general/guide-internal-memory-data-recovery-yes-t1994705.
For M8 it works pretty much the same. I was able to get userdata partition from the phone, but because of I converted to GPE I lost everything. So I'm 99% sure that it will work right after unlock bootloader and factory reset.

exbarboss said:
Found very helpful post
http://forum.xda-developers.com/galaxy-nexus/general/guide-internal-memory-data-recovery-yes-t1994705.
Click to expand...
Click to collapse
Ah, that's true. I hadn't thought about the fact that the memory mounts as MTP now. The times I did the data recovery was on the old bulk storage mode on my One X (before it was switched to MTP). All I had to do was connect my phone to my PC and run Recuva.
Mind you, even mounted properly, data recovery programs will not always be able to recover all data. It was pretty hit or miss for me (and from other reports I've seen). But the linked method is also clever in that it makes a copy of the corrupted partition to your computer, so you sidestep the issue that those sectors may be overwritten as the phone is being used. Give you more times to try various data recovery apps, etc.

redpoint73 said:
Ah, that's true. I hadn't thought about the fact that the memory mounts as MTP now. The times I did the data recovery was on the old bulk storage mode on my One X (before it was switched to MTP). All I had to do was connect my phone to my PC and run Recuva.
Mind you, even mounted properly, data recovery programs will not always be able to recover all data. It was pretty hit or miss for me (and from other reports I've seen). But the linked method is also clever in that it makes a copy of the corrupted partition to your computer, so you sidestep the issue that those sectors may be overwritten as the phone is being used. Give you more times to try various data recovery apps, etc.
Click to expand...
Click to collapse
Yeah I tried Recuva, WinHex, R-Studio - nothing helped. I looked at low level data with WinHex and most sectors were zeroed...

Tennor1 said:
Just try for a sd card data recovery
Click to expand...
Click to collapse
Maybe I'm missing something, but I don't understand what is being referred to here. Can you clarify or give more detail?

Hello Guys, i have been attempting to flash the phone , but it doesnt go in flashmode ( i know it's volume down when plugging to usb ), but nothing happen with flashtool, any idea ?
Maybe driver, but it looks like the phone still in fastboot, and it s reconized by flashtool with the build number and kernel . i don t know how to go to this flashboot mode.
thank you

Related

[Q] Before selling phone, what is the most secure way to wipe / erase information?

Are there any deep erasing apps out there that can zero the bytes or perform dod style erase methods? I'm trying to erase the internal memory (not the microsd) of the phone. How can I make sure its not recoverable when selling it?
Its just that it contains work related information that I wouldn't want someone trying to recover if they happen to be that type of person.
Ι guess, reflashing it should do the job, and then just mess around with install-uninstall applications, a lot!
The only way to recover data from phone memory if deleted is with taking phone apart and taking flash memory out(this includes melting down pins). And than put this flash on some other circut board.
Just so that you know how hard is it, enough for most people.
For exstremist what the poster before me said, writing and deleting many times. You could do that on rootet phone with some root explorer program. If you didn use custom ROMs you only need to take care of /data partition, if you did flash a bit DATA partition can move maybe(no sure) so you should do same for /system. Flashing ROM writes to some of system partition, the remainder fill it us with some trash files and to again
I heard 20 times is what makes it 100% FBI secure. But 2 times should make it 99.999% secure anyway
Edit: That 20 number is for hard drives with same special machines. I am not sure how it is with flash, maybe one rewrite makes it totaly unrecoverable already. If you only worried for softwere recovery once is enough.
I will also give an example. Suppose you have some critical info on your SD card. If you delete that info, you can't rest assured that your critical info has been deleted. Because system just shows it has been deleted. Until something else fills up the same sectors /space on your card, it wont be permanently deleted. But now, if you fill up your whole SD card with, say, videos and songs, then your critical info is really gone. Though simpler solution to do this is to format the SD card.
Same applies for internal memory. You must flash a new rom and fill the data space fully with other apps. Do it without activating/logging in your gmail. Once it's done, you can reflash it with wiping everything from recovery and give/sell to someone as a fresh phone.
In other words fill ur SD with trash,.
I haven't rooted the phone yet. If I do root just to flash a rom and fill space, will I be able to flash back the original rom and make it so that it was never rooted in the first place?
i wud "dd" all my phone's partition in recovery mode(manually mount them use df in normal mode to know wats mounted) and then flash stock rom using that kdz thing...
PS ..u cud also "dd" your sdcard using
dd if=/dev/random of=/dev/sdb bs=5M count=1000
(/dev/sdb is assumed as your sdcard drive )
5M*1000=5000MB wiped multiply acc to your card's capacity
beastfromtheeast said:
I haven't rooted the phone yet. If I do root just to flash a rom and fill space, will I be able to flash back the original rom and make it so that it was never rooted in the first place?
Click to expand...
Click to collapse
Yes flashing some original ROM with KDZ (there is a thread with instructions somewhere) makes it like it was from the factory.
You r not rooted. In this case:
1.factory reset.
2.install futile apps till your internal memory is full.
3.factory reset again and you are done.
is there any way to install apps without adding a google account and d/l from the market?
yes
download them to your pc
move them to your sd card and install them from there
it would b flashing the new rom alover, of flashing the lg original firmware.
to flash another rom your phone must be rooted and have custom recovery
thanks guys, I flashed the stock rom with kdz then installed futile apps via adb until I couldn't install anymore (adb error when phone hit the 20mb mark). One hard reset later, I think its good to go.
shredroid
i have another gmail address that i use for signing up to websites that might start sending me junk. after ive reset the phone i just add that account to the phone and can get access to the market that way without messing up my other main google account settings... then use Shredroid to give the internal memory a good wipin'.
i never tried the other way but using shredroid sounds way quicker that installing apps until youve filled the internal memory, especially if you have a phone with a lot of it
ategtre sky
sarfaraz1989 said:
i wud "dd" all my phone's partition in recovery mode(manually mount them use df in normal mode to know wats mounted) and then flash stock rom using that kdz thing...
PS ..u cud also "dd" your sdcard using
dd if=/dev/random of=/dev/sdb bs=5M count=1000
(/dev/sdb is assumed as your sdcard drive )
5M*1000=5000MB wiped multiply acc to your card's capacity
Click to expand...
Click to collapse
is there actually a dd binary in recovery mode / android at all?

accidentaly formatted internal storage.. How to recover ??

Hello ,so i have samsung galaxy s2 with miui jb rom..
i connected an pendrive through usb otg cable but when mounted it shows it is corrupted and need to be formatted.
so i confirmed this operation and it starts to format..
after format
VOILLA MY INTERNAL SD CARD GOT FORMATTED INSTEAD OF USB ONE WHICH I HAVE MOUNTED THROUGH USB OTG CABLE..
I have no backup and i have lost all my data on internal sd storage... photos, music,videos, other data such as text documents , pdf documents , tar files of recovery etc.
its very very sad for me as i have collection of all memories as photos and videos...
I'm very tensed..
please help me to recover back all my data ..
after format there is no data stored on internal storage means no over write of any data so i have that my data can be backuped up..
i've tried couple of softwares to backup my data but one of softwares called "photorec" is able to recover only 2.5GB and also in random named folders with random data...
everything is finished..
please... it will be great of you to solve my this problem..
is there any way to UNDO this operation?? I mean can we UNFORMATthe internal storage ???
really need your advices and solutions
thanks..
Yes solution is simple.
Go back in time.
Backup data like any sane person would have done.
If your files were that important why didnt you do simple things like make backups to your PC or even just via dropbox app that automatically uploads photo's via wifi?
Try a partition recovery software.
If you cant fix I have no sympathy since its easy to make backups of needed data. No excuse really.
TheATHEiST said:
Yes solution is simple.
Go back in time.
Backup data like any sane person would have done.
If your files were that important why didnt you do simple things like make backups to your PC or even just via dropbox app that automatically uploads photo's via wifi?
Try a partition recovery software.
If you cant fix I have no sympathy since its easy to make backups of needed data. No excuse really.
Click to expand...
Click to collapse
So GENIUS..
You should be MILLIONAIRE...
GO home friend... you can't really help..
i need expert advice...
akhil17kr said:
So GENIUS..
You should be MILLIONAIRE...
GO home friend... you can't really help..
i need expert advice...
Click to expand...
Click to collapse
I am a millionaire
I am home
I did give you expert advice. I am an expert in backing up my data in case of device problem or if I somehow decide to format my card.
As I said earlier try a partition recovery software.
Expert Advice:
Follow XDA rule #1 and use search. We have many topics about users formatting cards and then needing to recover data. This is a non-device specific topic so search whole site or even google.
Well you coud try Testdisk and Photorec
the site is cgsecurity
Or option 2 try recuva with deep scan enabled, also the option to scan for lost or damaged files should be turned on.
vilisyserr said:
Well you coud try Testdisk and Photorec
the site is cgsecurity
Or option 2 try recuva with deep scan enabled, also the option to scan for lost or damaged files should be turned on.
Click to expand...
Click to collapse
- Connect your phone trough USB cable and activate mass storage mode
- Depending on what files are lost (probably photos and videos), look for format recover software (Like recovery my files)
- Use it on mounted SD card
PS:
If you have used some part of your internal sd card after formatting, you probably lost some files forever, if you haven't yet, DON'T USE IT BEFORE RECOVERY !!
TheATHEiST said:
I am a millionaire
I am home
I did give you expert advice. I am an expert in backing up my data in case of device problem or if I somehow decide to format my card.
As I said earlier try a partition recovery software.
Expert Advice:
Follow XDA rule #1 and use search. We have many topics about users formatting cards and then needing to recover data. This is a non-device specific topic so search whole site or even google.
Click to expand...
Click to collapse
Give some app suggestions is fine. Once we have those, we know the key terms to search for.
I've tried cg-security apps, they're made for Windows/Linux/BSD etc, but won't install on android.
I tried aidfile installed on Windows but it won't detect the phone internal storage either.
I have all my photos.
I lost a database document that is 760mb. Most backupsoftware (Skydrive, Asus Webstorage, DropBox etc) won't upload it.
I sent the phone for warranty and they formatted my phone, and lost that document. I just need that back. It is in internal storage, there is no sd card on this android.
Try Recuva but don't get your hopes up. Not likely to work. If they've formatted the phone, it's gone. Android isn't like Windoze where 'files aren't really deleted'.
Edit - Also, beware of some (all ?) of the 'data recovery' apps on Google Play. Many (certainly the several I've tried) of the non-paid versions will go through their process of checking, and tell you that your file can be recovered, but you need to get the paid version of the app. You pay for the app, and then find they tell you the file recovers OK (funny about that, right ?) but is 'corrupted' (which is basically bull****, the file can't be recovered at all, but you paid for the app so they have to give you something, right ?) & useless. This scenario is highly likely in the case of a file like the one you're talking about if you do get suckered in by those apps.
Hans Brown said:
You can't undo the formatted, but the data was not really gone, you still can use some data recovery tool to recover your photos.
You can try this guide about how to recover photos from Samsung Galaxy S II.
I recommend you backup your photos with Google Photos, it has 15GB free storage, I think it's enough for your 1 year's photos.
Click to expand...
Click to collapse
Wow, the guy posted 4 and half years ago, that's too late, don't you think? :silly:
Anyway, Late is better than never

Accidently factory reset through bootloader, internal sdcard empty

Hi. My phone was bootlooping this morning, I decided to wipe data (I had a backup of /data) reflash, and carry on. However, I accidently confused the factory reset option in TWRP with the one in the bootloader, and clicked the bootloader one. This wiped my internal sd card. I tried to use things like Undelete from play, but it only works on the external sd. I've been trying to follow this guide (http://forum.xda-developers.com/showthread.php?t=1994705) to regain my data, but I don't know what the name of the /data partition is (for example, for the galnex, it's mmcblk0p12). Does anyone know A. what the name of the partition is for the evo, or B. an easier/different way to recover my files? Thanks in advance for any assitance.
/data is mmcblk0p37 according to steelh over in this thread
roids87 said:
/data is mmcblk0p37 according to steelh over in this thread
Click to expand...
Click to collapse
awesome. however, is /data the same as internal sd card?
Va1ha1a said:
awesome. however, is /data the same as internal sd card?
Click to expand...
Click to collapse
I am not sure. You could try and use the Mount Point Swapper and see if undelete will work then. I'm just tossing out some ideas. I've never actually tried to recover anything.
I'm gonna necrobump that first thread you linked to and see if anyone knows. I'll also try mount point swapper.
Edit: I've tried everything. mount point swapper caused bootloops, the guide i mentioned earlier created .raw files with nothing inside, etc. The upside is that I didn't have my roms, photos, or music on the internal. I can't remember. What else does android normally store there?
Va1ha1a said:
I can't remember. What else does android normally store there?
Click to expand...
Click to collapse
Usually not much, random app data, downloads, photos, music(depending on settings). You may get a warning in Titanium Backup(if you use it) about a different android id, you can restore your old id, or keep your new one. I have yet to see any issues. I've restored old id's and kept new is's without issues.
roids87 said:
Usually not much, random app data, downloads, photos, music(depending on settings). You may get a warning in Titanium Backup(if you use it) about a different android id, you can restore your old id, or keep your new one. I have yet to see any issues. I've restored old id's and kept new is's without issues.
Click to expand...
Click to collapse
Thanks, I don't think I had anything of massive importance on there (at least not that I can remember)

root question

do i need to save my rooted stock rom backup on an xternal sd card before i install a new rom like viper that wipes everything or is it safe to save on internal storage
Slightly tricky question. Flashing a ROM is not supposed to wipe internal memory. For the large part, it isn't going to happen.
That being said, I tend to back up lots of things on my computer before flashing any ROMs (alternately you can use cloud services) due to the fact that on my old phone (One X EVITA) where was some bug which randomly wiped/corrupted files on the internal storage. It didn't happen all the time, and it seemed to happen less and less as time went on (updates to TWRP?). But it happened to me at least a couple times. Enough to make me back up anything not replaceable (photos in particular), as well as "emergency" copies of nandroids and Titanium data to my computer before almost any flash.
Also, I know that some builds of TWRP even wiped the removable SD. So even that is not guaranteed to be untouched when flashing. Don't know if Philz CWM has reports of any such issues.
Moral of the story: Nandroids should be fine on the internal storage. But never a bad idea to back up to other locations (even a computer) "just in case". Same goes with any other important personal data (photos, etc.). If it will upset you to lose it, back it up.
How can I back it up to my computer or to cloud storage
Jacobz1996 said:
How can I back it up to my computer or to cloud storage
Click to expand...
Click to collapse
To backup any files on your phone to computer, simply connect the phone to your computer by USB. Navigate to the desired folder or files, and simply copy and paste to your computer.
Cloud solution, it depends on what solution you pick (Google Drive, Dropbox, Mega, too many others to even list). For instance, Dropbox will prompt you when you first start the phone app if you want to backup your photos. You can then also backup any other phone files to your Dropbox.
redpoint73 said:
Slightly tricky question. Flashing a ROM is not supposed to wipe internal memory. For the large part, it isn't going to happen.
That being said, I tend to back up lots of things on my computer before flashing any ROMs (alternately you can use cloud services) due to the fact that on my old phone (One X EVITA) where was some bug which randomly wiped/corrupted files on the internal storage. It didn't happen all the time, and it seemed to happen less and less as time went on (updates to TWRP?). But it happened to me at least a couple times. Enough to make me back up anything not replaceable (photos in particular), as well as "emergency" copies of nandroids and Titanium data to my computer before almost any flash.
Also, I know that some builds of TWRP even wiped the removable SD. So even that is not guaranteed to be untouched when flashing. Don't know if Philz CWM has reports of any such issues.
Moral of the story: Nandroids should be fine on the internal storage. But never a bad idea to back up to other locations (even a computer) "just in case". Same goes with any other important personal data (photos, etc.). If it will upset you to lose it, back it up.
Click to expand...
Click to collapse
There seems to be a fix for the SD Card beeing wiped in this thread in post #498
.

Lock Screen Gone!

I don't know what happened, but I no longer have a working lock screen on my Verizon (T-Mobile network) LG G3.
All of a sudden, there's just no lockscreen whatsoever. I tried disabling the lock screen and then turning it back on using swipe, patter and PIN, but there's just no lock screen at all. If I hit the power button or let the device time out and go to screen off, when I wake the phone via double tap or hitting the power button, I'm just taken to my home screen. I've disabled trusted places and on body detection. That really shouldn't matter though as I should still get the swipe screen if those are active.
Even when I initially boot, it goes right to my desktop, where before, I had to enter my PIN first.
Completely stumped here.
Any ideas? I really don't want to factory reset.
Probably related. My screen is not timing out. I have screen timeout to 15 seconds, I'm not plugged in and the screen never goes off. Smart screen is off as well.
Any ideas now?
I have no ideas that don't involve first trying wiping Cache and Dalvik/ART, and then wiping those two plus Data if the first doesn't fix it, and then flashing the 10B TOT to start fresh if neither of those fix it. Of course before wiping Data I'd do an LG Backup to backup my user apps and user data, and before flashing the TOT, I'd move everything I want to keep from the internal storage. I'd also have a TWRP backup of the EFS which includes IMEI, and remove the SIM and MicroSD card before flashing the TOT or any kind of flashing when possible, as I believe flashing has occasionally wiped one of those items. Rare for the SIM and for the MicroSD card, but it happened to me with the MicroSD card.
Any time there's ever any kind of problem, the first thing to try should always be the wipes.
roirraW "edor" ehT said:
I have no ideas that don't involve first trying wiping Cache and Dalvik/ART, and then wiping those two plus Data if the first doesn't fix it, and then flashing the 10B TOT to start fresh if neither of those fix it. Of course before wiping Data I'd do an LG Backup to backup my user apps and user data, and before flashing the TOT, I'd move everything I want to keep from the internal storage. I'd also have a TWRP backup of the EFS which includes IMEI, and remove the SIM and MicroSD card before flashing the TOT or any kind of flashing when possible, as I believe flashing has occasionally wiped one of those items. Rare for the SIM and for the MicroSD card, but it happened to me with the MicroSD card.
Click to expand...
Click to collapse
The screen on issue wasn't really an issue, that was TiBu keeping the screen on.
I already did a factotry reset that fixed it. What a pain though, I'm still not full recovered.
I did wipe cache and dalvik before wiping data. Wiping data fixed it.
I've never had any luck with LG Backup, so I didn't do that, but used TiBu to recover, which didn't go so well.
I guess it's lucky I didn't have to go the whole TOT process. I've done that before and that's not fun either.
lexluthor said:
The screen on issue wasn't really an issue, that was TiBu keeping the screen on.
I already did a factotry reset that fixed it. What a pain though, I'm still not full recovered.
I did wipe cache and dalvik before wiping data. Wiping data fixed it.
I've never had any luck with LG Backup, so I didn't do that, but used TiBu to recover, which didn't go so well.
I guess it's lucky I didn't have to go the whole TOT process. I've done that before and that's not fun either.
Click to expand...
Click to collapse
Glad you solved it. Hopefully nothing you restore re-creates the problem.
I sure wish I knew why LG Backup doesn't work for some people? When you tried it did you try saving to internal storage, or just MicroSD card? I always save to internal since it's much faster than any MicroSD card, and then move it later if need be.
I'm used to TOTing. It's no big deal to me any more.
roirraW "edor" ehT said:
Glad you solved it. Hopefully nothing you restore re-creates the problem.
I sure wish I knew why LG Backup doesn't work for some people? When you tried it did you try saving to internal storage, or just MicroSD card? I always save to internal since it's much faster than any MicroSD card, and then move it later if need be.
Click to expand...
Click to collapse
I don't recall, haven't done it in a while. It didn't get me anywhere close to back to a full restore when I've tried it. I probably did it to SD card, but don't remember for sure.
lexluthor said:
I don't recall, haven't done it in a while. It didn't get me anywhere close to back to a full restore when I've tried it. I probably did it to SD card, but don't remember for sure.
Click to expand...
Click to collapse
If you have your MicroSD card formatted FAT32 (which is common, and what Android, TWRP and probably Windows would normally format it as), then I *think* that maybe LG Backup complains because it puts everything in one huge compressed file and FAT32 can't handle files over 4 GB in size, as it was made in 1977. ExFAT (you can format as such in Windows with the card connected directly to the PC/via adapter, etc) has no restriction. NTFS doesn't either but I wouldn't use that on a MicroSD card.
Another option is to back up half your apps the first time (A-K?) and then L-Z the next time.
Warning that some Android builds/kernels might not have ExFAT support built in, but I'm very sure stock LG does.
Of course if you don't have a huge amount of apps this probably wouldn't be the trouble.
roirraW "edor" ehT said:
If you have your MicroSD card formatted FAT32 (which is common, and what Android, TWRP and probably Windows would normally format it as), then I *think* that maybe LG Backup complains because it puts everything in one huge compressed file and FAT32 can't handle files over 4 GB in size, as it was made in 1977. ExFAT (you can format as such in Windows with the card connected directly to the PC/via adapter, etc) has no restriction. NTFS doesn't either but I wouldn't use that on a MicroSD card.
Another option is to back up half your apps the first time (A-K?) and then L-Z the next time.
Warning that some Android builds/kernels might not have ExFAT support built in, but I'm very sure stock LG does.
Of course if you don't have a huge amount of apps this probably wouldn't be the trouble.
Click to expand...
Click to collapse
I have a ton of apps. I will reformat to ExFAT when I get a chance and try to run LG backup again. I won't be chancing a restore though, but at least I'll see how the backup completes.
I'm actually currently formated as exFat. I can't say if I ever tried an LG backup formatted that way, but it's possible. I'll try to run one once I've fully recovered here.
Had a lot of recovery issues with TiBu. Got parsing error even when restoring via indirect method with many apps. I had to restore from a feb TiBu backup, then update all the apps in the play store, then I'm going to restore data with the new TiBu backup. Big PITA. New apps will still show as not restored from the new TiBu backup, so I can just d/l those from the play store and then restore data on this. Good excuse to not bother restoring apps I never use and shortening my total number of apps.
Aigh! Yeah, I've been having more and more trouble with TB which is why I just use LG Backup where possible, although the specific troubles you're having with TB don't sound the same.
MicroSD card in general just isn't as reliable as internal storage. Just plain copying files that have already been written to internal storage to MicroSD card is less taxing than having software create the files on the card to begin with. I've been in the habit of doing disk intensive stuff to internal storage starting with the Galaxy S2.
Hopefully your current restore journey is ultimately successful.
FWIW, I had to wipe data again today due to another issue I was having. I did an LG backup to my external SD that was about 6GB, wiped and did the restore. It looks like it did a pretty good job of getting me back to where I was. The text database is a bit screwed up. All of the group chats are showing at the top of Yaata for some reason. I have an sms backup & restore backup from last night, so I'll wipe the messaging database and restore that. Lot of settings I'll need to clean up, but apps look to be in good shape. Not sure why LG Backup totally didn't work for me previously.
Hope the data wipe fixed this problem (SIM card keeps getting disconnected), but I bet it doesn't and that'll be the end of my G3.

Categories

Resources