Android One Expanding to Bangladesh, Nepal, and Sri Lanka

At Google I/O 2013, Google proudly announced that the Android operating system was … more

Android 5.0.2 Fixes 2012 Nexus 7! Sony’s Making a Google Glass Competitor? – XDA TV

Android 5.0.2 Lollipop is available for the … more

Early Lollipop Ports for Micromax A116 and A117

It feels like it was only yesterday when Google announced the mysterious Android L.After … more

Now Gesture Tweaks Replaces Google Now with Custom Action

On most modern Android devices with software navigation keys, swiping up from the … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

ADB-puuled CWM backup doesn't match its original size on phone?

OP salxtai

3rd July 2014, 02:37 PM   |  #1  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
Hi all,

I've decided to try and copy my nandroid backup that I made the other day (first ever since I've just rooted my phone) to my PC.

Long story short, I attempted to use Root explorer to cut and paste the backup's folder into a folder that is visible on my PC so I could get a copy onto my PC, and then cut and paste the nandroid back into its original folder (tedious, but I don't have enough space to have 2 copies of the nadroid on my phone at the same time). This, however, fails, and I can't see the backup folder in the folder that I can see on my PC despite it being visible in this same PC-visible folder via root explorer after its supposedly pasted it.



So I went via option 2, using ADB to pull the folder.

After another amount of research I found a path that does pull the folder (mnt/shell/emulated/clockworkmod/backup .... data/media/clockworkmod/backup = remote object doesn't exist error).

It appears to pull the folder successfully (an identically named folder appears in "platform tools" folder on my PC), however the size of this pulled folder is only ~500mb, and I'm certain the nandroid backup took up at least 3-4GB on my phone after it was created.

The pulled folder also doesn't show all the files that I can see within the nandroid backup's folder via root explorer.

I did notice the "read-only" checkbox of the pulled folder appears filled in, which I take it means not all files in the folder have read-only properties. Is it possible there are (still) hidden files within the pulled folder that would account for the difference in size and number of visible files compared to the original nandroid folder on the phone?



any clarificaion of this would be good - I'm keen to have a copy of my backup on my PC as a safeguard, but this scenario has baffled me despite an hr's worth of research
6th July 2014, 01:37 PM   |  #2  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
No one?

Surely someone has an idea about this..
6th July 2014, 06:00 PM   |  #3  
lolcakes203's Avatar
Senior Member
Flag Toronto
Thanks Meter: 65
 
375 posts
Join Date:Joined: Jan 2013
More
I have experienced incomplete adb pulls also, and so I just stick to using MTP from within Windows. It's the only way for mention ensure a complete copy.

Sent from my Nexus 4 using XDA Free mobile app
7th July 2014, 04:51 AM   |  #4  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by lolcakes203

I have experienced incomplete adb pulls also, and so I just stick to using MTP from within Windows. It's the only way for mention ensure a complete copy.

Sent from my Nexus 4 using XDA Free mobile app

How are you doing this?

I use cwm and the backup folder isn't visible if I use mmtp (Windows file explorer etc), hence why I'm having to use other methods.
7th July 2014, 05:30 AM   |  #5  
Senior Member
Flag San Diego
Thanks Meter: 83
 
288 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by salxtai

How are you doing this?

I use cwm and the backup folder isn't visible if I use mmtp (Windows file explorer etc), hence why I'm having to use other methods.

It's possible that the computer and phone may be calculating file sizes differently. I would check the MD5 sums to see if they are the same on the computer and phone rather than guessing
7th July 2014, 03:09 PM   |  #6  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by lopezk38

It's possible that the computer and phone may be calculating file sizes differently. I would check the MD5 sums to see if they are the same on the computer and phone rather than guessing

Apologies for my ignorance, but I've been searching how to do this via Google and I must be really dumb because I'm not following how to do md5 checks. Could you explain it please?
7th July 2014, 09:27 PM   |  #7  
Senior Member
Flag San Diego
Thanks Meter: 83
 
288 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by salxtai

Apologies for my ignorance, but I've been searching how to do this via Google and I must be really dumb because I'm not following how to do md5 checks. Could you explain it please?

For Windows you need to download a program to check MD5. Microsoft has one available here, although it is a command line operated program. There are other programs that have a GUI for checking MD5 if you don't want to bother with the command line.

On your phone, using your file explorer and long pressing the backup should give you the option somewhere to calculate MD5 sums (Probably in properties). I don't know if root explorer does, I've never used it before, but I use Solid Explorer which does give me the option to calculate MD5 in the properties menu
7th July 2014, 09:40 PM   |  #8  
lolcakes203's Avatar
Senior Member
Flag Toronto
Thanks Meter: 65
 
375 posts
Join Date:Joined: Jan 2013
More
I'm not sure why you're backup folder isn't visible, when I connect though USB, all my SD card folders are shown, including the CWM Folder.

Sent from my Nexus 4 using XDA Free mobile app
8th July 2014, 01:29 PM   |  #9  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by lopezk38

For Windows you need to download a program to check MD5. Microsoft has one available here, although it is a command line operated program. There are other programs that have a GUI for checking MD5 if you don't want to bother with the command line.

On your phone, using your file explorer and long pressing the backup should give you the option somewhere to calculate MD5 sums (Probably in properties). I don't know if root explorer does, I've never used it before, but I use Solid Explorer which does give me the option to calculate MD5 in the properties menu


After a while of trying to work out the command line, I've think I've got it (but would like confirmation that this is correct).

- Pointed the fciv.exe command to the nandroid.md5 file located in the backup folder I had pulled from the phone via ADB

- using Solid explorer (root explorer also has this but I only worked this out after I worked out that I had look at the properties of the .md5 file itself w/in the explorer app, rather than the whole folder), I found the MD5 sum from within the backup folder

-- verdict: both numbers outputted by each source match.


Now my next question is, if I were to delete the backup on my phone, how do I go about putting it back into the "hidden" CWM backup folder where it came from later?
(seeing as I wasn't able to copy it using root explorer, and can't see the folder via MTP on my PC)
8th July 2014, 01:32 PM   |  #10  
OP Member
Thanks Meter: 0
 
39 posts
Join Date:Joined: Feb 2011
More
Quote:
Originally Posted by lolcakes203

I'm not sure why you're backup folder isn't visible, when I connect though USB, all my SD card folders are shown, including the CWM Folder.

Sent from my Nexus 4 using XDA Free mobile app

I have no idea either, and its really really annoying me.

Have you made some sort of permission changes to the folder/s themselves?
I have "show hidden folders" enabled under view options in windows explorer and have tried "show system folders", but that hasn't resovled it.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes