Hey guys as usual I had an itch to change something on a fully functional phone. So going from cm10.2 to paranoid I accidently ran the stock image 4.3 batch file forgetting that it wipes my internal memory and now I need to recover some files. The mmcblk0p23 block is the userdata parition I believe so I need to recover that somehow?
Can anyone help me...I followed this thread http://forum.xda-developers.com/showthread.php?t=1994705&highlight=0kb, but only ended up with a 0kb file.
hydronos said:
Hey guys as usual I had an itch to change something on a fully functional phone. So going from cm10.2 to paranoid I accidently ran the stock image 4.3 batch file forgetting that it wipes my internal memory and now I need to recover some files. The mmcblk0p23 block is the userdata parition I believe so I need to recover that somehow?
Can anyone help me...I followed this thread http://forum.xda-developers.com/showthread.php?t=1994705&highlight=0kb, but only ended up with a 0kb file.
Click to expand...
Click to collapse
It will not work with the Nexus 4, because MTP/PTP is not supported by the scanning tools. It will not be read properly which is why it showing as a 1kb file. Unfortunately all data is erased when you fully wipe NAND flash memory on a factory restore so your data cannot be recovered.
You do not have a SD/MMC card. That thread is mostly for phones with SD card data it works on a few HTC ones but not nexus.
sorry I couldn't help more
Not true I ran this same thing and it worked but couldn't recover anything useful. Are you typing in su when opening the second terminal command? If so try it without typing su or vice versa.
Search in that thread for 0kb some people in that thread had the same issue.
Sent from my Nexus 4 using xda app-developers app
otariq said:
Not true I ran this same thing and it worked but couldn't recover anything useful. Are you typing in su when opening the second terminal command? If so try it without typing su or vice versa.
Search in that thread for 0kb some people in that thread had the same issue.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Hey yes I already typed su after adb shell and checked the log and I saw the root access, still no luck however
iOSecure said:
It will not work with the Nexus 4, because MTP/PTP is not supported by the scanning tools. It will not be read properly which is why it showing as a 1kb file. Unfortunately all data is erased when you fully wipe NAND flash memory on a factory restore so your data cannot be recovered.
You do not have a SD/MMC card. That thread is mostly for phones with SD card data it works on a few HTC ones but not nexus.
sorry I couldn't help more
Click to expand...
Click to collapse
that thread is made for the galaxy nexus which also does not have an external memory only internal like ours...
In the commands are you using "....system/bin/..." or ".../xbin/..."? For me I had to use xbin and try it again without the su commands and see if that makes a difference.
Sent from my Nexus 4 using xda app-developers app
otariq said:
In the commands are you using "....system/bin/..." or ".../xbin/..."? For me I had to use xbin and try it again without the su commands and see if that makes a difference.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
i used xbin
You can use android data recovery tool, here's a good guide: android internal memory data recovery
hope this helps.
Related
Hello
Currently I am using medroid 1.4.3 non hwa version & I want to flash qnd miui odexed version .
So what I do ...
Format data or format system partition or SD card ext 4
Sent from my Nexus One using xda premium
take a nandroid. and yea wipe/format everything atleast 3 times including sd ext. not necessary to format sd fat32 partition.
Sent from my Nexus One using Tapatalk
format system also---------
When i format SD ext & system ..
Any Lost for SD card data
& re partition SD card for app2sd
Sent from my Nexus One using xda premium
no sd card loss
read OP on how his a2sd works, shouldn't have to reformat sdcard itself, a2sd is probably built in, you may have to run scripts to move apps, not sure
Format data 3x,delvik chace format system, format sd-ext then trying to install qnd miui odex rom & getting error...
What should I do ....?
Sent from my Nexus One using xda premium
rugmankc said:
no sd card loss
read OP on how his a2sd works, shouldn't have to reformat sdcard itself, a2sd is probably built in, you may have to run scripts to move apps, not sure
Click to expand...
Click to collapse
Please help me...
Sent from my Nexus One using xda premium
1. doesn't help to not know your error
2. if you are on medroid assume you have blackrose hboot at 220/16/200, MIUI seems ok with that
3. did you read all of OP page and scan thread for tips etc
4. what recovery are you using
5. did you check md5 before flashing
6. if you are bootlooping, pull battery
7. otherwise, pull battery and hold down pwr/trackball and let it boot into bootloader. then boot into recovery, do your wipes again and restore your medroid nandroid
8. last resort--redo your sdcard by formatting with sdformatter (full erase on and size adj on) and repartition sdcard as 1gb 0 swap ext 4
9. back up before you do these things
10. i prefer amon_ra recovery over cwm--although if needed you can flash amon thru rom manager
11. if you are rooted with sdk installed you can fastboot it thru a command window
here is the xda wiki with good info--read/read/read on this stuff
http://forum.xda-developers.com/wiki/HTC_Nexus_One#Installing_a_Recovery_Image
you have enough posts to post in MIUI with SPECIFIC questions about your problem
hope you get it sorted
rugmankc said:
1. doesn't help to not know your error
2. if you are on medroid assume you have blackrose hboot at 220/16/200, MIUI seems ok with that
3. did you read all of OP page and scan thread for tips etc
4. what recovery are you using
5. did you check md5 before flashing
6. if you are bootlooping, pull battery
7. otherwise, pull battery and hold down pwr/trackball and let it boot into bootloader. then boot into recovery, do your wipes again and restore your medroid nandroid
8. last resort--redo your sdcard by formatting with sdformatter (full erase on and size adj on) and repartition sdcard as 1gb 0 swap ext 4
9. back up before you do these things
10. i prefer amon_ra recovery over cwm--although if needed you can flash amon thru rom manager
11. if you are rooted with sdk installed you can fastboot it thru a command window
here is the xda wiki with good info--read/read/read on this stuff
http://forum.xda-developers.com/wiki/HTC_Nexus_One#Installing_a_Recovery_Image
you have enough posts to post in MIUI with SPECIFIC questions about your problem
hope you get it sorted
Click to expand...
Click to collapse
getting error Bad installation
I using 4ext touch recovery
I have blackrose hboot at 220/16/200
Yes i have checked md5 before flashing.
Sent from my Nexus One using xda premium
Try reflashing
rugmankc said:
Try reflashing
Click to expand...
Click to collapse
Can I change recovery....
Which is the best for miui....?
Sent from my Nexus One using xda premium
pk301984 said:
Can I change recovery....
Which is the best for miui....?
Sent from my Nexus One using xda premium
Click to expand...
Click to collapse
changing recovery is not needed. and the one which you are using (4EXT) is currently the best out there now.
Sent from my Nexus One using Tapatalk
Hey all silly question but when nexus 7 is rooted and a nandroid backup taken what happens when you really format the data partition from cwm does that wipe out the backup? Only ever had one device and it has a SD slot which stores the backups. Sorry for the newbie question.
It places the backups on the internal memory
/sdcard partition
It will not be erased if you format data from recovery
It will be erased if you do factory reset or fastboot erase userdata
Sent from my HTC One X using xda app-developers app
bagofcrap24 said:
It places the backups on the internal memory
/sdcard partition
It will not be erased if you format data from recovery
It will be erased if you do factory reset or fastboot erase userdata
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Ok thanks. After a bit a research I found that twrp will backup and restore straight from otg usb storage so will use that.
blucmal said:
Ok thanks. After a bit a research I found that twrp will backup and restore straight from otg usb storage so will use that.
Click to expand...
Click to collapse
I decided to do the same: what's worth a backup on a device you probably cannot access any longer?
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
I decided to do the same: what's worth a backup on a device you probably cannot access any longer?
Click to expand...
Click to collapse
wondering what you would do to be not able to access a nexus device...
kendong2 said:
wondering what you would do to be not able to access a nexus device...
Click to expand...
Click to collapse
Are you backing up your hard disk on itself? What do you do, if there is a hardware failure? Or even simpler: a 'wrongly' programmed install script which is formatting the data partition ...
Sent from my Nexus 7 using xda app-developers app
use the cloud.
If you can live with that, do it. I for myself prefer to have a copy near to me accessible all the time.
Sent from my Nexus 7 using xda app-developers app
Take a look at my screenshot, if you add up all my usage + free space, it comes out to about 11.42GB. Subtract that from Total space of 12.92GB and you have about 1.5GB of space that's not being reported.
Now what made me notice this was, the other day I made a backup in TWRP, which according to TWRP, will use 1.4+GB of storage. Today I wanted to restore this backup, but TWRP shows that I don't have any backups. I booted back into Android and used file explorer to browse the TWRP folder, and it was empty. I made another backup in TWRP just now to make sure it was backing up properly, and everything seems fine.
Does this look normal? How much unreported spaced is being used on your device?
Edit: So it turns out to be an issue with TWRP. For some reason, the first backup ends up in /data/media/TWRP.
You should try a free app in the app store called storage analyser. It gives you a clear picture of where all you data is being stored. I found a few gb of data that where being used up by things I had installed previously and then left data behind when un installed.
Sent from my SGH-T999 using xda premium
nelomen said:
You should try a free app in the app store called storage analyser. It gives you a clear picture of where all you data is being stored. I found a few gb of data that where being used up by things I had installed previously and then left data behind when un installed.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Interesting. Storage Analyzer is reporting 7.97GB of free space, while Android is reporting 5.33GB.
shilent said:
Interesting. Storage Analyzer is reporting 7.97GB of free space, while Android is reporting 5.33GB.
Click to expand...
Click to collapse
TWRP save backups to the wrong location occasionally.
Using a root explorer. check your mnt/shell/emulated folder. you should find a TWRP folder either in shell or in emulated.
Move it to mnt/shell/emulated/0, or delete it if you need to.
Edit: when the backup folder not in these folder, android system will think it to be "system data"
/sdcard
/data/media/0
mnt/shell/emulated/0
/storage/emulated/0
KyraOfFire said:
TWRP save backups to the wrong location occasionally.
Using a root explorer. check your mnt/shell/emulated folder. you should find a TWRP folder either in shell or in emulated.
Move it to mnt/shell/emulated/0, or delete it if you need to.
Edit: when the backup folder not in these folder, android system will think it to be "system data"
/sdcard
/data/media/0
mnt/shell/emulated/0
/storage/emulated/0
Click to expand...
Click to collapse
I don't see a TWRP folder in /mnt/shell, and /mnt/shell/emulated does not exist. Anywhere else I should be looking?
shilent said:
Interesting. Storage Analyzer is reporting 7.97GB of free space, while Android is reporting 5.33GB.
Click to expand...
Click to collapse
Difference in mine also
Using Tapatalk 2
It never showed correct for me, especially cuz it wouldnt read a lot of files that i just dragged into my phone like a usb storage...
You would think the android team would get these kind of small things fixed...
long shot but If you use linux and delete a file, some put it into a hidden folder .Trash-1000 rather than actually deleting it.
Alright, the same exact thing just happened on my girlfriends phone. She saw my phone and liked how my colors looked, so I flash Franco's kernel onto hers. Before I flashed, I created a back up in TWRP. Again, this backup is no where to be found, and her phone just lost 1.6GB of free space.
Maybe I'll post in the TWRP thread.
So it turns out to be an issue with TWRP. For some reason, the first backup ends up in /data/media/TWRP.
shilent said:
So it turns out to be an issue with TWRP. For some reason, the first backup ends up in /data/media/TWRP.
Click to expand...
Click to collapse
Omg thank u so so much I just got back almost 1gb of storage back. You are da man seriously.
Sent from my Nexus 4 using Tapatalk 2
Where should we move the backups to? I'm afraid if I move them, they won't show up in recovery.
I'm using CWM and it looks like backups are saved in /mnt/shell/emulated/clockworkmod/backup
Hi all,
I tried to switch from cm10.2 to crDroid today.
What I did:
- Switched to TWRP recovery
- Installed crDroid
- Cleared data, cache
When I rebooted, the sdcard seems to be reformatted.
However when I checked the partition using "df" command,
it shows that "/mnt/shell/emulated" uses up 9GB out of 12
i.e. my original sdcard usage.
Can anyone help me identify what happened?
Or how can I recover all those files from the sdcard?
Thanks a lot!!!
UPDATE:
I HAVE DISCOVERED THAT THEY ARE IN \data\lost+found
ARE THERE ANY WAYS TO RESTORE THEM?
Doplgangr said:
Hi all,
I tried to switch from cm10.2 to crDroid today.
What I did:
- Switched to TWRP recovery
- Installed crDroid
- Cleared data, cache
When I rebooted, the sdcard seems to be reformatted.
However when I checked the partition using "df" command,
it shows that "/mnt/shell/emulated" uses up 9GB out of 12
i.e. my original sdcard usage.
Can anyone help me identify what happened?
Or how can I recover all those files from the sdcard?
Thanks a lot!!!
Click to expand...
Click to collapse
With a root explorer, go to /data/media/0. What do you find there?
it goes to the new formatted sdcard...
Sent from my Nexus 4 using XDA Premium 4 mobile app
Sdmaid indicates more than 2 GB
Sent from my Nexus 4 using XDA Premium 4 mobile app
As shown in disk usage those data is labelled as system data...
Sent from my Nexus 4 using XDA Premium 4 mobile app
Did you have encryption enabled before you flashed?
Dungeon47 said:
Did you have encryption enabled before you flashed?
Click to expand...
Click to collapse
I was using a pattern lock before flashing. It requires pin/pw to encrypt the phone right?
Doplgangr said:
I was using a pattern lock before flashing. It requires pin/pw to encrypt the phone right?
Click to expand...
Click to collapse
It does, but just pattern lock doesn't mean encryption. Can you copy the data to a PC?
Yes when I connect to the PC I am able to copy the present data existing in the "new SD" (~200 MB of data)
But the disk info still tells me there is ~10GB data
Thanks To solid broWser, I discovered that all of my files are in lost+found folder.
Are there any ways to return all those files to their original form?
Sent from my Nexus 4 using XDA Premium 4 mobile app
Hi guys,
I need some hints on what has changed from Android < 5 to Lollipop when it comes to internal storage.
I have booted my Nexus 4 running Lollipop into ClockworkMod recovery and mounted the internal storage.
Then I did an "adb push" of files that I have backed up before to restore those onto the internal storage.
Once that was done I have opened a shell and changed ownership back to media_rw:media_rw and also
checked POSIX permissions to be correct.
Basically this is what I have done so many different times on different Android devices.
Once I have booted back into the system ... I could not access any of those files and directories.
I assume that there was something added on top of plain POSIX access control. A SELinux thing or something
like ACL or stuff, or maybe a database referring to files stored on /sdcard.
Anyway what can I do in recovery mode to make manually copied files and directories available in the system?
Any help would be appreciated!
Thanks in advance!
/Al
I had this problem too but all I could do to correct it was to reflash my ROM.
Sent from my Nexus 4 using Tapatalk
GorfDroid said:
I had this problem too but all I could do to correct it was to reflash my ROM.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Well finally I went back to 4.4.4 and copied the files back to SD card via adb. I hope the OTA will do everything for me.
But still I would like to understand how it work. This is what I am looking for.
If you are running Lollipop and create a file on SD card it looks exactly the same in Recovery mode. Same user, same group and same POSIX permission ... but still different in some way. How?