Hey everybody,
I recently broke the screen on my gs3 and am trying to retrieve a folder from the internal SD.. I am not rooted and the folder is a hidden folder that I placed there.. . I adb pulled my entire internal SD and everything showed up but this folder...n any help would be appreciated
touchpro55 said:
Hey everybody,
I recently broke the screen on my gs3 and am trying to retrieve a folder from the internal SD.. I am not rooted and the folder is a hidden folder that I placed there.. . I adb pulled my entire internal SD and everything showed up but this folder...n any help would be appreciated
Click to expand...
Click to collapse
Hey, do you know the background to Linux terminal? make sure you're in the right directory "pwd", and do "ls" to see if your folder you're needing is in there.
Questions and Help issues go in Q&A and Help section
Thread moved
Thanks
FNSM
lemonboi5 said:
Hey, do you know the background to Linux terminal? make sure you're in the right directory "pwd", and do "ls" to see if your folder you're needing is in there.
Click to expand...
Click to collapse
Hey thanks for the reply... can u be more detailed in your commands? the commands I used were suppose to pull EVERYTHING for my internal storage. these look like adb shell commands... I used the windows command prompt to pull my files before... after I CD\ to the adb tools folder
anybody have a command line that could tell me what is on my internal storage? everything including hidden folders? like drowsing by directory
PWD will show the directory you're in, and LS will show files and directories within that directory, use CD (change directory) to navigate and make sure you find it. You can use a push command to move the file to your SD Card, and then get them that way onto your PC to back up or just keep them on the SD Card..
Related
Alright. I need help with this and Google can't help me. I need to recursively (i.e. all of the content in the directory) move an entire folder from Windows to my internal sd-card but no matter what I do, I just can't get it to work.
I now there's a way, somehow.
EDIT: Pitch-in: The sd-card is mounted as /mnt/sdcard/ right?
what about just zipping it? i dont think adb can do that easily
Lets say you have a folder called Wallpapers on your PC use the code below (assumes you copied Wallpapers folder to android-sdk\platform-tools):
Code:
adb push Wallpapers /sdcard/Wallpapers/
If you don't specify the destination folder (Wallpapers) on the sdcard then it will place the contents of the folder on your sdcard. No need for mnt in the destination.
Edit: unsure of how this will behave with subdirectories within the folder you're trying to push. You might have to push each subdirectory separately.
CMNein said:
Lets say you have a folder called Wallpapers on your PC use the code below (assumes you copied Wallpapers folder to android-sdk\platform-tools):
Code:
adb push Wallpapers /sdcard/Wallpapers/
If you don't specify the destination folder (Wallpapers) on the sdcard then it will place the contents of the folder on your sdcard. No need for mnt in the destination.
Edit: unsure of how this will behave with subdirectories within the folder you're trying to push. You might have to push each subdirectory separately.
Click to expand...
Click to collapse
Working for me as I type. I don't know about the sub-directories as I just put everything into one folder and will move them to their new home once they finish transferring. Up until now, I've been moving everything individually. I didn't know you could move folders so this is awesome. Save me a lot of typing lol.
gurusportscanada said:
Working for me as I type. I don't know about the sub-directories as I just put everything into one folder and will move them to their new home once they finish transferring. Up until now, I've been moving everything individually. I didn't know you could move folders so this is awesome. Save me a lot of typing lol.
Click to expand...
Click to collapse
a thanks is enough, no need to necrobump a thread over a YEAR old, just to say it works.
I honestly just zip the file with all directories on my computer than adb it over. Extract with root explorer and move then delete zip file. Easy and simple
Sent from my Nexus 7 using Tapatalk 2
/me bashes his head against the wall.
beekay201 said:
/me bashes his head against the wall.
Click to expand...
Click to collapse
when you do a folder you also do all it's sub folders
patalo said:
I honestly just zip the file with all directories on my computer than adb it over. Extract with root explorer and move then delete zip file. Easy and simple
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Im stupid.... This is best idea lol, and so obvious...
Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please? Or, alternatively, what other methods of backing straight to the PC are there?
Much obliged!
zkvvoob said:
Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please?
Much obliged!
Click to expand...
Click to collapse
MTP sucks. I prefer to use adb for this: adb pull /sdcard/clockworkmod D:\your\path\here
If you don't want to use the commandline, you can alternatively use an app like ES File Explorer to access a LAN share (shared folder/drive on your computer) and copy files this way.
adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.
Thank you very much, guys! I hadn't realised that adb pull could be used for copying a whole directory.
Reverse of this
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.
grouseuk said:
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.
Click to expand...
Click to collapse
[GUIDE] How-to copy files from/to your device
from Petrovski's sig
Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.
kbolt said:
Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.
Click to expand...
Click to collapse
I want to know this exact answer as well.
if you dont rename the folders, you wont have a problem.
I've found that the GNex toolkit makes it pretty easy to make backups, move them to your PC and restore plus a whole lot more. It's pretty good.
http://forum.xda-developers.com/showthread.php?t=1392310
+1 for adb
Large File Tip
THANK YOU!!
Jubakuba said:
adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.
Click to expand...
Click to collapse
Unable to see clockworkmod folder through file explorer
HI All,
Am not able to see the clockworkmod folder through File Explorer. Whereas after i take a backup through recovery, i can see the backup exists in /sdcard/clockworkmod/backup.
Please help.
Hi All,
Can anyone help with the above issue?
Use adb pull or an ftp server running on your device.
Sent from my Galaxy Nexus using Tapatalk 2
Hi,
Is there any way to copy the nandroid backup (and blobs) to the PC without first copying everything over to the sdcard?
Apparently the /data/media is only visible in adb shell as super user and thus am not able to pull those files as normal user.
Thanks
Gaurav
Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know
ahmadallica said:
Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know
Click to expand...
Click to collapse
/data directory is not in sdcard and hence I'm failing to pull it via adb. Can adb pull directories with root only permission? What is the command for that?
What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you
ahmadallica said:
What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you
Click to expand...
Click to collapse
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.
gauravsri said:
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.
Click to expand...
Click to collapse
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/
It does require root access. Anyway, I figured out that if I reboot in recovery mode then adb connects as root user and I'm able to pull the files from that location.
Thanks
Jubakuba said:
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/
Click to expand...
Click to collapse
Thanks a lot, i was looking the way to do this.
hi
well obviously i have a galaxy fame
unfortunately the touch function does not work
usb debugging is enabled but i dont have any custom rom
can someone help me access all my photos on the internal sdcard please
these are very important to me
PeatFx said:
hi
well obviously i have a galaxy fame
unfortunately the touch function does not work
usb debugging is enabled but i dont have any custom rom
can someone help me access all my photos on the internal sdcard please
these are very important to me
Click to expand...
Click to collapse
you can find it ,at DCIM Folder
faizauthar12 said:
you can find it ,at DCIM Folder
Click to expand...
Click to collapse
well to be honest im new to all of it.
i tried an adb pull of sys but cant find the dcim folder
i had the phone in recovery mode.
i think maybe a step by step guide would held lol
PeatFx said:
well to be honest im new to all of it.
i tried an adb pull of sys but cant find the dcim folder
i had the phone in recovery mode.
i think maybe a step by step guide would held lol
Click to expand...
Click to collapse
To pull any file from your device, you need to know its path. Once you know the path of the file, enter the following command to pull the file.
adb pull <path-of-the-file>
For instance, lets pull the Settings.apk which is located in the /System/app/ folder on your device.
adb pull /system/app/Settings.apk
The file will be pulled and saved in the ADB folder itself.
And DCIM folder is in sdcard (At least mine is in sdcard. Maybe it differs from device to device.)
Hope I helped.:good:
I recently had a problem where I had to do a factory restore on a non-bootable phone... and my only option was to use adb shell to copy the extracted stock lollipop nandroid files to the TWRP folder in internal storage [there may have been other ways, but I was not aware of one.]. Thanks to 3484jacks, thebobmannh, ckpv5, and redpoint73. I hope I didn't forget anyone.
OK.. so that worked... but it was very messy. Why? Because my first (and obvious) choice was to create the subfolder under TWRP and then adb push the files to that folder.
The folder I am referring to is the "root" folder of internal storage, also called the /sdcard/. It usually has other directories/folders such as .data, Android, Ringtones and/or Media.... I am sure you know what I am referring to. And on this "root" of the internal storage (sdcard) is the TWRP folder which contains backups. The path to the backups is sdcard/TWRP/BACKUPS/{device serial number}/name-date of backup.
However, when I did an adb push to the above folder, by using the following command:
adb push c:/nandroid/ /sdcard/ TWRP/BACKUPS/FXXXXX/nandroid (<<==I had already created the nandroid folder as you cannot push an entire folder to your phone; only the files contained therein will be pushed over)
....my files did not end up in /sdcard/TWRP/BACKUPS/FXXXXX/nandroid. Instead they were copied to /sdcard/storage/TWRP/BACKUPS/FXXXXX/nandroid. For some reason when pushing to the sdcard, adb pushes it to a subfolder called storage. I am not sure why this is... perhaps it is because we really are not talking about a physical sdcard, but rather internal storage. In any event, to fix my phone I had to use adb shell and I copied all of the nandroid files from /sdcard/storage/TWRP/{. . .} to /sdcard/TWRP/{ . . .}.
If you are in the true root (system) directory, there are several paths which lead to "internal storage"... and I want to know if anyone has any clue why there are multiple paths and what they mean. Below are the multiple paths from the system directory to internal storage:
(root)/storage/emulated/0/
(root)/storage/emulated/legacy/
(root)/storage/sdcard/
(root)/sdcard/
All of above paths lead to the exact same place (or so it seems)...a place which very much appears like internal storage.
However, I have run into this weird creation of a storage folder on the sdcard (internal storage) before. Several months ago, I copied via USB my entire sdcard to my Windows desktop. Oddly, several folders that I would have expected to be on the sdcard (as they are when viewing with Root Explorer) were not there. When inspecting what I had copied to my desktop, I found that the Download folder and 4 or 5 other folders, ended up in a "/(sdcard)/storage" sub-folder. EXACTLY like what happened to me yesterday (but kind of in reverse as I was copying TO the sdcard)
So that is my first question... Why does this happen? What is emulated? what is the difference between (root)/storage/emulated/0/ and (root)/storage/emulated/legacy/????
My next question, very intimately related to the above, is more of a problem.
The nandroid files I referred to above which I had initially pushed to the sdcard whereupon they ended up in the storage subfolder are still there. And whether I use Root explorer or adb shell, I get a "DELETE FAILED" or "PERMISSION DENIED" error respectively. And in case you are wondering, I did a 'su -' in adb shell before I attempted this. I had to grant access to SuperSU as a toast came up asking for the root rights.
Strange....I never thought internal storage had permissions, but I guess they do.
So the big question...and a solution to getting rid of the mess of files which are taking up several GBs of space on my sdcard (internal storage)... how do I delete the /storage/ folder on my sdcard? The folder was not there before.
Even if I drill down to the individual files (either in adb shell or root explorer) I still get a PERMISSION DENIED.
Please help. NOTE: I thought about reformatting the partition... but what guarantee will I have if I try to push my backed up sdcard data BACK to internal storage?? I probably can make sure that I delete the problematic nandroid files above by deleting them first in Windows, but that doesn't mean my sdcard won't still have another storage subfolder create.... and who knows what will be in it? [and this is the genesis behind my asking the first questions above about internal storage, the "emulated" name in the path, and the multiple paths from the system folder. I figured if I understood what was going on, I would be more likely to fix it.]
Thank you in advance for any assistance!!!