Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,106 Members 41,799 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Nexus 5 Data recovery?

Tip us?
 
Ashutosh1313
Old
#1  
Ashutosh1313's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 154
Join Date: Aug 2011
Location: Mumbai
Default [Q] Nexus 5 Data recovery?

I rooted my nexus 5 and installed new ROM. Can i recover my data back which was on stock ROM??

PS: I have formatted and installed like 7-8 ROMS after stock ROM so there have been 8 wipes on NEXUS 5!
Phone: Nexus 5 Panda

Phone: HTC One [Retired]
 
Primokorn
Old
#2  
Primokorn's Avatar
Recognized Contributor
Thanks Meter 2,209
Posts: 4,082
Join Date: Nov 2012
Location: Annecy

 
DONATE TO ME
Quote:
Originally Posted by Ashutosh1313 View Post
I rooted my nexus 5 and installed new ROM. Can i recover my data back which was on stock ROM??

PS: I have formatted and installed like 7-8 ROMS after stock ROM so there have been 8 wipes on NEXUS 5!
No if you didn't backup your data before wiping and flashing a new rom.
Nexus 5 | Ask any questionDark XDAGetting started on XDA

LGE Nexus 5 | TWRP Recovery | OptiPurity | Uber!!!


Quote:
Searching can take less time than waiting for an answer
 
rootSU
Old
#3  
rootSU's Avatar
Senior Member
Thanks Meter 11,394
Posts: 22,424
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Ashutosh1313 View Post
I rooted my nexus 5 and installed new ROM. Can i recover my data back which was on stock ROM??

PS: I have formatted and installed like 7-8 ROMS after stock ROM so there have been 8 wipes on NEXUS 5!
Good luck. It is minutely possible by taking an image of the data partition, converting it using simg2img and mounting it as raw on Linux, then running data recovery tools... But its a very involved process and if you have written over the blocks already, then the data is gone... So quick answer, not now, no. If you have an old nandroid, possibly
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
Ashutosh1313
Old
#4  
Ashutosh1313's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 154
Join Date: Aug 2011
Location: Mumbai
Quote:
Originally Posted by rootSU View Post
Good luck. It is minutely possible by taking an image of the data partition, converting it using simg2img and mounting it as raw on Linux, then running data recovery tools... But its a very involved process and if you have written over the blocks already, then the data is gone... So quick answer, not now, no. If you have an old nandroid, possibly
Thank you very much for replying sir! I was actually reading your thread.
And yes I have written over the new data every time i booted into new rom. So to be precise I have formatted and written over the data more than 7-8 times.
SO please tell me how are the chances of me getting the file from Stock rom back?
PS: The files were 3 video files each around 400 mb & I dont have nand backup

Waiting for your reply sir
Phone: Nexus 5 Panda

Phone: HTC One [Retired]
 
rootSU
Old
#5  
rootSU's Avatar
Senior Member
Thanks Meter 11,394
Posts: 22,424
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Ashutosh1313 View Post
Thank you very much for replying sir! I was actually reading your thread.
And yes I have written over the new data every time i booted into new rom. So to be precise I have formatted and written over the data more than 7-8 times.
SO please tell me how are the chances of me getting the file from Stock rom back?
PS: The files were 3 video files each around 400 mb

Waiting for your reply sir
Formatting isn't a problem. It doesn't delete the data.

Your memory is broken into blocks (Now This isn't accurate, but lets pretend it is...) so it starts at block 1 and ends at block 100...

You save a video to sdcard and its the first data stored there, it goes to block 1.. The next data goes to 2 etc.

When you format, the entires in the file system are removed, but the data remains, until you overwrite data. Since the file system is empty, after a wipe, the data starts from block 1 again, overwritting the previous data in block one.

Once this happens, its gone forever. So your chance is small....

The only chance you can save data is for example, before wipe, used 8GB memory. After wipe only used 4 GB data.. The last blocks of your previous data set (4 GB) MAY be recoverable.

See attached for visual representation
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	11
Size:	11.6 KB
ID:	2903741  
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
Ashutosh1313
Old
#6  
Ashutosh1313's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 154
Join Date: Aug 2011
Location: Mumbai
Quote:
Originally Posted by rootSU View Post
Formatting isn't a problem. It doesn't delete the data.

Your memory is broken into blocks (Now This isn't accurate, but lets pretend it is...) so it starts at block 1 and ends at block 100...

You save a video to sdcard and its the first data stored there, it goes to block 1.. The next data goes to 2 etc.

When you format, the entires in the file system are removed, but the data remains, until you overwrite data. Since the file system is empty, after a wipe, the data starts from block 1 again, overwritting the previous data in block one.

Once this happens, its gone forever. So your chance is small....

The only chance you can save data is for example, before wipe, used 8GB memory. After wipe only used 4 GB data.. The last blocks of your previous data set (4 GB) MAY be recoverable.

See attached for visual representation
Thank you again! That was really nice explanation

I have filled up the storage up to the last bit after every new ROM installation.[ Hardly kept 100-150 MB free space]
So its not possible for me to restore the videos as they were 400+MB right??
Anyways Thank you very much for replying.
Cheers!
Phone: Nexus 5 Panda

Phone: HTC One [Retired]
 
rootSU
Old
#7  
rootSU's Avatar
Senior Member
Thanks Meter 11,394
Posts: 22,424
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by Ashutosh1313 View Post
Thank you again! That was really nice explanation

I have filled up the storage up to the last bit after every new ROM installation.[ Hardly kept 100-150 MB free space]
So its not possible for me to restore the videos as they were 400+MB right??
Anyways Thank you very much for replying.
Cheers!
Correct, not possible
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes