How do I backup/make a carbon copy my internal storage on my PC (the one that music pics etc) via adb? or is there a tool for that? i tried some adb pull commands to no avail.
fyi adb works on my PC. I can flash recoveries etc via adb
Thanks in advance!
adb pull /sdcard/ c:/sdcard/
Related
I accidentally wiped by SYSTEM partition (ouch) but my nandroid backup is not stored on the phone. I know in TWRP you can mount USB storage and transfer the file, but I heard this is risky (corruption) compared to the adb/fastboot method.
So I have now connected my phone via fastboot but I can't seem to find a command that will push my android backup files to the SD card. Can someone help? Thanks!
Your better off doing it through mass storage
AdB is alot slower
You could do adb push "file" /sdcard/
but it would be slow like I said and you would have to know the directory names to push the nandroid
My suggestion would be to push a aosp ROM just to get it flashed and booted then transfer the nandroid
Sent from my One X using Tapatalk 2
Edit:
NVM: got it working. Thanks!
Ok I wiped my internal memory on my htc one s , I can boot into TWRP ive tried to enable adb sideload mode but keep getting a FAILED message in red when i try to swype to activate sideload mode , ANY THOUGHTS?????? Im using twrp v.2.5.0.0
Can you adb push to your phone? I've just been where you are, side load didn't work. Had to use different pc to ensure adb was working correctly. After that pushing files to the sd card was easy. Do you currently have a working rom on the phone?
Sent from my One S using Tapatalk
Frankyg said:
Can you adb push to your phone? I've just been where you are, side load didn't work. Had to use different pc to ensure adb was working correctly. After that pushing files to the sd card was easy. Do you currently have a working rom on the phone?
Sent from my One S using Tapatalk
Click to expand...
Click to collapse
No rom on the phone only TWRP recovery ive tried adb sideload on my laptop and another laptop nothing is working any help would be great thanks !
the error im getting when trying to push via adb is "adb is not recognized as internal or external command, operable program or batch file"
tybo971 said:
the error im getting when trying to push via adb is "adb is not recognized as internal or external command, operable program or batch file"
Click to expand...
Click to collapse
if I type in adb devices in the window it does see my phone, but when i type the push command it scrolls a bunch of text in the command window which only takes about 3 seconds then it stops and doesnt put the rom onto my phone.....................????
ok think i got it, i did a format of the internal sd card through my pc now I can see the internal memory can anyone suggest a good S ON rom for this phone...thanks
tybo971 said:
ok think i got it, i did a format of the internal sd card through my pc now I can see the internal memory can anyone suggest a good S ON rom for this phone...thanks
Click to expand...
Click to collapse
Source rom works with s-on
Hello,
So I made the mistake of wiping my sdcard partition, so I don't have the .zip with the ROM on the phone's memory.
The ROM I currently had was deleted aswell when I formatted /system/. Recovery works, but because I don't have an external SD card, I can not put anything on the phone memory.
So now, I can not push the zip file with adb because my Moto G is not recognised, even though I installed all the drivers (in AP Flashboot Mode) it says that the USB is connected, but "adb devices" shows nothing.
So in a few words, phone memory is empty, it's not recognised by the PC so I can not push the .zip with adb sideload.
have you tried to connect an USB stick (in cwm or TWRP)?
Probably you can mount it and install a zip.
a.lex said:
have you tried to connect an USB stick (in cwm or TWRP)?
Probably you can mount it and install a zip.
Click to expand...
Click to collapse
I found a version of the Universal ADB Drivers, installed them and the adb sideload worked.
Let this be a lesson for others with phones that don't have external SD cards - NEVER delete the ROM from your phone's internal memory
FIXED
Are you using Win8 or Win7? I have read posts from people that had problems using fastboot commands in Win8.
I just lost 220 photos because I needed to change their containing folders name from "Camera" to "Photography", after doing this I opened the folder and the folder was empty! I tried renaming it back to Camera but my photos were still gone! And my SD card went from having 7GBs used to 5GBs used! Is there any way for me to recovery my photos?
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use Windows data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=//userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
There is also undeleter on xda:
http://forum.xda-developers.com/showthread.php?p=54848945
lost101 said:
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use Windows data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=//userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
There is also undeleter on xda:
http://forum.xda-developers.com/showthread.php?p=54848945
Click to expand...
Click to collapse
Can you tell me in detail how to dump the image? Or can you give me a link to a tutorial?
What model is your phone? Is your Bootloader unlocked?
lost101 said:
What model is your phone? Is your Bootloader unlocked?
Click to expand...
Click to collapse
Motorola Moto G first gen XT1032 rooted, bootloader unlocked with TWRP custom recovery. I have Cyanogenmod 13 unoffical running android 6. My laptop does not have any drivers so if that is a requirement please tell me so I can install.
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices
lost101 said:
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices
Click to expand...
Click to collapse
Ok, done. Now what?
lost101 said:
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices
Click to expand...
Click to collapse
Ok scratch that, I just plugged in my phone into my laptop and went into the Camera folder and all my photos are there but they are all 0 bytes! Is there another way to recover them?
It's best to backup the entire internal storage before trying anything. Also limit use of phone / apps on phone. Do not install or update anything.
If you don't already own one, buy a USB OTG cable - example.
ADB commands on PC:
adb shell
su
<grant root permission request on phone>
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/usbdisk/userdata.img
Note: The dd command above will dump the .img to external usb pen / card. You can then use PC data recovery software on the .img file.
EDIT: http://www.nburles.co.uk/android/recovering-data-from-an-android-device-using-dd - This page details how to dump directly to PC if you have busybox installed on your phone.
lost101 said:
It's best to backup the entire internal storage before trying anything. Also limit use of phone / apps on phone. Do not install or update anything.
If you don't already own one, buy a USB OTG cable - example.
ADB commands on PC:
adb shell
su
<grant root permission request on phone>
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/usbdisk/userdata.img
Note: The dd command above will dump the .img to external usb pen / card. You can then use PC data recovery software on the .img file.
EDIT: http://www.nburles.co.uk/android/recovering-data-from-an-android-device-using-dd - This page details how to dump directly to PC if you have busybox installed on your phone.
Click to expand...
Click to collapse
ok thanks!
Hi just a quick one.
im trying to use adb to tranfer my entire internal storage from my phone to my pc but i cant figure out the correct commands to do so
my phone wont boot and is stuck in twrp is there anyway i can do this?
add pull /sdcard/
The last / is key this will created a replica of the folders and all subtolders and files in your current directory of your pc it Mac.
I normally do
mkdir OnePlusBackup
cd OnePlusBackup
adb pull /sdcard/
That way the folders are kept together in one place.