help with adb commands trying to pull SD card to pc - OnePlus 6 Questions & Answers

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.

Related

Need help backing up data with ADB on my captivate (broken screen)

[resolved]
I have a broken (completely black) screen on my captivate Im trying to back up all my files from the INTERNAL memory. I can't see the screen so obviously I can't mount the phone to view the files on my PC. I have gotten 'pull /system/ /local/' to work however when I try something like 'pull /data/ /local/' it says "pull: building file list... 0 files pulled. 0 files skipped."
Basically, how do I use ADB to get all of my files to my computer? Help is certainly appreciated. After this I will probably reset the phone and then maybe sell it as is. Not too sure.
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
diablo009 said:
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
Click to expand...
Click to collapse
I do not have any type of backups apps or anything like that on the phone.
I have an external sd card however Im not sure how thats different than using adb to copy the files from the internal memory to my computer. I am fine with using pull but maybe im using the wrong directory name for my personal files?
Have you tried qtadb or droidexplorer. Would be easier imo.
newter55 said:
Have you tried qtadb or droidexplorer. Would be easier imo.
Click to expand...
Click to collapse
That requires a rooted phone right? My phone is currently not rooted and I don't know if I would want to. How come I cant just use the adb pull command on the folder with my data in it?
edit - i might have found a command that works, i will update when finished.
ok this worked for me: 'adb pull / d:\backup\'
thanks everyone for your help.
Yeah. Assumed you were rooted sorry. Just thought that way you could see everything and point and click.
So I have a similar situation to this only I have a phone that isnt rooted and usb debugging isnt enabled. However I know the phone boots on, and I can also get into recovery mode where I am able to ADB to get a basic shell, and see the device but that is about it. I feel that if I could enable usb debugging thru recovery mode I might be able to mount the /sdcard and then pull files from there. anyone got any ideas if I could get a reboot with usb debugging enabled from recovery or maybe just a command that I could use in shell via recovery?? Please Please lol. I have a strong feeling i might have hit a wall.
http://forum.xda-developers.com/showthread.php?t=1164598

Can I push a file via fastboot?

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!

Wiped SD card phone wont boot

So basically i looked around on the forum cause i was getting crap battery and it said to wipe your SD card cause you might have a dodgy file on the phone, i did that and now the phone wont boot at all i dont have any roms to flash on it and the computer wont even seem to recognise it when i mount usb storage in CVM anyone have a clue whats going on?? and what i can do to get a rom working on it? or get it to boot
Boot into CWM recovery and connect the phone to your computer. Make sure you have ADB installed (see the links in my signature). Type "adb devices" to see if adb recognized your phone. If yes, you can transfer a rom file to the phone storage by typing:
adb push rom.zip /data/media
*Replace rom.zip with the location of the actual rom file.
Now flash the rom.

[Q]i cant push files from pc to extSdCard with adb

i can push and pull to int memory but im always reading a perm. denied when im a trying a push a data to extSdCard btw pull command isworking for sd card i know this problem can be so stupit but im a noob for adb im tried to change a folder perm. but cant change to -w to others what should i do
btw i researched forum

Backup Internal SD

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/

Categories

Resources