Easiest way to switch to RMA device using TWRP - Nexus 5 Q&A, Help & Troubleshooting

I'm having trouble copying the nandroid backup from the old device to the new one - is there a trick.
So far I've:
Fastboot oem unlocked new device
Fastboot flashed same version (latest) of TWRP on new device
Copied TWRP backup to my computer
Tried to copy TWRP to new device via MTP in TWRP, but getting write errors. Also, TWRP can't seem to mount the /cache partition and wiping doesn't work.
Would appreciate some help.
Thanks,
Ryan
Update: here's what worked after-all
-Old device: nandroid from TWRP, copy all sd card contents to PC with USB 3 and check that they all made it over okay (usb 2 had more failures, but even with 3 it just stopped copying sometimes)
-New device here forward: For some reason I had to flash the factory image from Google to the RMA device - in addition to it removing the errors I was having, it made me not have to wait for the OTA updates to install.
-Fastboot oem unlock then fastboot flash TWRP recovery
-Nandroid from TWRP to create new folder in SD card with appropriate serial number
-Copy sd contents from pc to new device
-From PC in SD card, in TWRP folder, move the backup from the old device serial number folder to the new device serial number folder (if you skip this step, the nandroid won't show up)
-Restore backup from TWRP
Enjoy

ryanwalexander said:
I'm having trouble copying the nandroid backup from the old device to the new one - is there a trick.
So far I've:
Fastboot oem unlocked new device
Fastboot flashed same version (latest) of TWRP on new device
Copied TWRP backup to my computer
Tried to copy TWRP to new device via MTP in TWRP, but getting write errors. Also, TWRP can't seem to mount the /cache partition and wiping doesn't work.
Would appreciate some help.
Thanks,
Ryan
Click to expand...
Click to collapse
I achieved this using these steps:
fastboot oem unlock
fastboot flash recovery
fastboot bootloader
boot to recovery
create nandroid backup
reboot device
transfer contents of original phone via pc to new phone, making sure to put previous TWRP backips in the new TWRP backup folder
do NOT transfer any EFS backups
reboot to recovery
restore TWRP backup from previous device

I reflashed the factory image and was then able to copy over the TWRP backup to the appropriate location on the SD card, however the backup isn't showing up in TWRP to restore from.

Thanks - I'll try to copy all the contents over. I never check EFS in the backups, but thanks for the reminder. Would that pooch my phone?
justbabu said:
I achieved this using these steps:
fastboot oem unlock
fastboot flash recovery
fastboot bootloader
boot to recovery
create nandroid backup
reboot device
transfer contents of original phone via pc to new phone, making sure to put previous TWRP backips in the new TWRP backup folder
do NOT transfer any EFS backups
reboot to recovery
restore TWRP backup from previous device
Click to expand...
Click to collapse

Yes. Efs is tied to a specific imei

I'm still copying the contents of the phone over via Windows but it seems to stop (with no error) before it can do it all. Is there a trick or is this a problem with MTP or something?
justbabu said:
I achieved this using these steps:
fastboot oem unlock
fastboot flash recovery
fastboot bootloader
boot to recovery
create nandroid backup
reboot device
transfer contents of original phone via pc to new phone, making sure to put previous TWRP backips in the new TWRP backup folder
do NOT transfer any EFS backups
reboot to recovery
restore TWRP backup from previous device
Click to expand...
Click to collapse

ryanwalexander said:
I'm still copying the contents of the phone over via Windows but it seems to stop (with no error) before it can do it all. Is there a trick or is this a problem with MTP or something?
Click to expand...
Click to collapse
I found transferring via USB 3 would work far better than USB 2. I had in the past experienced Windows just stopping with USB 2.

Thanks. I'll give that a shot. I remember it transferring fine before - Now that I think about it, I'm pretty sure I was using USB 3 for that.
I'm still having trouble getting the backup from the old device to show up in TWRP. I even made a test backup with the new device to make sure it was going in the right folder.
justbabu said:
I found transferring via USB 3 would work far better than USB 2. I had in the past experienced Windows just stopping with USB 2.
Click to expand...
Click to collapse

ryanwalexander said:
Thanks. I'll give that a shot. I remember it transferring fine before - Now that I think about it, I'm pretty sure I was using USB 3 for that.
I'm still having trouble getting the backup from the old device to show up in TWRP. I even made a test backup with the new device to make sure it was going in the right folder.
Click to expand...
Click to collapse
Good luck. Just remember that TWRP will only look for backups in the folder it creates. It will be different on the new device.

justbabu said:
Good luck. Just remember that TWRP will only look for backups in the folder it creates. It will be different on the new device.
Click to expand...
Click to collapse
In other words, when you take a backup, TWRP creates /sdcard/TWRP/BACKUPS/<your serial number>
You may have to initiate a backup on the new device first to create the <your serial number> folder. That's no bad thing anyway. Always good to have a full backup of your new device including efs just in case.
Then, copy the backup from the <your serial number> folder to <your serial number> on your new phone AMD you should be good.

Everything worked out... For other readers trying to do the same thing here's the summary:
-Old device: nandroid from TWRP, copy all sd card contents to PC with USB 3 and check that they all made it over okay (usb 2 had more failures, but even with 3 it just stopped copying sometimes)
-New device here forward: For some reason I had to flash the factory image from Google to the RMA device - in addition to it removing the errors I was having, it made me not have to wait for the OTA updates to install.
-Fastboot oem unlock then fastboot flash TWRP recovery
-Nandroid from TWRP to create new folder in SD card with appropriate serial number
-Copy sd contents from pc to new device
-From PC in SD card, in TWRP folder, move the backup from the old device serial number folder to the new device serial number folder (if you skip this step, the nandroid won't show up)
-Restore backup from TWRP
Enjoy

Related

[Q] a few Noob questions regarding TWRP NANDroid backups

Hello, I have a few questions regarding the TWRP recovery particularly the NANDroid backups, please bear with me as I am new to this. I have made a few backups using twrp but I want to put them onto my pc in order to save space however when I plug my phone into my pc I don’t see the TWRP folder unless I boot into recovery and then plug it in. Is this how it is supposed to be?
I wanted to test out restoring a backup that I had saved onto my pc onto my device. To test this out I created a backup through TWRP booted into recovery plugged in my device into my computer copied the backup file located in the TWRP folder and then deleted it from my device. Next I wanted to copy the backup that I just put on my pc back onto my phone and then eventually restore it through TWRP. However I only get as far as copying it from my device onto my pc. When I try to copy it back into the TWRP folder on my device I get an error saying “cannot copy data.ext4.win000 its file size is larger than the device limit” The backup is 4.83gb and I have 10.7gb free. Does anyone know why this is happening?
Last question, seeing as a NanDroid backup is basically an image of your whole device, let’s say I am selling my device and I don’t want the buyer to have any way of accessing any of my data. Would the deletion of my backups, factory reset and an advanced wipe where I select all the partitions to be wiped be enough?
Thank you in advance for your help!
1 - no. You're on lollipop i presume. Read my /sdcard thread in general
2 - sounds like its being mounted as FAT with 4GB file limit. Try web push method
3 - not really. You'd be best overwriting the data partition with files first.

Bootloop due to a mistake

I have run into a problem, I was trying to install CM12 and besides factory reset I did format data in TWRP and and now internal memory was formated. I am not able to see any zip files of nandroid backup now. I had copied the nandroid backup to pc but phone's storage is neither shown in PC. What to do now.
If you can still boot in twrp use the adb sideload. Just seaech on youtube how to copy files by that.

Is there any way to copy my phone data in pc in fastboot mode?

My yureka is restarting again and again and i have lots of data in my phone memory. so guys it there any option to get my data form internal storage in recovery or fastboot mode?
In the recovery you can do a nandroid backup. But it will backup to your phone. If you phone supports it, and you have a recovery that supports it, you can backup your phone to a USB flash drive. I know my phone and TWRP can do it. Via fastboot you can also flash a custom recovery of you need to. And if your phone has a micro SD card slot, you could back it up to there via a compatible recovery. OTG cables a fairly cheap BTW many on eBay and amazon.
Have a nice day, sent from my HTC One M8
Boot into the recovery, make a nandroid backup, connect the phone to the pc, then adb pull the backup files and then you can use an application to extract the data
2) you can directly backup from adb
3) you can adb pull the directories that u know have the data that you need
Thank me if i helped.. ?

cwm backup is empty

hello guys,
i have a problem with restoring my nandroid backup.
so the digitzer of my s3 mini is broken and does not work partially. e.g. i cant enter my pin to unlock screen lock and i cant use twrp. so i used cwm (i guess it was 6.0.2.8.) to backup everything to my ext sd card. i dont know exactly if the backup was successfull but i cant remember any error messages and my backup is about 3,5gb big and there r following files:
boot.img
cache.ext4.tar
cache.ext4.tar.a
data.ext4.tar
data.ext4.tar.a
data.ext4.tar.b
data.ext4.tar.c
data.ext4.tar.d
nandroid.md5
recovery.img
system.ext4.tar
system.ext4.tar.a
now i wanted to restore only data on a new device: moto g peregrine via cwm. i installed cm12.1 on my moto, the backup comes from cm12.1 too.
error: md5 checksum mismatch -> i cutted nandroid.md5 and created an empty file named nandroid.md5 and copied it into the backup folder. then cwm restored. well... it says it was restored. but when i start android no data is restored.
so i tried to restore it via tatanium backup. this app finds my backup, but only system apps r listed. no user apps. (i just tried it again, no apps at all)
then i tried to open/browse the tar archives with a shell extension in windows. they are empty.
then i wanted to extract them with appextractor but it doesnt find a backup to extract.
then i tried nandroid manager. it finds the backup, it says, its 3,44gb big. when i browse the data.ext4.tar its empty. then i click on restore nandroid backup. it boots into recovery but then it says:
sd card marker not found
.....
E: unknown volume for path [/mnt/sdcard1/clockworkmod/backup/2012-01-01.00.00.35]
cant mount backup path
im using cwm 6.0.4.8
so can sum1 plz help how to restore it? or is it broken? is everything gone?
and another question: twrp has adb sideload-support. i could make a twrp backup via the openrecovery adb script but my internal storage has not enough space. if i could tell twrp to backup on the ext sd card perhaps it works
greetz
daemonicvs said:
hello guys,
i have a problem with restoring my nandroid backup.
so the digitzer of my s3 mini is broken and does not work partially. e.g. i cant enter my pin to unlock screen lock and i cant use twrp. so i used cwm (i guess it was 6.0.2.8.) to backup everything to my ext sd card. i dont know exactly if the backup was successfull but i cant remember any error messages and my backup is about 3,5gb big and there r following files:
boot.img
cache.ext4.tar
cache.ext4.tar.a
data.ext4.tar
data.ext4.tar.a
data.ext4.tar.b
data.ext4.tar.c
data.ext4.tar.d
nandroid.md5
recovery.img
system.ext4.tar
system.ext4.tar.a
now i wanted to restore only data on a new device: moto g peregrine via cwm. i installed cm12.1 on my moto, the backup comes from cm12.1 too.
error: md5 checksum mismatch -> i cutted nandroid.md5 and created an empty file named nandroid.md5 and copied it into the backup folder. then cwm restored. well... it says it was restored. but when i start android no data is restored.
so i tried to restore it via tatanium backup. this app finds my backup, but only system apps r listed. no user apps. (i just tried it again, no apps at all)
then i tried to open/browse the tar archives with a shell extension in windows. they are empty.
then i wanted to extract them with appextractor but it doesnt find a backup to extract.
then i tried nandroid manager. it finds the backup, it says, its 3,44gb big. when i browse the data.ext4.tar its empty. then i click on restore nandroid backup. it boots into recovery but then it says:
sd card marker not found
.....
E: unknown volume for path [/mnt/sdcard1/clockworkmod/backup/2012-01-01.00.00.35]
cant mount backup path
im using cwm 6.0.4.8
so can sum1 plz help how to restore it? or is it broken? is everything gone?
and another question: twrp has adb sideload-support. i could make a twrp backup via the openrecovery adb script but my internal storage has not enough space. if i could tell twrp to backup on the ext sd card perhaps it works
greetz
Click to expand...
Click to collapse
You can connect a USB mouse and keyboard to navigate and select whatever you need to select or do in CWM or TWRP, it will work with either recovery.
As for transferring user installed apps and their data, you can try backing them up to your google account and then restoring them from google on the new device. Or use the USB mouse/keyboard along with ES File Explorer to go to your /data/app folder and create copies of your installed apps, the backups will be in your backup/app folder on internal, copy them to PC then go your Android folder on the device and copy the app data for those apps to PC, then transfer the app copies to the internal on the new device and install them or use adb to sideload each of those apk files to the new device, then transfer the copied app data for those apps to the Android folder on the new device, then boot to recovery and wipe only cache, do not factory reset in recovery then reboot.
I DO NOT GIVE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
hi,
You can connect a USB mouse and keyboard to navigate and select whatever you need to select or do in CWM or TWRP, it will work with either recovery.
Click to expand...
Click to collapse
but for this i need a special otg adapter cause the s3 mini doesnt support otg originally. and dont i need to install an app or something on my device and confirm a message on my screen? like u wanna do an adb backup. havent tried it yet. i will do i i guess.
As for transferring user installed apps and their data, you can try backing them up to your google account and then restoring them from google on the new device. Or use the USB mouse/keyboard along with ES File Explorer to go to your /data/app folder and create copies of your installed apps, the backups will be in your backup/app folder on internal, copy them to PC then go your Android folder on the device and copy the app data for those apps to PC, then transfer the app copies to the internal on the new device and install them or use adb to sideload each of those apk files to the new device, then transfer the copied app data for those apps to the Android folder on the new device, then boot to recovery and wipe only cache, do not factory reset in recovery then reboot.
Click to expand...
Click to collapse
this presumes that i can unlock my lockscreen. doesnt it?
i will try to backup my data with cwm again. perhaps the backup is corrupted. and i will try to do an adb backup and control the phone via keyboard and mouse if i can unlock the screen and/or confirm a popup message.
can anyone say if i can make a twrp backup to my ext sd oder pc via adb shell? i know the command "twrp backup <options> <foldername>" but can i change the path where the backup will be stored?
thx for your reply
daemonicvs said:
hi,
but for this i need a special otg adapter cause the s3 mini doesnt support otg originally. and dont i need to install an app or something on my device and confirm a message on my screen? like u wanna do an adb backup. havent tried it yet. i will do i i guess.
this presumes that i can unlock my lockscreen. doesnt it?
i will try to backup my data with cwm again. perhaps the backup is corrupted. and i will try to do an adb backup and control the phone via keyboard and mouse if i can unlock the screen and/or confirm a popup message.
can anyone say if i can make a twrp backup to my ext sd oder pc via adb shell? i know the command "twrp backup " but can i change the path where the backup will be stored?
thx for your reply
Click to expand...
Click to collapse
You can use adb to remove lockscreen. There's a couple different ways using adb, research them.
As for OTG capability, you can try adb side loading an app called Stickmount by Chainfire if you can find a way to enable it after installing it.
Sent from my SCH-I535 using Tapatalk
ok thx.
i wanna use the openrecovery script with "adb shell twrp backup DO" but it says not enough space. so i want to store the backup on my ext sd. but how can i change the backup location to my ext sd? i only can specify a foldername within the backup path. but noch path :/
like here
http://www.pocketables.com/2014/10/using-twrps-new-adb-interface.html
hope sum1 can help me

'Restoring' New 6039S with Existing 6039S Backup

So I've ordered a new 6039S to replace my 2-year old 6039S. That said, I've finally got my current one dialed in almost perfectly to suit my needs, so I'd like to backup the current one and flash that backup onto the new device.
Naturally I would install a custom recovery and backup the new device first, but are there any potential problems with the above approach? I'm assuming I could 'restore' all the backed-up partitions from the current to new device other than perhaps /boot? Sorry if either question is really ignorant...I'm clearly not a developer.
Hi Bradlee - I have done the exact same thing with two 6039y's - Make sure they are the EXACT SAME MODEL PHONES !! and install the same version of TWRP on each phone.
1 - Backup your old 6039s with twrp - Only backup the system, data, cache and boot partitions - DO NOT BACKUP EFS
2- Backup your new 6039s with twrp - backup all (to create the correct folder structures) (and have a backup if you have a problem you can restore) - DO NOT RESTORE EFS partition
You will notice that the "BACKUPS" folder in the TWRP folder on each device that contains the TWRP backup will have a diiferent number eg - "f2eeega" this is different for each device.
simply copy the the backup folder from the old device within the numbered folder and copy it to the new device placing it in the new devices different numbered folder.
Then restore using TWRP and you will have an identical clone of your old device.
It worked perfectly with my 2 phones
Best of luck.
as always I take no responsiblity if you mess up your phone - but if you follow my instructions exacly you will not have any problems and have 2 identical phones
k500zm said:
Hi Bradlee - I have done the exact same thing with two 6039y's - Make sure they are the EXACT SAME MODEL PHONES !! and install the same version of TWRP on each phone.
1 - Backup your old 6039s with twrp - Only backup the system, data, cache and boot partitions - DO NOT BACKUP EFS
2- Backup your new 6039s with twrp - backup all (to create the correct folder structures) (and have a backup if you have a problem you can restore) - DO NOT RESTORE EFS partition
You will notice that the "BACKUPS" folder in the TWRP folder on each device that contains the TWRP backup will have a diiferent number eg - "f2eeega" this is different for each device.
simply copy the the backup folder from the old device within the numbered folder and copy it to the new device placing it in the new devices different numbered folder.
Then restore using TWRP and you will have an identical clone of your old device.
....
Click to expand...
Click to collapse
Wow, I didn't think I'd find someone else who'd actually done it. I really appreciate the notes on folder numbering, EFS partition, and TWRP version! Thanks a ton k500zm! :good:
No probs matey - One other thing - after you have done this, you will need to copy the contents of your internal sd card. [user data, photos etc]
First - get rid of any big files eg movies etc that you can easly copy back over - then -
What I do - to make sure it is an exact copy - is create a RAR archive [with no compression] (or zip but I prefer RAR) containing all the folders you want on the old phone
then copy that RAR / zip to the new device internal sd card and then extract the contents of the RAR / zip to the new device internal sd card.
I use the RAR app from playstore and this archiving and extraction is done on the phone - NOT on your computer.
This makes sure there are no errors / missing files.
Job Done
Try this.
In the new device install twrp 3.1.0-0, boot in twrp, execute this https://forum.xda-developers.com/id...e-recovery-t3573635/post71446256#post71446256 , you will get a backup rom zip on desktop, install twrp 3.1.0-0 on the old one and install the backup rom zip on it.
The backup rom zip have the same images then a ota upgrade rom.
.
k500zm said:
No probs matey - One other thing - after you have done this, you will need to copy the contents of your internal sd card. [user data, photos etc]
First - get rid of any big files eg movies etc that you can easly copy back over - then -
What I do - to make sure it is an exact copy - is create a RAR archive [with no compression] (or zip but I prefer RAR) containing all the folders you want on the old phone
then copy that RAR / zip to the new device internal sd card and then extract the contents of the RAR / zip to the new device internal sd card.
I use the RAR app from playstore and this archiving and extraction is done on the phone - NOT on your computer.
This makes sure there are no errors / missing files.
Job Done
Click to expand...
Click to collapse
persona78 said:
Try this.
In the new device install twrp 3.1.0-0, boot in twrp, execute this https://forum.xda-developers.com/id...e-recovery-t3573635/post71446256#post71446256 , you will get a backup rom zip on desktop, install twrp 3.1.0-0 on the old one and install the backup rom zip on it.
The backup rom zip have the same images then a ota upgrade rom.
.
Click to expand...
Click to collapse
Thanks to you both. I have to figure out which route I want to take now; it's good to have options.
persona78, regardless of which backup process I use, I'll try to find time to test out your OTA install theory on the old device.

Categories

Resources