[Q] Backup external SD contents to PC using ADB or similar - Sprint Samsung Galaxy S III

So, the interwebs has NOTHING that I can find which addresses this. Is there an ADB command or perhaps an app that will backup one's external SD to their PC?

You would just have to go into adb, debugging enabled, etc, and you'd basically just do adb pull /system/sdcard and it should dump it into your tools folder; though idk why you'd wana do that by adb exactly, though i know WHY, just...yea, lol.
Though if on the gs3, it'd be /system/sdcard1

Why not just connect with USB cable and transfer that way.
XDA Moderator

Papa Smurf151 said:
Why not just connect with USB cable and transfer that way.
XDA Moderator
Click to expand...
Click to collapse
Because for some reason, whenever I try to bulk-load everything on the external card to my Windows PC, it just sits at "calculating" or whatever. It doesn't actually begin the transfer, nor does it "fail". I've found that if I do one folder at a time, I can get most of it, but not all of it.
I just got a 32gb card, I want to mirror the contents of my current 16gb card to it.

teh roxxorz said:
You would just have to go into adb, debugging enabled, etc, and you'd basically just do adb pull /system/sdcard and it should dump it into your tools folder; though idk why you'd wana do that by adb exactly, though i know WHY, just...yea, lol.
Though if on the gs3, it'd be /system/sdcard1
Click to expand...
Click to collapse
I've tried telling it to pull from the following (all valid locations for my particular setup):
- /mnt/external_sd
- /external_sd
- /mnt/sdcard1
Each returns the "remote object '' does not exist" error.

disturbd1 said:
I've tried telling it to pull from the following (all valid locations for my particular setup):
- /mnt/external_sd
- /external_sd
- /mnt/sdcard1
Each returns the "remote object '' does not exist" error.
Click to expand...
Click to collapse
Well, navigate to / on adb in the shell, do an ls command, list the directories, and paths, and use the path it shows up there; it could see it differently than what you see when you use the phone.

Related

[Q] I Can't access MicroSD through the PC

Hi. I'm new to the forums and android. Sorry if this is not the correct place to post this.
When I connect my phone to the PC via USB I only see a few folders and none of the media files in the phone. I've tried accessing through Media Link and Windows Explorer and nothing.
Weird thing is that I see some folders and photos, like the photos taken with the RetroCamera Application.
I have been able to access my files before, it just suddenly stopped working.
Any ideas?
Try using different USB [if already did]
Go to your Hardware devices, change the MTP devices drivers to USB drivers manually [update them choose them manually from list]
Hopefully you'll get it working again
First,you should make sure that your MicroSD's file system is OK.
hpzf89 said:
First,you should make sure that your MicroSD's file system is OK.
Click to expand...
Click to collapse
How do you do that?
VanDerFlaxen said:
How do you do that?
Click to expand...
Click to collapse
Can you access the files with your phone's file browser?if you can do that,the sd card might be OK,then you can check the OS.But if you can't,you may have to format the sd card.
this is normal if USB mode is set to windows media sync, its some kind of security feature I think.
you have 2 options:
1. attempt to access via the moto web phone portal as above, you need to set the USB mode to 'motorola phone portal'. but this I find is a bit hit and miss, you can manually connect using this address:
http://192.168.16.2:8080/webfolder
this can be entered into start -> run, in windows explorer, or mapped directly as a network drive
2. go into USB options and change the mode to 'USB mass storage' this will mount the SD card as a proper removable drive and show all the files properly. This option may not be available depending on what firmware is loaded onto the phone though!
to change USB mode swipe the status/menu bar at the top of the phone down, and tap 'USB connection'
hpzf89 said:
Can you access the files with your phone's file browser?if you can do that,the sd card might be OK,then you can check the OS.But if you can't,you may have to format the sd card.
Click to expand...
Click to collapse
Yes, I can access the files through the phone browser.
rubjonny said:
this is normal if USB mode is set to windows media sync, its some kind of security feature I think.
you have 2 options:
1. attempt to access via the moto web phone portal as above, you need to set the USB mode to 'motorola phone portal'. but this I find is a bit hit and miss, you can manually connect using this address:
this can be entered into start -> run, in windows explorer, or mapped directly as a network drive
2. go into USB options and change the mode to 'USB mass storage' this will mount the SD card as a proper removable drive and show all the files properly. This option may not be available depending on what firmware is loaded onto the phone though!
to change USB mode swipe the status/menu bar at the top of the phone down, and tap 'USB connection'
Click to expand...
Click to collapse
I've used the moto web portal and I was able to access my files, however, it draggs when moving files. Also, the phone was in USB Mass Storage mode the whole time.
Today I connected my phone to my laptop at the office and even though the Motorola Media Link did not pick up my media files, I was able to access them through Windows Explorer. So I'm leaning towards a driver issue with my home PC.
ah ok, maybe the drivers haven't fully installed, check in the device manager to see of you can spot anything. you could also try changing the usb mode to a different setting then back again, see if that kicks the pc into installing the correct drivers
I re-installed the drivers, but still no go.
What surprises me the most is that I can't access or even see some of the folders in my SD Card. The Motorola Media Link recognizes that there is something in the card, but can't tell what it is.
Googling for days, I found this, but I don't know how to do it or even it is related to my problem:
"Finally i solve the problem. And everything in my ext sd card is back. Problem is emmc folder (means external sd card in cyanogenmod 7) not permitted for write and read.
I use QtADB Terminal for editing the directorys permition.
Step 1: type "su"
Step 2: go to root directory. If you type "ls" and can you see "emmc" you are right position.
Step 3: "chmod 777 emmc" or "$chmod 777 emmc" (for write and read permitted.)
Step 4: Reboot the phone and everythings are back in External Sd Card in EMMC
And Windows detect 2 Storage Drive now. One of 6GB Internal Sd Card, One of 8GB External Sd Card. And i can use my Music player Power AMP.
Everythings perfect for me now. Cyanogen is great ROM but this permision problem should bu fixed. Because i spend three day for solve this problem."

What's the best way to backup files from the phone's storage?

I am using Windows 7 and I need to backup my data so I can move to JB. However, when I connect my phone with a USB cable and drag all the files from my phone over to my laptop, it TAKES FOREVER!!!
Also, I think it "times out" or something because in the middle of the process, I'll always get "invalid copy handle" errors and have to start over.
Does anyone know a good, fast way to backup the data on our phones?
Neo3D said:
I am using Windows 7 and I need to backup my data so I can move to JB. However, when I connect my phone with a USB cable and drag all the files from my phone over to my laptop, it TAKES FOREVER!!!
Also, I think it "times out" or something because in the middle of the process, I'll always get "invalid copy handle" errors and have to start over.
Does anyone know a good, fast way to backup the data on our phones?
Click to expand...
Click to collapse
Well you can always do "adb pull /sdcard/ C:\directory you want"
Also to backup apps+data, do "adb backup -f C:\directory you want -all -apk -noshared -system" For more info about backing up apps and data, check this thread
Hope I you have drivers installed and know how to use adb
Thanks for the ideas!
I actually tried copying one folder at a time and it's much more reliable. Still slow but at least no time outs.
I'm just glad I could help!
Transferring speed can't be adjusted, since there's a limit from the USB cable...
If there is a corrupt file that directory will fail transfer that directory manually, and avoid the corrupt file.
Sent from my Galaxy Nexus using xda app-developers app
Use adb or access a shared folder on your computer via wifi using a file manager that supports lan shares. For instance: es file explorer.
Sent from my Galaxy Nexus using Tapatalk 2

[Q] Can't access my old files after switching ROM from AOKP to CM

Initially I thought this was a problem with Google Play / Apollo, but I realize now that when I plug in my phone via USB, I can't see any of the many, many folders and files present on /sdcard that I could see previously.
If I copy a "new" mp3 onto my Galaxy Nexus, it's recognized just fine by both Google Play and Apollo. However, none of my old mp3s (or files, for that matter) are recognized. They were placed in /sdcard/Music, a folder that I cannot see when I plug in my phone, only from the file manager running on the phone. The issue persists if I move an "old" mp3 from my music folder out into the sdcard root, it's still not recognized. This makes me think this might be permission related, but the file manager says that all files are readable and writable.
I've tried running "fix permissions" in both ROM manager and the CWM recovery, but it makes no difference. Any idea what has happened, and how to fix it so that I can use all my old files again?
edit If it's any help, I just ran ls -al in a terminal emulator and I can't see any difference at all between folders I can and cannot see. Example: I can see /sdcard/media just fine, because I created that folder from Explorer in Windows. Music in that directory works. I cannot see /sdcard/music. Here's the permissions:
Code:
drwxrwxr-x root sdcard_rw 2012-09-18 media
drwxrwxr-x root sdcard_rw 2012-09-16 music
This is a bit confusing.
When I try pulling and pushing a file with adb like so:
Code:
adb pull file.tar
adb push file.tar file2.tar
I get
Code:
failed to copy 'file.tar' to 'file2.tar': Read-only file system
I've tried remounting /sdcard in root terminals both on the phone and via adb, but I get mount: Operation not permitted. I'm thinking this might be because /sdcard isn't the actual path but I've tried /storage/sdcard0 and /mnt/sdcard as well and I get the same error.
Thanks in advance for any suggestions.
(This question was also posted on android.stackexchange)
adb push /sdcard/file2.tar
also, cm doesnt have root access enabled by default for adb.
/sdcard/ is already rw, otherwise apps couldnt place anything there. nor could we.
Sent from my i9250
Didn't realize I needed an absolute path, thanks! I now managed to push the file, but it does not show up under the "Galaxy Nexus" unit in My Computer. It does show up when I do an ls in adb shell though. Any ideas?
bajsmumsaren said:
Didn't realize I needed an absolute path, thanks! I now managed to push the file, but it does not show up under the "Galaxy Nexus" unit in My Computer. It does show up when I do an ls in adb shell though. Any ideas?
Click to expand...
Click to collapse
try disabling mtp on the device; or rebooting, if you want to stick with mtp. maybe it has to refresh file list?
bk201doesntexist said:
try disabling mtp on the device; or rebooting, if you want to stick with mtp. maybe it has to refresh file list?
Click to expand...
Click to collapse
Switching from MTP to PTP does nothing, the same files are shown ("new" files). I'd like to stress that if I take a picture for example, that pictures does show up both with MTP and PTP. New files work fine. It's the old files that I can see in the file explorer in the actual phone that just refuse to show up when I connect to my computer, and they are obviously also not recognized by apps in the phone (such as Apollo or Google Play).
I realize that I could work around this issue by just removing everything from my sd card and then putting it back, but I really want to figure out how this can even happen.
I'm no expert by far, but it sounds like when you changed ROM the"index"file for mtp isn't updates. Have you tried to run the media scanner?
Swype'ed on my CM10 Galaxy Nexus
Herman76 said:
I'm no expert by far, but it sounds like when you changed ROM the"index"file for mtp isn't updates. Have you tried to run the media scanner?
Click to expand...
Click to collapse
If I've understood correctly, power cycling the device should trigger the media scanner. I just tried restarting, and it made no difference. (I've restarted the device several times since this problem occurred).
Opening the Gallery app still only shows me two pictures (I've taken two photos since the ROM flash), interestingly the thumbs are for other pictures lying around and after a while Gallery crashes. I use QuickPic more often though and that app behaves well, and shows all photos.
edit As a final resort, I tried doing a full wipe and reinstalling CM10 M1 completely, without restoring any settings or apps from any old installations. The issue still persists! Any files created with my now "old" CM10 installation no longer appear, even when they are moved within a folder where other "new" files are shown and working. This is starting to annoy me, but since this obviously is a bug in CM10 M1 I see no point in trying to spend time solving it, I'm just going to switch back to AOKP. Thank you for any answers and attempts at solving this.
edit2 Formatting /sdcard in CWM recovery fixed this, even though it might not be the most elegant solution.
Have you seen this?http://forum.xda-developers.com/showthread.php?p=30288268
Basically what it suggests is that you go to apps via settings, find the "Media Storage" app (it's a system app) Clear data/cache, then reboot. This was my problem.
Sent from my Galaxy Nexus using xda premium

Transfer Files from PC

I've been trying to transfer the files I took from my Galaxy S4 and saved them to my computer, to my G3. When I connect the G3 to my computer, I only see 2 files in the "Internal Storage". It won't recognize my SD Card either. Is there a setting I may be missing, that will allow me to see other folders? I can't copy and paste anything to my Internal Storage. Thanks for your help.
AnaMayShun said:
I've been trying to transfer the files I took from my Galaxy S4 and saved them to my computer, to my G3. When I connect the G3 to my computer, I only see 2 files in the "Internal Storage". It won't recognize my SD Card either. Is there a setting I may be missing, that will allow me to see other folders? I can't copy and paste anything to my Internal Storage. Thanks for your help.
Click to expand...
Click to collapse
Try airdroid from play store
jaythenut said:
Try airdroid from play store
Click to expand...
Click to collapse
Hmmm...I tried to upload the pics from my desktop and I get this message. "Failed to upload. No write permission on sd card."
I have to turn on the camera mode for it to transfer. It won't recognize anything in MTP mode. :/
I wish I could do all this without using AirDroid. It won't show the phone in MTP, but in PTP it will, but only 2 folders on the whole phone, no sdcard. And I can't directly put anything on the phone.
I had a problem with my D855 MTP mode as well. Folders are all there, but some files are either missing, or reduced in size. I cannot copy them out to PC. In these folders, I also cannot copy files into them. What I did to resolve the problem, is to reboot the phone with USB cable attached to the PC. Then, before the phone can complete its boot up sequence, I will have some time to copy the files in and out. It is really quite troublesome.
MTP troubles?
This is what's worked for me (D850/at&t):
Install LG United Mobile driver for ADB support
Enable USB debugging in developer options on phone
Verify MTP mode is selected
Connect USB and accept RSA signature on phone
I know that ADB isn't particularly necessary for MTP, but in my experience with roms on the old Nexus (for which I used Google's ADB driver), it was a sure bet every time. gl
crasher said:
I had a problem with my D855 MTP mode as well. Folders are all there, but some files are either missing, or reduced in size. I cannot copy them out to PC. In these folders, I also cannot copy files into them. What I did to resolve the problem, is to reboot the phone with USB cable attached to the PC. Then, before the phone can complete its boot up sequence, I will have some time to copy the files in and out. It is really quite troublesome.
Click to expand...
Click to collapse
ae10u said:
This is what's worked for me (D850/at&t):
Install LG United Mobile driver for ADB support
Enable USB debugging in developer options on phone
Verify MTP mode is selected
Connect USB and accept RSA signature on phone
I know that ADB isn't particularly necessary for MTP, but in my experience with roms on the old Nexus (for which I used Google's ADB driver), it was a sure bet every time. gl
Click to expand...
Click to collapse
Thanks for the suggestions guys. But it seems like my phone refuses to be recognized in MTP mode. And only partially recognized in PTP. I think I may have to do a hard reset this weekend. :/
I went back to Best Buy yesterday and returned my phone and got another one. And now my file transfers work. I guess I had a defective phone. I'm glad everything got back to normal.
I also had the problem that I didn't see my SDcard, but when I disabled debugging mode I suddenly could

[HELP] cannot read or write to internal storage (/sdcard)

The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
P.S I tired to connect a flash drive so I could flash 4.1.1 (as I cannot copy anything to the internal storage) and see if that would fix it but TWRP won't recognize any flash drives and I'm on the latest official version of TWRP
DarkN3ss61 said:
The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
Click to expand...
Click to collapse
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
Thanks for the suggestion, I'm not home for another 10 hours so I will try that when I get home. So if anyone has any other suggestions let me know
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
DarkN3ss61 said:
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
Click to expand...
Click to collapse
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
pvramk said:
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
Click to expand...
Click to collapse
I tried with and without the flag, also yes the phone is visible in ADB.
I have given up and wiped phone completely, flashed latest version of TWRP, then 4.1.1 and magisk 12. No problems so far, apart from not having my files that were not backed up.
So you can consider this problem abandoned

Categories

Resources