[Q] Help with backing up virtual sd-card - Samsung Galaxy Nexus

OK, so I fell victim to the JB bootloop/failure to restore a nandroid in CWM/failure to install any rom in cwm without a bootloop. From what I've gathered, the only fix for my soft-brick is to return to stock, which of course deletes /data/media. I've tried to back it up with root toolkit, but did not get everything on the VSD. I've tried pulling everything from it using ADB...same result. Yet, adb shell ls /data/media/ shows it's all there. Can anyone tell me how I can download the entire contents, or fix the bootloop problem (preferred)? I'm under the gun here, as I need my phone for work tomorrow, yet don't want to lose all of my stuff. Please halp!

Try pull folders I.e. Dcim folder instead of the whole camera folder. If all else fails try individual files
Sent from my GT-P7310 using Tapatalk 2

I tried pulling the missing individual folders and it didn't work. All I can figure is that it has something to do with the syntax of the file/folder names, similar to the 8.3 issues between windows and dos, of many years ago.
Thank you, though, for your reply!

Have you tried reinstalling adb drivers. I think the downfall of no external sdcard is what you see here. That's why I always sync pics with google+. Food for thought.
Sent from my GT-P7310 using Tapatalk 2

Yeah, I have. No luck.
Had to reactivate my TB...what a hassle. Hopefully, someone can come up with a fix for this. Should have done a lot more research before I flashed JB. I usually do, but I've become a bit complacent, because I've never had anything like this happen to me. Lesson learned. I just hope I can fix this without losing everything. Written a lot of excerpts for what, some day, will be my novel. F!

Can anyone, at least, point me in the right direction? I'm getting so frustrated. I know the dev forums are the place to get answers, but I also know I can't post this sort of question there, without getting deleted or, worse, chastised.

HTC-8690 said:
Can anyone, at least, point me in the right direction? I'm getting so frustrated. I know the dev forums are the place to get answers, but I also know I can't post this sort of question there, without getting deleted or, worse, chastised.
Click to expand...
Click to collapse
What command are you using?
adb pull /sdcard/
should pull everything. However (from personal experience) it won't work if you have files with weird characters in the filename.
Sent from my Galaxy Nexus using Tapatalk 2

efrant said:
What command are you using?
adb pull /sdcard/
should pull everything. However (from personal experience) it won't work if you have files with weird characters in the filename.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
No, adb pull /data/media/ From what I understand, that's where the virtual SD is.

So, I've been able to pull specific files and folders using adb, but I can't get certain folders that contain spaces in the names. Is there a special character to replace the space? If not, is there a way to rename said folders, in shell, so I can pull them?

Related

[Q] How to dump EVERYTHING via ADB?

So I unlocked the bootloader and rooted the phone, and forgot that the phone gets wiped. I downloaded a couple programs but most don't even recognize that the phone is attached.
I've read that dumping everything from the phone to an external HDD can recover pics, but I'm not to familiar with ADB commands besides reboot, bootloader, and recovery.
So, can anyone with more experience help me please?
Bump
Well if you already factory reset...aka...booted your phone up after unlocking...
Your data is gone.
adb pull / c:\phone
Or adb pull /sdcard/ c:\phone
That'll dump your entire phone or the second one will just dump the sdcard. If there is anything on there. To a folder called phone on the root of the c drive.
Sent from my Galaxy Nexus using xda premium
thedudejdog said:
adb pull / /phone/
Or adb pull /sdcard/ /phone/
That'll dump your entire phone or the second one will just dump the sdcard. If there is anything on there. To a folder called phone on the root of the c drive.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
A-hemn...
You mentioned having some difficulty getting the device recognized consistently by different programs, most likely driver issues. Follow efrant's guide here to get your driver issues sorted and ensure adb is set up correctly. To test adb type:
adb devices
which should give you a response. If not you are still having issues.
Also, be aware if you unlocked the phone with the data you need still on the phone, the data is most likely irrecoverable.
Jubakuba said:
A-hemn...
Click to expand...
Click to collapse
If you want to put it in your SDK folder, I suppose that would work too
Sent from my Galaxy Nexus using xda premium
thedudejdog said:
If you want to put it in your SDK folder, I suppose that would work too
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
That'll put it on the C:/ drive.
I don't believe adb will accept backslashes.
You cannot "dump" anything with ADB commands. The pull command will only copy files to you computer -- it will not do a bit-wise dump. So if you unlocked your device, there are no files to copy...
The dd shell command can dump partitions to somewhere on your device, but you can't dump the userdata partition because dd has no where to save it to. (I suppose it could be possible if you find some way to mount your device in Linux, or have a drive on your computer mounted in Android, but outside of /data.
And as far as I know, there are no android apps that can recover files from an ext4 partition.
Sent from my Galaxy Nexus using Tapatalk 2
Assuming your data hasn't already been wrote over or zero'd out...
Data recovery isn't exactly the easiest process.
Sent from my Galaxy Nexus using xda app-developers app
Considering how quickly the unlock process takes to complete, I think its safe to assume it does not zero out the partition. If the OP has not written much data to the partition he may get lucky and recover quite a bit of it. As efrant mentioned, if the OP can get the partition mounted in linux he could have a shot. Here is one procedure from another owner who was in a similar situation. Not for the faint of heart..but depending on how important the data was may be an option.
Thanks guys, just gave up. Lots of pics, but vids and contacts were backed up. The music was on my computer and so I didn't care about that.
Thanks to everyone that helped though.

[Q] From 4.2.1 back to 4.1.2.

Hey,
I went back to 4.1.2 (JellyBam) after using 4.2.1 (PA ROM). But there's a 0 folder inside my internal memory folder which leads to all my real files (music, pics etc etc).
So it's like.
-sdcard0
.....-0 (Folder)
..........-DCIM
..........-Downloads
..........-Music
..........-Titanium Backup
..........-etc etc etc
.....+'Music' which is empty
.....+'Downloads' which is empty
.....+etc etc etc
I searched on XDA, but the only solutions I found were:
1. copy every file to my computer, delete the 0 file (or not) and then put the copied files from my computer onto my phone. But there was no progress in the copying process as it was freezing.
2. Format everything, recovery, and some other things I didn't understand.
So I came here asking for help. Hopefully someone knows any other answer.
P.S. I know I can just chance the location of my backed-up files from TB, so there's no problem in that case.
But it is just annoying and sometimes it confuses me.
Thanks in advance :good:
I'm thinking of the same I'm not digging 4.2.1 that much.
Sent from my Galaxy Nexus using xda premium
I believe in 4.2 the /0 folder is the new location for the pseudo SD card instead of under /storage/
That's 4.2+ file structure to support multiuser and mentioned in dozens of threads. Just learn to live with it. Google knows what they're doing.
Meh well that's gonna be 4.2.1 for me...this is way too annoying with the files and folders
Rapydax said:
Meh well that's gonna be 4.2.1 for me...this is way too annoying with the files and folders
Click to expand...
Click to collapse
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Zepius said:
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Click to expand...
Click to collapse
Because change is bad obviously. Especially when it adds features.
Zepius said:
how is it annoying? you dont see really anything different other than going 1 more folder deeper.
Click to expand...
Click to collapse
I went back to CM10 (4.1.2) from CM10.1 (4.2.1) and just found it easiest to backup all my files and format the storage. Windows wasnt seeing the storage correctly until after I did that.
brooksyx said:
I went back to CM10 (4.1.2) from CM10.1 (4.2.1) and just found it easiest to backup all my files and format the storage. Windows wasnt seeing the storage correctly until after I did that.
Click to expand...
Click to collapse
How'd you do this? I'm curious to try the cm10.
Sent from my Galaxy Nexus using xda premium
What recovery are you using?
The issue is with resets and CWM recovery. The problem is your app back ups get covered under 0,0,0 and can't be restored, music apps can't see music, gallery can't see pics etc.
Switch to TWRP Open Recovery and the 0 problem goes away.
Best way to get your SD back in line is to use your PC to move everything back up where it should be. Hope this helps, freaked me out when I thought I lost my SD.
Sent from my Galaxy Nexus using Tapatalk 2
I think some of you aren't understanding the OP's question. He doesn't dislike the /0 file structure (or maybe he does, but I don't think that's the point he's making), he just doesn't want to keep it when downgrading to 4.1.2. That's perfectly understandable to me, and actually something I've been thinking about for a couple weeks.
OP- You have a few options. I think the simplest is to go ahead and flash a 4.1.2 ROM, then use a file explorer on the phone to cut from the /0 directory and paste straight into the main sdcard directory. Option 2 is to use a PC and cut and paste the same thing, but I don't know how quick it would be. Another possibility is to copy everything off your phone onto your PC, then format the storage on your phone, then copy everything from the PC back to /sdcard/. This is probably the cleanest and safest option, but also slowest. I'm sure there is also a way to do it with ADB, where you cut and paste from /0 to /sdcard/, but I'm no good with ADB so somebody else would have to give you the commands. ADB is most likely going to be the fastest method as far as file copy progress, but that's only a guess. I'm sure there are several other options I'm not aware of, but those are the ones I've thought of while thinking of doing this on my phone.
Good luck! Let me know which works for you and how it works........
I went back to a 4.1 ROM at one point and it did not immediately move everything back where it could be seen even with the latest recovery. I found that the easiest fix was to plug the phone into my computer right after the first boot and then move the data to the right folders with adb. Very quick and painless. TWRP does the fix going from 4.1 to 4.2 very nicely.
Downgrading to 4.1.2 from 4.2.1
I'm downgrading because I'm have a ton of blue tooth issues. I'm currently backing up my SD to my laptop then from win explorer I'll copy everything from /0 to the top SD directory. It's not any fun at all.
I wonder how many people will actually use the multiple users on their phone/tablet?
\m/
:cyclops:
Tablet - maybe
Phone - probably not
Sent from my Galaxy Nexus

where did my sdcard go?

so something weird happened to my phone, i somehow have 3 sd partions lol. first is the normal /sdcard but all my stuff is not there only like 3 of my recent downloads, then there is /storage/sdcard0 where there is yet again nothing but my last three downloads plus when i connect via usb whatever i transfer seems to go there. and lastly is /mnt/sdcard which has nothing yet again. now when i use twrp to install something it shows all my old downloads which i cant find in any of these three locations.
ok so as i was typing i found where all my crap is. it is in each sdcard under a folder named 0 for some reason. any way to go back to having just one sd card and having everything in there instead of this 0 folder?
javskies said:
so something weird happened to my phone, i somehow have 3 sd partions lol. first is the normal /sdcard but all my stuff is not there only like 3 of my recent downloads, then there is /storage/sdcard0 where there is yet again nothing but my last three downloads plus when i connect via usb whatever i transfer seems to go there. and lastly is /mnt/sdcard which has nothing yet again. now when i use twrp to install something it shows all my old downloads which i cant find in any of these three locations.
ok so as i was typing i found where all my crap is. it is in each sdcard under a folder named 0 for some reason. any way to go back to having just one sd card and having everything in there instead of this 0 folder?
Click to expand...
Click to collapse
This happened to me as well.
Just connect to a laptop and copy everything from the ) folder to the parent folder and it'll eventually merge everything. Delete the extraneous folders after wards.
AdriVelazquez said:
This happened to me as well.
Just connect to a laptop and copy everything from the ) folder to the parent folder and it'll eventually merge everything. Delete the extraneous folders after wards.
Click to expand...
Click to collapse
This happened to me too, and apparently between all of my gmail accounts they only saved 1 contact. Strangest thing I've seen yet.
Anyway, I was going to get all down n' nirty tonight.. and dig around in some of my recent backups to see if I can pull the files I need. However, I'm glad I read this, as there's always a much clearer solution. Thank you.
Also, I hate to do this here, but I have a post quota, apparently. Is there a way to test other options from aroma other than reinstalling? I couldn't find that other thread to ask there, or verify whether my question is relevant.
Thanks,
Sent via Optimus |G|enius
Illionaire said:
This happened to me too, and apparently between all of my gmail accounts they only saved 1 contact. Strangest thing I've seen yet.
Anyway, I was going to get all down n' nirty tonight.. and dig around in some of my recent backups to see if I can pull the files I need. However, I'm glad I read this, as there's always a much clearer solution. Thank you.
Also, I hate to do this here, but I have a post quota, apparently. Is there a way to test other options from aroma other than reinstalling? I couldn't find that other thread to ask there, or verify whether my question is relevant.
Thanks,
Sent via Optimus |G|enius
Click to expand...
Click to collapse
Of course you can test other options without reinstalling. For example, if you're on v14, which you should be since its stable, just flash the ROM again, choose the last option for wipe options so it doesn't wipe your data, and pick the additional changes you want. It'll install ontop of your current setup and not effect data.
Sent from my LG-LS970 using xda premium
The whole 0 thing is a4.2 jellybean thing.
Sent from my LG-LS970 using xda app-developers app
I had the same problem, and though it had to do with TWRP because I noticed while trying to flash stuff. This just helped me out a ton!!
evodev said:
I had the same problem, and though it had to do with TWRP because I noticed while trying to flash stuff. This just helped me out a ton!!
Click to expand...
Click to collapse
Same thing happened on my gnex when I went from 1.2 to 2.2
Sent from my LG-LS970 using xda app-developers app

Unable to transfer to pc

Basically when I try to copy things from the SD card while using the phone in MTP, it only copys an empty folder. Files wont move at all. Is there some kind of lock? Using windows 7 and I have AOKP rom. Samsung driver is installed from: http://www.samsung.com/us/support/owners/product/SGH-I747MBBATT
Lock? No. It's always finicky for me. Is it just large files, or all files?
Its all files. Also I lost my titanium backup because it turned the folder into a "file" and I couldnt change it back and deleted it before even thinking about it.
I don't know why it happened. Maybe you should learn to use adb
Edit:
Try using the 1.4.6 drivers, instead of the latest ones. They are the same ones used for the og Note, originally. Also the ones used on the S3 when it first came out. If you click on the captivate sig link in my sig, there's a link to the I717 drivers.
mrhaley30705 said:
I don't know why it happened. Maybe you should learn to use adb
Click to expand...
Click to collapse
+1 for adb.
usb is very finicky. when copying entire folders, as you said, often the folder will transfer quickly. this will be a sure sign that no data was exchanged. sure enough, the pasted folder will be empty. oddly enough, if you drag the files within the folder one-by-one to the destination device, they will transfer. just a pain, especially if there are many files within the folder.
I know how to adb but I shouldnt need to just to transfer files.
Read edit to previous post
mrhaley30705 said:
Read edit to previous post
Click to expand...
Click to collapse
I did but I was just saying, why should I have to use adb for something that should be as simple as drag/drop? I can't seem to find it though. I don't see previous version on the samsung site. Will it work if I just use the note driver?
edit:
Ok it is working now on the current normal driver. For some reason it was just happening hard before. Now its acting fine.
On another note, sometimes it says the HWID is invalid or something?
Yeah, that happens. Just reboot the computer and phone, seems to fix it for awhile.
Well as I read its the MTP thing that causes this? I like how it works because it doesn't stop me from using the phone while its transfering to my PC.
Anywho, thanks for the help and info.

Help with SDcard0/emulated/etc...

I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
treezy26 said:
I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
Click to expand...
Click to collapse
Bump. I'm having a bunch of issues with this. I went from stock rooted to AOKP, and now TWRP won't recognize my backup so that I can go back to stock. It's really annoying. I'm not having any luck with any partition I copy the backup to. Does anyone know of a way to restore stock factory partitioning? Even doing an LGNPST of ZV9 and then taking the OTA doesn't fix the partitioning. I've tried everything I can think of and I'm out of ideas.
Use a root file browser your stock storage is in mnt/shell/emulated so once your in that Ares look for your twrp folder copy the backups inside it then paste then into the twrp in sdcard0 ..... to sum up you haven't lost anything these cm/aosp ROMs create a new storage (sdcard0) so just take anything you normal store in your stock storage which is now mnt/shell/emulated and place it in sdcard0 or redirect apps looking for files to look in those places
I'm not sure about deleting those files in the stock storage though unless you have no intention in returning to stock cause if you delete them then return to stock they will be missing and vice versa
Sent from my Optimus G using xda premium
spleef said:
Use a root file browser your stock storage is in mnt/shell/emulated so once your in that Ares look for your twrp folder copy the backups inside it then paste then into the twrp in sdcard0 ..... to sum up you haven't lost anything these cm/aosp ROMs create a new storage (sdcard0) so just take anything you normal store in your stock storage which is now mnt/shell/emulated and place it in sdcard0 or redirect apps looking for files to look in those places
I'm not sure about deleting those files in the stock storage though unless you have no intention in returning to stock cause if you delete them then return to stock they will be missing and vice versa
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
That's what I did, and TWRP refuses to recognize my backup. Time to LGNPST.
Sent from my Optimus G using xda premium
treezy26 said:
I know this has been asked numerous times in alot of different threads but I was hoping by starting this someone would be kind enough to elaborate and explain exactly what is needed and what is not. I know I should have plenty of storage on my phone but it seems I dont. I have 2.23 GB left and I know I should have more. If anyone is willing to explain more in detail it would be greatly appreciated.
Edit: I am currently using Rootbox and it has been the only rom I've used since rooting my phone.
Click to expand...
Click to collapse
You likely still have the old "sd card" from a previous stock install. Use a root file explorer, like ES File Explorer, and navigate back to the root directory. You will likely have a directory called "mnt". Navigate to that folder and open the "sdcard" folder. You'll find whatever you used to have on your sd card from previous installs. I would save whatever you want to your new sd card directory and delete the entire mnt/sdcard directory. It might not allow everything to be deleted, but it should fee up that space you're missing.
*Note: The old files could be under mnt/emulated or some such directory, I dont remember. Just look around that folder to find those old files.
Hope that helps!
I'm having the same issue with this folder. I see that it is mirrored because i added a file in the sdcard0 folder it showed up in the sdcard folder. But i also found the same folders in the mnt folder. So are they all mirrored files or are they actually taking up space? Is there a way to format the space? Will the rom still boot up? Also, had that 0 folder on my sdcard, but am not able to delete it just rename the folder.
I'm running nexOGen 1.6 if it makes a difference. Hope someone can help.
thanks!

Categories

Resources