[Q] nandroid recovery - Fascinate General

I did a full backup before doing anything, but is there a possibility it could be corrupted? If so, what can I do about it?
When I try to recover to my backup, everything goes fine until it gets stuck on a very specific apk under data recovery.
Is there a way I can mount the data.img file locally, remove the offending apk and then redo the recovery?
Thanks in advance for the help.

Sorry for the double post but just wanted to get this thread some more attention.
After doing some digging, I was able to do a nandroid recover command through adb, but it segfaulted probably indicating my image was bad. Another attempt with uyaffs got some data, bit I'm still missing some data (nothing too important just some texts), but I'd like confirmation if possible that my deductions are logical and are possible.
Thanks guys.

Related

What happens if you accidentally delete the /data directory?

I'll tell you...basically not good things
After updating lots of apps, I decided to run the command to remove the boot-cache through a terminal app on my phone, rather than through adb shell (sprint needs to hurry up and fix this bug.)
Unfortunately, the terminal app doesn't like landscape, so when hitting the front slash after the data directory, my finger instead (to my absolute horror) hit the enter key.
Hilarity did NOT ensue. Basically everything started FC'ing. I rebooted into recovery, did a wipe, and started over. Everything seems to be fine, but for those that are more familiar with the filesystem than I, could there be any residual effects, or would the wipe/factory reset basically take me back to step 1? Thanks!
I'm going to try and write an app that not only clears the boot cache, but also turns on net sharing, kinda like a "utilities" app in the interim until Sprint can fix our stuff. Should be simple enough.
Factory reset should take you back to step 1.
Have you installed the recovery ROM? It doesn't modify your actual OS at all, but it enables you to do "whole phone" backups via Nandroid. Very handy for just such an occasion.
jonnythan said:
Factory reset should take you back to step 1.
Have you installed the recovery ROM? It doesn't modify your actual OS at all, but it enables you to do "whole phone" backups via Nandroid. Very handy for just such an occasion.
Click to expand...
Click to collapse
I do believe so. I followed our five star "how to root the CDMA Hero" thread, and I think the RA-Recovery part was included there.
I'm assuming since I can reboot into recovery mode, this is, in and of itself, the recovery ROM you're talking about. I have the option of a nandroid backup in there.
So, then let me ask you this. If I get my phone how I like it, can I do a Nandroid backup, and always be able to restore to that point, similar to commercially available backup apps? Thanks for the quick reply!
a Nandroid backup will restore everything on your phone (not your SDCard) so it should work to restore even if you delete the whole /data directory. It's not tested but it seems like it should work since it's an image of the whole freaking thing.

Removing encryption on Galaxy Tab

I encrypted my 10.1 yesterday without thinking all the way though. I found out that I could no longer flash kernels while the tablet is encrypted, since the SD card is not accessible in CWR.
I've tried doing a factory reset on my tab and each time, it boots up like nothing happened. I've also tried removing the pin that I put on it and the option to remove it is grayed out.
Do any of you know of a way to do a full wipe on the 10.1? Or could I reflash it using ODIN?
Thanks in advance.
id like to know this as well
still nothing? im starting to think this is an easy fix that nobody has posted about yet
there has to be something that im missing
try post # 6 in the linked thread, restore with unmodified vanilla version image from second link provided in the post, after booting from fastboot into recovery with clockworkmod recovery img; pushing it into the device sd with adb commandline, check the post for modifications and the link for details.
http://forum.xda-developers.com/showthread.php?t=1161325
whenever i try to reset to factory defaults, it just reboots like nothing happened
re-flash a stock firmware via odin as tar or fastboot/nandroid as img (backup restore)
Ones the tab is encrypted, there's no way to un do it. Unless you do what mughalgxt suggested. Good luck
Thanks guys, I went through some of these steps and found some other good tutorials to get me back up and running. All i wanted was to try the new kernel/bonsai rom out and I'm now able to do that
**** encryption, put a lockscreen password and be done with it.
I'm still struggling with this, as well: off to read some of the linked threads, because even with flashing a stock image with ODIN I'm still not able to recover the device. At least I managed to proceed past the boot loop I WAS in (when attempting to flash from CWM) - but now, I can get to the point where the device prompts me for the decryption key (meaning, it's clearly not yet restored to factory defaults) - but can't get it boot to completion. I also note that I've still got CWM Recovery, not stock.
It seems, at some point, encryption-key be damned, right? Meaning, if I don't care about recovering the contents of the encrypted partition - surely these low-level tools have the ability to simply format the partitions? Perhaps not - at least, not CWM - as attempts to format /data continue to fail.
Off to review the linked threads to try to gain some additional insight.
I ran into this same issue a long while back. As I recall (and it's been a while), you won't be able to wipe from CWM, but you can wipe from Settings / Privacy / Factory Data Reset. I could be wrong, but I know that I didn't have to do any adb pushing or anything with special images.
Hi SacTilt-
Thanks for the reply - and agreed: Had I actively started the effort from a functioning device, I think I could have selected that option.
As it turns out - I ran CWM, rebooted into recovery, and... next thing I knew, I was in boot loop hell.
I've tried flashing a variety of files via ODIN: Some at least allow the device to boot to the point where I get the initial password prompt - which I can provide, and proceed past... but then the device just 'goes blank'.
What I'm looking for is a 'start-from-scratch', no concern for data loss, delete the dang encrypted /data folder already, will ya?... approach.
As I've mentioned, a variety of ODIN files from a myriad of sources haven't seemed to quite do the trick. I feel like I'm missing something obvious - but can't find the right angle to spot it.
Perhaps fastboot might be what I'm looking for?
FWIW: the device was rooted when I started, so I've got full Titanium backups, with which I can restore, once I recover the actual device / OS.
Thanks for any insight.
Hey guys...if anybody finds a solution to this, please let me know...I am stuck with this same damn experimental ROM I've had from day one...it's getting really old. All I want is to get rid of this stupid encryption. Thanks for any help. Tried ODIN flashing, wiping data from security screen, wiping from CMR, etc.
Have you tried formatting the sd? Whenever i had my ns4g i accidentially did the same thing and i wiped the SD and it removed the encryption.
Sent from my GT-P7510 using XDA Premium HD app

[Q] Force clockwork restore?

I while preparing to flash a new ROM I scrolled one to many selections in the format menu and selected "format sdcard" by mistake. (anyone else think the little warning notice up top should inform you which area you are about to format and not just a generic "formatting can not be undone" warning... I have thought this before but never voiced it to anyone and it seems my fears were well founded)
So now I have lost my app data backups and ROM backups, along with various other data.
I have used a couple programs to recover the data on the sdcard and have managed to get the clockwork backups back. Problem is, I want to do a partial restore of just /data (from the advanced restore menu) but the md5 sums are not matching. As I as just restoring /data and from the same ROM currently on the phone, I am not overly concerned by that. I just need to get as much of the original app data back as I can so I can do a new backup of the app data and then do a proper wipe and flash of a new ROM.
I know there was a way to force a restore with ADB when I had my old N1, is there a way to do so with the current recovery on this phone?
Thanks in advance... I been up way past my normal time so I am dead and can't focus well. So its off to bed and hopefully will come back to some good news after work.
Nobody.. anything?

Formatted /System, Help!

Hey all,
I was trying to get OTA2 installed while retaining my root and long story short I ended up formatting my /system in CWM thinking it would rebuild the factory image. Now of coarse my system won't boot. For some reason I am also unable to mount /sdcard. Is there anyway I could restore my system?
Thanks for any help!
restore \system of your CWM backup
I don't have a CWM backup . I know, a real bonehead move. If anyone could help me out with a clean CWM backup I'd be willing to compensate.
Edit: BTW I have a 16gb US version of the TPT.
Is it even possible to flash someone else's CWM backup?
Could I use the full image that Lenovo took down, found here?
I don't suppose there's an nvflash image for this device...
While I'm not sure, it might be possible to use that full image. Certainly worth a try. You might try asking on that forum, if you haven't already.
Yes, It is possible to restore from someone else's backup. I, in the past have copied my backups to my pc when they were too much and If i needed them, I just copied them back to external_sd/clockworkmod/backup/ and voila, it would appear for restoration in CWM.
I may be wrong, I do not believe that region should have any effect but to be safe (since you already made one mistake ) restore your US version with a US backup. I have a UK version and I would have uploaded a backup for you if you couldn't find a US one but unfortunately, my tablet is at the lenovo repair centre, being treated for the dreaded micro usb port failure. Hope someone here can help with a backup.
Thanks for the advice!
I downloaded that full image, but I could not get it to flash in the traditional sense. I extracted it and copied the system directory to my system partition and the tablet actually boots now. However, wifi does not work, whenever I press any of the menu keys a red frame flashes around the screen, and I cannot go to the About section of the settings to try to download updates or anything, it just crashes. I am also unable to update to OTA1 via zip in CWM, it gives me:
Code:
assert failed: file_getprop("/system/build.prop", "ro.buildfingerprint") == "Lenovo/ThinkPadTablet/Indigo:3.1/ThinkPadTablet_A310_02/0024_0065_US:user/releasekeys" || file_getprop("/system/build.prop","ro.build.fingerprint") == "Lenovo/ThinkPadTablet/Indigo:3.1/ThinkPadTablet_A310_02/0037_0075_US:user/release-keys"
Since you still need a lot of help anyway why don't you try manually installing all of the updates up to OTA 0076. You have to have all the updates before it flashed first. Link here:
http://download.lenovo.com/slates/think/tablet1
The nandroid backup would have to be of a factory restore, correct? Otherwise, all accounts/settings, etc would be within the backup as well.
I wasn't planning on doing a factory restore any time soon, but if the CM9 ICS port releases is soon, I can make one then as I have the same model and region as you.
I'm just really busy at the moment due to school and I rely on my tablet for school!
That would be the only safe way to let someone have a backup.
toenail_flicker, Thanks for the suggestion, I'll start from the top of the list and work my way down.
obscure.detour, being a student also, I completely understand. Luckily I just bought a Livescribe pen to offset my need for my TPT for the moment .
In the mean time, in case anyone else would be willing, you could also take a backup of your current system, do a factory restore, take a backup of the clean rom, and than restore your original image.
Thanks!
LOL You make it sound easy, but for a CWM noob it's a dicey thing. Never restored anything. Perhaps someone with more confidence in CWM than me can pull it off for you.
I know letting someone have a backup that contains personal info my be tricky, but if you've got time (couple of hours) on your hands you can backup your current system, do a factory reset, and since a factory reset only affects data, it wont wipe your root or CWM. you can then make a CWM backup of the newly reset rom, copy it off the sd card and restore your earlier system which you backed up.
This would save the OP having to start installing the OTA updates one by one.
Like I said, my tablet is away for repairs, otherwise I would have helped him. Or, maybe that's a good thing cos its certain that my tablet's main board will be changed, thus its going to be a fresh android installation on it. when I receive it in a couple of days, if you're still in need, I'll try to reroot and install CWM so I can send you a backup.
Much appreciated darkhandsome18! Installing the OTA's failed . It looks like the image I found is actually a test build. Even the earliest patches do not recognize it as a viable base to install on.
Did you ever get someone's backup? If not I can make one for you today. I am on OTA2 though, were you updated before you wiped system?
Here is a CWM backup from my 32GB US TpT.
Extract the file onto your external sd card in the folder /clockworkmod/backup/
Reboot into CWR
Select Restore Backup and select my backup (You can use advanced backup to restore individual parts or just the normal restore to restore everything, which will be factory reset US OTA2 with root)
Hopefully everything will work properly and you will never format your system partition without a nandroid backup again.
I have it on my Dropbox for now but will delete it in a couple of days because it takes up a lot of space. Let me know once you have downloaded it.
If you don't have a Dropbox account then sign up here and we'll both get an extra 250MB of storage space.
jhankinson, thanks! I was not on OTA2, would that be a problem? Also, I'm having issues backing up my current setup, I got ICS running. CWR gives me "Error while backing up boot image". Any ideas?
I'd like to backup my current (semi-working) setup before attempting to restore yours. Thanks again for uploading that!
I finally got it to work by remounting my sdcard in rw using ADB in clockwork recovery. That backup seems to have worked flawlessly jhankinson, I can't thank you enough!
This is great news! I knew I couldn't help you, but so glad GodfatherIP was able to help you. He helped me a great deal, too, recently.
Who is GodfatherIP?

Back up help for a newbie

Howdy!
I had my 6T PERFECT, just like I wanted it.....exactly like I wanted it.
I downloaded the latest OOS update, clicked ok when it told me my phone would be unrooted after the update, something that DID NOT happen with my last update. I figured no problem, I will just root the phone after the update.
Well, TWRP recovery is gone. I boot into the Oxygen recovery screen. I have a Titanium backup folder that has a boat load of files I do not know how to use. TWRP still has a folder on my phone with 2 back ups in it.
I did a quick search and checked with google and can't find an answer simple enough for me to use.
How can I do a back up of my phone that will restore it just like it is, without me having to set up all the apps again, and set up my launchpad again like I want it.?
Question 2, how do I use the back up files I already have and will that do what I am wanting to do?
I may be hoping for something that does not exist, but I would like to root my phone, restore a backup, and upon reboot see the exact same phone I am looking at now. I can transfer the back up files to my computer no problem, but I don't know if that will accomplish my goal.
Thanks in advance!
JC the Newbie
https://forum.xda-developers.com/oneplus-6t/how-to/guide-local-upgrade-oos-losing-magisk-t3956818
Thanks Striatum, that will help in the future, however, it does not address the questions in my post.
PattayaGlock said:
Thanks Striatum, that will help in the future, however, it does not address the questions in my post.
Click to expand...
Click to collapse
Flash again twrp through fastboot (many guides here and there) flash Magisk and restore your backup, either the twrp ones either titanium backup
Thank you. I will see if I can muddle through either of those.
It looks as though I may have asked the wrong question. Perhaps I should have asked "if my bootloader is already unlocked can I reflash twrp and magisk after an OOS OTA update without wiping my data". I am back up and running with a rooted phone and did not lose any of my data or settings. Thanks for the help.
PattayaGlock said:
It looks as though I may have asked the wrong question. Perhaps I should have asked "if my bootloader is already unlocked can I reflash twrp and magisk after an OOS OTA update without wiping my data". I am back up and running with a rooted phone and did not lose any of my data or settings. Thanks for the help.
Click to expand...
Click to collapse
....I perfectly understood what you wanted to know.
This is basic knowledge, the answer is yes
How can you mess with your /data partition when twrp and Magisk are dealing with /boot partition
Thank you for the clarification.
Basic knowledge for you guys perhaps, but not for a newbie at the stage I am at. Well, where I was before you straightened me out! LOL.
After flashing a custom ROM in TWRP, when I reboot into recovery and click install, all of the directories have turned into folders with names that look like random letters and numbers, and I can no longer read/write from that internal SD card. Anyone know what is going on or have a solution? I don't want to lose my backups or data, that would suck. But if I have to to get my internal storage back, then fine. Thanks in advance if you can help!!!
boobteg2 said:
After flashing a custom ROM in TWRP, when I reboot into recovery and click install, all of the directories have turned into folders with names that look like random letters and numbers, and I can no longer read/write from that internal SD card. Anyone know what is going on or have a solution? I don't want to lose my backups or data, that would suck. But if I have to to get my internal storage back, then fine. Thanks in advance if you can help!!!
Click to expand...
Click to collapse
No need to post your issue in multiple threads...
This has nothing to do with backup it's an encryption hiccup.
PattayaGlock said:
It looks as though I may have asked the wrong question. Perhaps I should have asked "if my bootloader is already unlocked can I reflash twrp and magisk after an OOS OTA update without wiping my data". I am back up and running with a rooted phone and did not lose any of my data or settings. Thanks for the help.
Click to expand...
Click to collapse
I'm in same position. I lost root/twrp after local update. I can just flash twrp again and magisk without loosing data?
callumbr1 said:
I'm in same position. I lost root/twrp after local update. I can just flash twrp again and magisk without loosing data?
Click to expand...
Click to collapse
That is correct. You can flash both without losing any data. That is exactly what I did......and exactly what I was unsure of.
JC

Categories

Resources