Dear CWM team,
Since the 4.2.2 vision of Android in New hTC one has changed its internal sdcard folder to be sdcard/0/
Could you please revise the recovery for this?
I can't see the CWM backup folder on PC through MTP connecting because its in /sdcard instead of /sdcard/0/
I'm used to copying the backup files to PC in case my phone crash someday.
Now I can only use OTG method with Root Explorer or ADB command to copy them to my PC, and that's not convenient.
Hope you can take this into account.
Thank you very much.
Don't need OTG, just use a root explorer to copy the backup file to your data folder and then copy it from phone to PC
Sent from my Nexus 4 using xda premium
EddyOS said:
Don't need OTG, just use a root explorer to copy the backup file to your data folder and then copy it from phone to PC
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I knew this method, but it's not convenient, either.
Because I have to copy twice.
Now I found another Recovery "Philz Touch", which is based on CWM recovery, and it can change the default backup folder to be /sdcard/0/.
I flashed the 5.06.1 version, and it works fine.
Or, maybe, change recovery and go to TWRP
TWRP is another good choice
Thanks a lot !!
NOTE: The Nexus 4 does not have a physical sd card. However, the user directory on the phone is located at /storage/sdcard0/ and will, for the purposes of this guide, be referred to as the sdcard.
Click to expand...
Click to collapse
Making sdcard backups with MTP is often unreliable. First of all, files are not always immediately updated with the ones on your phone. As a result, there may be folders missing, files that you deleted on your phone still showing up, etc. Also, the Date modified values of files are changed to the time that the files were moved onto your computer, which can cause errors when restoring them to your phone; i.e. photos in gallery not appearing in order. Other times, MTP is simply not available (if you have an older computer or an unsupported OS, for example). The best way to go about a backup is by using adb (Android Debug Bridge).
So, let's get started.
1. First, you're going to need some variant of the Android SDK/Software Development Kit as well as the Nexus 4 drivers installed. I won't show you how to do this, as there are already many guides and tutorials available.
Here's the link to the official Google ADT/Android Developer Tools.
2. Once you've got everything on your computer set up, open up the Settings app and go to About phone. Scroll down and quickly tap the Build number tile seven times. You have now enabled Developer options.
Go back, enter Developer options and enable USB debugging. An authorization pop-up will appear; allow it.
3. Now, open up a command prompt window and change directory to the location of adb on your computer. If you installed the official SDK, this will be under
Code:
folderyouextractedto\sdk\platform-tools
Connect your phone via USB and type
Code:
adb devices
You should see something like this:
Code:
List of devices attached
random numbers and letters device
If you don't, you probably don't have the drivers installed properly OR you failed to authorize your computer for USB debugging.
4. Make a folder on C:\ (or whatever your OS drive is) with NO SPACES in the file name. You can now make the backup.
Type
Code:
adb pull /storage/sdcard0/ C:\folderyoumade
You are now backing up your entire sdcard. This can take a while, depending on how many files you have on your phone.
When the copy is complete, you should see something like
Code:
x files pulled. 0 files skipped.
0 files skipped is very important, as it confirms that all of the files were copied over correctly.
To backup specific folders on it, simply change the command to that directory on your phone.
i.e.
Code:
adb pull /storage/sdcard0/folderyouwant/ C:\folderyoumade
5. To restore a backup, simply type
Code:
adb push C:\folderyoumade /storage/sdcard0/
NOTE: Restored folders DO NOT replace existing folders on your sdcard. They are merged (so pre-existing files in a folder remain, while any new files are copied in).
Click to expand...
Click to collapse
NOTE: I recommend that you do not use your phone during a backup or restore so as to make sure all files are properly copied.
Click to expand...
Click to collapse
Remember, this is only an sdcard backup. App and system data are NOT copied over. If you want to make a backup of your app data, the easiest way to do this is with Titanium Backup, Helium, or a similar app and then backup those files using adb pull. If you wish to make a complete backup of your file system (not including sdcard though), make a nandroid from recovery.
Reserved
klvnhng said:
Reserved
Click to expand...
Click to collapse
Good method if MTP failes or crashes! Thanks!
Thanks!
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
nphone said:
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
Click to expand...
Click to collapse
You forgot the frontslash at the end of 0. Try that
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
Or much shorter;
adb pull /sdcard C:\SDCARDBackUp
__________________________________________________
Device: Google Nexus 4 (LG-E960) 16GB (MAKO)
ROM: SimpleAOSP-L-ROM (Stable Build 7)
Kernel: Stuxnet v4.5 (3.4.105)
Gapps: PA-Gapps-5.0.1-BETA4 (MINI)
_________________________________________________
Is there a way for pull to skip files which already exist in your specified destination? Sometimes it errors in the middle of a long transfer because it doesn't like a file name or something.
I was looking for a better way to push my virtual sd card backup, as using the copy and paste method in windows doesn't copy all of the files for some reason. It will copy all the files from the sd card to the PC, but not back again. I was having to search through every folder and copy and paste to get everything copied back. Thank you so much for this tutorial. I knew about adb push command, but I never tried it, because I always thought the copy and paste method would be easier. Boy was I wrong. This way pushes all the files in one try. Soooo much easier.
I have a question, can I also backup this file directory: /storage/emulated/0? Or is this something else, I checked both folder and they seem to be the same.
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
NikoBe00 said:
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
Click to expand...
Click to collapse
Sounds like the adb backup didnt copy the /storage/sdcard0/android/ folder on the sdcard perhaps? Maybe try using adb pull to copy the scdard seperately in addition to doing the adb backup to be safe. You could push the sdcard data back manually if the restore doesnt. See below:
scandiun said:
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
!
Click to expand...
Click to collapse
it doesnt work
Why?
klvnhng said:
You forgot the frontslash at the end of 0. Try that
Click to expand...
Click to collapse
I font understand why is the front slash required?
I also forgot the front slash and was facing the same problem. Now its working after adding the front slash.
So, why is the front slash required and what does it mean ?
can I backup the sd card even if it is external using this method (apps are moved there too)?
edit: ok, I got the android folder from sd card, the message was:
/storage/sdcard1/Android/: 147 files pulled. 0 files skipped.,
but how am I supposed to see them?
I contacted AppMgr III, maybe they can tell me
Hi All,
i made a nandroid backup with CWM and i used the server function to download it to my PC, now im trying to restore it but no matter where i place on my ONE i cant get clockwork to recognise it.
Ive tried the SD card, mnt/shell ect... nothing seems to work
would anyone know what im doing wrong?
JoeRadd said:
Hi All,
i made a nandroid backup with CWM and i used the server function to download it to my PC, now im trying to restore it but no matter where i place on my ONE i cant get clockwork to recognise it.
Ive tried the SD card, mnt/shell ect... nothing seems to work
would anyone know what im doing wrong?
Click to expand...
Click to collapse
what do you mean by "Zip Backup"? the backup is a folder called something like "2013-mm-dd-hh.mm.ss"
and that folder should be placed in /data/media/clockworkmod/backup/
if it's a zip you downloaded off the net, then unzip it on your computer first, then push the folder to above location.
nkk71 said:
what do you mean by "Zip Backup"? the backup is a folder called something like "2013-mm-dd-hh.mm.ss"
and that folder should be placed in /data/media/clockworkmod/backup/
if it's a zip you downloaded off the net, then unzip it on your computer first, then push the folder to above location.
Click to expand...
Click to collapse
Its recognised as a zip on my PC although it cant be unzipped with 7zip or WinRar. if you go to manage and restore back ups in rom manager it lets you download a folder to your pc, cannot for the life of me figure out how to push it back to the phone so it can be recognised though.
JoeRadd said:
Its recognised as a zip on my PC although it cant be unzipped with 7zip or WinRar. if you go to manage and restore back ups in rom manager it lets you download a folder to your pc, cannot for the life of me figure out how to push it back to the phone so it can be recognised though.
Click to expand...
Click to collapse
1- what do you mean it can't be unzipped? where did you get it from
2- never used rom manager so no idea about that
3- use "adb push 2013-mm-dd-hh.mm.ss /data/media/clockworkmod/backup/2013-mm-dd-hh.mm.ss" to get the backup onto phone
When I connect my Note 4 to my PC via USB I can browse the folder structure but I can't drag and drop or copy/paste any files. What gives?
Also, I've tried in recovery mode to no avail. In fact, when I'm not in recovery mode I can't even see the files in the TWRP backup folders. In recovery mode I can see the files but I still can't copy them.
You should try using a file manager in recovery like this to move the files to your SD card.
http://forum.xda-developers.com/showthread.php?t=1646108
Good Luck
lmills.117 said:
When I connect my Note 4 to my PC via USB I can browse the folder structure but I can't drag and drop or copy/paste any files. What gives?
Also, I've tried in recovery mode to no avail. In fact, when I'm not in recovery mode I can't even see the files in the TWRP backup folders. In recovery mode I can see the files but I still can't copy them.
Click to expand...
Click to collapse
I am unable to flash ANY rom due to the fact i can not add ANY files to the internal storage. i used root explorer and i think it added the files but when i enter the TWRP those files are NOT there ... any advice?
TWRP should see the device as MTP when it boots to recovery, so on your computer you should be able to upload your files from your computer to your phone that way.
I have tried that I used wugs toolkit to push files and that didn't work ... am I missing something? I tried root explorer paid version to add files ... they are there but twrp doesn't see the zip files ... I'm very confused
Sent from my SM-N910V using XDA Free mobile app
So with the phone booted normally, you see the files? Are they in a certain folder? Where are you looking when you are in TWRP?