FORUMS

[Q] CWM Recovery restoring nandroid backup and USB mounting in recovery

124 posts
Thanks Meter: 14
 
By DrRuckingFetard, Senior Member on 21st January 2014, 11:46 AM
Post Reply Email Thread
I did a search to try and find an answer but couldn't find anything, so apologies if it has already been asked/answered..

Alrighty, so I got my shiny new Nexus 7 Flo for Christmas, and rooted it straight away. Everything seems to be fine, but just realised i hadn't done a nandroid backup yet. Once the backup was finished, I rebooted so I could move the backup to my laptop to free up ~4gb from my Nexus, but the backup location is different from the normal /sdcard/ClockworkMod/Backup, and I finally found it (using a root file manager) in data/media/clockworkmod/backup.

SO, my question is this..
Since it is apparent that Nexus 7 doesn't support USB Mass Storage Mode, I cannot access said nandroid backup without using a root file manager to move it to my MTP-accessible /sdcard folder, then moving to my laptop. That being the case, if something funky were to happen to my tablet and require me to restore the nandroid backup, how would I be able to put the nandroid backup back onto my tablet, since it would require the root file manager to move (which I obviously wouldn't be able to use if I'm in a bootloop for example).

As i was typing this I thought that mounting USB storage in recovery might do the trick, but nothing appears in My Computer when I select mount USB storage in CWM..


Any ideas/suggestions would be greatly appreciated, thanks

-Nexus 7 2013, stock 4.4.2/stock kernel, CWM Touch Recovery 6.0.4.3
21st January 2014, 01:19 PM |#2  
oldsoldier2003's Avatar
Senior Member
Flag Eldorado
Thanks Meter: 57
 
Donate to Me
More
Quote:
Originally Posted by DrRuckingFetard

I did a search to try and find an answer but couldn't find anything, so apologies if it has already been asked/answered..

Alrighty, so I got my shiny new Nexus 7 Flo for Christmas, and rooted it straight away. Everything seems to be fine, but just realised i hadn't done a nandroid backup yet. Once the backup was finished, I rebooted so I could move the backup to my laptop to free up ~4gb from my Nexus, but the backup location is different from the normal /sdcard/ClockworkMod/Backup, and I finally found it (using a root file manager) in data/media/clockworkmod/backup.

SO, my question is this..
Since it is apparent that Nexus 7 doesn't support USB Mass Storage Mode, I cannot access said nandroid backup without using a root file manager to move it to my MTP-accessible /sdcard folder, then moving to my laptop. That being the case, if something funky were to happen to my tablet and require me to restore the nandroid backup, how would I be able to put the nandroid backup back onto my tablet, since it would require the root file manager to move (which I obviously wouldn't be able to use if I'm in a bootloop for example).

As i was typing this I thought that mounting USB storage in recovery might do the trick, but nothing appears in My Computer when I select mount USB storage in CWM..


Any ideas/suggestions would be greatly appreciated, thanks

-Nexus 7 2013, stock 4.4.2/stock kernel, CWM Touch Recovery 6.0.4.3

if you have adb set up correctly and the path variable set - just navigate to where you want to save your Nandroid and type:
Code:
adb pull /data/media/clockworkmod/backup/
To put it back on your device you can use adb push for single files or the entire directory contents to wherever you want to put the files on your device.

Code:
adb push /path/to/saved/file_or_directory  /target_dir_on_device
Then restore using cwm or twrp as needed.

Alternatively you could also use fastboot to flash your recovery images.

hope this helps,
Cheers!
The Following User Says Thank You to oldsoldier2003 For This Useful Post: [ View ] Gift oldsoldier2003 Ad-Free
21st January 2014, 01:26 PM |#3  
DrRuckingFetard's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 14
 
More
Ahh i didn't even think of using adb pull to work around this, thanks heaps!


Any ideas as to why I can't mount usb storage within recovery?

Sent from my Nexus 7 using XDA Premium HD app
21st January 2014, 01:27 PM |#4  
LinearEquation's Avatar
Senior Member
Flag Midwest
Thanks Meter: 437
 
More
Quote:
Originally Posted by DrRuckingFetard

I did a search to try and find an answer but couldn't find anything, so apologies if it has already been asked/answered..

Alrighty, so I got my shiny new Nexus 7 Flo for Christmas, and rooted it straight away. Everything seems to be fine, but just realised i hadn't done a nandroid backup yet. Once the backup was finished, I rebooted so I could move the backup to my laptop to free up ~4gb from my Nexus, but the backup location is different from the normal /sdcard/ClockworkMod/Backup, and I finally found it (using a root file manager) in data/media/clockworkmod/backup.

SO, my question is this..
Since it is apparent that Nexus 7 doesn't support USB Mass Storage Mode, I cannot access said nandroid backup without using a root file manager to move it to my MTP-accessible /sdcard folder, then moving to my laptop. That being the case, if something funky were to happen to my tablet and require me to restore the nandroid backup, how would I be able to put the nandroid backup back onto my tablet, since it would require the root file manager to move (which I obviously wouldn't be able to use if I'm in a bootloop for example).

As i was typing this I thought that mounting USB storage in recovery might do the trick, but nothing appears in My Computer when I select mount USB storage in CWM..


Any ideas/suggestions would be greatly appreciated, thanks

-Nexus 7 2013, stock 4.4.2/stock kernel, CWM Touch Recovery 6.0.4.3

USB is not native on the Nexus 7 Flo so USB only works with an stick mount type app. I don't know if any will do this without root but you can't mount USB in recovery regardless. As to how to get a nandroid to your tablet, adb is your friend. 4GB is a an unusually huge nandroid. I always recommend keeping a nandroid or at least a ROM zip on you internal memory to flash. It save some hassles.

Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app
21st January 2014, 01:33 PM |#5  
DrRuckingFetard's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 14
 
More
Quote:
Originally Posted by LinearEquation

USB is not native on the Nexus 7 Flo so USB only works with an stick mount type app. I don't know if any will do this without root but you can't mount USB in recovery regardless. As to how to get a nandroid to your tablet, adb is your friend. 4GB is a an unusually huge nandroid. I always recommend keeping a nandroid or at least a ROM zip on you internal memory to flash. It save some hassles.

Sent from my Nexus 7 Flo running Odex SinLess ROM 4.4.2 with ElementalX kernel using XDA Premium 4 mobile app

I'm not referring to mounting a USB stick to the tablet, I already use stickmount for that. I'm talking about mounting the Nexus to the computer so files can be moved to it while in recovery.

As for the nandroid file size, it's 4gb because of my apps/app data backed up within it.. If there is a way to nandroid backup without also backing up /data folder I'd love to know how (but I'll also feel like an idiot because I've been trying to work out how to do that for a while lol..)

Sent from my Nexus 7 using XDA Premium HD app
21st January 2014, 06:26 PM |#6  
oldsoldier2003's Avatar
Senior Member
Flag Eldorado
Thanks Meter: 57
 
Donate to Me
More
If you are using Obackup ( Online Nandroid Backup ) you can select your partitions if you do a custom backup. You could also do it the hard way using the Linux dd command for the partitions you want in your backup

Sent from my Nexus 7 using XDA Premium HD app
The Following User Says Thank You to oldsoldier2003 For This Useful Post: [ View ] Gift oldsoldier2003 Ad-Free
22nd January 2014, 06:03 AM |#7  
DrRuckingFetard's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 14
 
More
Quote:
Originally Posted by oldsoldier2003

If you are using Obackup ( Online Nandroid Backup ) you can select your partitions if you do a custom backup. You could also do it the hard way using the Linux dd command for the partitions you want in your backup

Sent from my Nexus 7 using XDA Premium HD app



That sounds like a great idea, but with an upload speed of 30kb/s to dropbox with my internet connection, I wouldn't even bother trying to upload a file this size lol...

Any other way to perform a nandroid backup without the /data folder included?

Okay so I actually just noticed the first line of the XDA post about it (whoops)-

Quote:

Make a backup, zip it and upload it on your Dropbox or Google Drive in ONE CLICK only !!! (upload is just a feature, you can make the backup and just keep it on your device)

I'll give that a go then since it will let me select partitions to backup, thank you!
22nd January 2014, 06:57 AM |#8  
DrRuckingFetard's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 14
 
More
Okay so I got the app, tried looking through the XDA thread for it to find an answer but it didn't really explain many of the options so here's my next n00b question(s)-

1. Backup type: use "CWM Full" or "CWM Incremental"? What's the difference?

2. Being that the CWM Recovery nandroid location is /data/media/clockworkmod/backup, should I set OBackup to save to this location or leave it at the default /mnt/sdcard, and if I do, will it still be recognised within recovery to restore said backup?
22nd January 2014, 07:28 AM |#9  
oldsoldier2003's Avatar
Senior Member
Flag Eldorado
Thanks Meter: 57
 
Donate to Me
More
Quote:
Originally Posted by DrRuckingFetard

Okay so I got the app, tried looking through the XDA thread for it to find an answer but it didn't really explain many of the options so here's my next n00b question(s)-

1. Backup type: use "CWM Full" or "CWM Incremental"? What's the difference?

2. Being that the CWM Recovery nandroid location is /data/media/clockworkmod/backup, should I set OBackup to save to this location or leave it at the default /mnt/sdcard, and if I do, will it still be recognised within recovery to restore said backup?

https://play.google.com/store/apps/d...3t1c.onnandbup

It appears I don't have permissions to upload an attachment...
https://plus.google.com/u/0/10182989...ts/SUMLDu313EG
The example here is for a backup without the data partition.

You can save the nandoid to the /sdcard/ directory - because I use TWRP mine go to /sdcard/TWRP/BACKUPS/<device serial number>

For CWM I am not sure of the option but it would be custom if you only want certain partitions.
regardless as long as you know where it is you can restore it. If you use nandroid manager it will scan and find your backup paths for you and restore them, or again you can just point your recovery to them.
22nd January 2014, 07:50 AM |#10  
DrRuckingFetard's Avatar
OP Senior Member
Flag Sydney
Thanks Meter: 14
 
More
Quote:
Originally Posted by oldsoldier2003

https://play.google.com/store/apps/d...3t1c.onnandbup

It appears I don't have permissions to upload an attachment...
https://plus.google.com/u/0/10182989...ts/SUMLDu313EG

you can save the nandoid to the /sdcard/ directory becuae I use TWRP mine go to /sdcard/TWRP/BACKUPS/<device serial number>

If i selected /data/media as the backup directory, would that make the backup visible within recovery now wouldn't it? Tried using Obackup and backed up to /mnt/sdcard/clockworkmod but recovery didn't see any backups on the device..

Sent from my Nexus 7 using XDA Premium HD app
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1390376826553.png
Views:	97
Size:	196.0 KB
ID:	2531710  
22nd January 2014, 07:55 AM |#11  
oldsoldier2003's Avatar
Senior Member
Flag Eldorado
Thanks Meter: 57
 
Donate to Me
More
oh and I never bother trying to save uncompressed backups to drop box they take forever. I usually just adb pull them to my desktop then stash an archival copy on dvd . zipping and uploading to drive/box/dropbox are also good options but as you said they take a very long time. It is just easier for me to maintain multiple copies on different computers and media in the house...

---------- Post added at 01:55 AM ---------- Previous post was at 01:52 AM ----------

Quote:
Originally Posted by DrRuckingFetard

If i selected /data/media as the backup directory, would that make the backup visible within recovery now wouldn't it? Tried using Obackup and backed up to /mnt/sdcard/clockworkmod but recovery didn't see any backups on the device..

Sent from my Nexus 7 using XDA Premium HD app

I think that cwm looks for the backup in a oddball location. Cant remember exactly where off the top of my head. Its late and I'm tired. Nandroid manager should be able to find it though.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes