Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,429 Members 54,865 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
salxtai
Old
#1  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
Default ADB-puuled CWM backup doesn't match its original size on phone?

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
 
salxtai
Old
#2  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
No one?

Surely someone has an idea about this..
 
lolcakes203
Old
#3  
lolcakes203's Avatar
Senior Member
Thanks Meter 30
Posts: 157
Join Date: Jan 2013
Location: Toronto
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
Devices:
LG Optimus 2X P990
LG Nexus 4

LG Optimus 2X:
ROM: Tonyp TheROM Build 26 New Bootloader
Kernel: Kowalski Kernel M1 New Bootloader 2.6.39.4 W/ RAM Hack
Bootloader:ICS Bootloader
Recovery: TWRP 2.6.0.0 For New BL
Baseband: 1035.21

Nexus 4:
ROM: Stock 4.4.4 W/ Root (Xposed, GPU Drivers, Dalvik/Bionic Patches)
Kernel: Matr1x 14.0 W/ GPU OC
Bootloader: Stock Bootloader (Unlocked)
Recvoery: PhilZ Touch CWM-Based Recovery
Radio:Radio (1.03)
 
salxtai
Old
#4  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
Quote:
Originally Posted by lolcakes203 View Post
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.
 
lopezk38
Old
#5  
Senior Member
Thanks Meter 79
Posts: 281
Join Date: Apr 2013
Location: San Diego
Quote:
Originally Posted by salxtai View Post
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
PHONES: iPhone 3GS (Retired, Jailbroken, iDroid, overclocked to 800MHz) -> Motorola Atrix 4G (Shattered, CM10, Faux kernel @ 1.45 ghz overclocked) -> Google/LG Nexus 4 (Primary Phone, L Preview)

TABLETS: Sony Tablet S (Retired, rooted 4.0.3), Surface Pro 2 128GB (Current, W8.1)
 
salxtai
Old
#6  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
Quote:
Originally Posted by lopezk38 View Post
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?
 
lopezk38
Old
#7  
Senior Member
Thanks Meter 79
Posts: 281
Join Date: Apr 2013
Location: San Diego
Quote:
Originally Posted by salxtai View Post
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
PHONES: iPhone 3GS (Retired, Jailbroken, iDroid, overclocked to 800MHz) -> Motorola Atrix 4G (Shattered, CM10, Faux kernel @ 1.45 ghz overclocked) -> Google/LG Nexus 4 (Primary Phone, L Preview)

TABLETS: Sony Tablet S (Retired, rooted 4.0.3), Surface Pro 2 128GB (Current, W8.1)
 
lolcakes203
Old
#8  
lolcakes203's Avatar
Senior Member
Thanks Meter 30
Posts: 157
Join Date: Jan 2013
Location: Toronto
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
Devices:
LG Optimus 2X P990
LG Nexus 4

LG Optimus 2X:
ROM: Tonyp TheROM Build 26 New Bootloader
Kernel: Kowalski Kernel M1 New Bootloader 2.6.39.4 W/ RAM Hack
Bootloader:ICS Bootloader
Recovery: TWRP 2.6.0.0 For New BL
Baseband: 1035.21

Nexus 4:
ROM: Stock 4.4.4 W/ Root (Xposed, GPU Drivers, Dalvik/Bionic Patches)
Kernel: Matr1x 14.0 W/ GPU OC
Bootloader: Stock Bootloader (Unlocked)
Recvoery: PhilZ Touch CWM-Based Recovery
Radio:Radio (1.03)
 
salxtai
Old
#9  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
Quote:
Originally Posted by lopezk38 View Post
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)
 
salxtai
Old
#10  
Member - OP
Thanks Meter 0
Posts: 38
Join Date: Feb 2011
Quote:
Originally Posted by lolcakes203 View Post
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes