[Q] Can I access storage memory from CWM? - Samsung Galaxy Nexus

I have a Galaxy Nexus that won't boot. It goes through a boot loop. I've tried everything to try and get it working. I've wiped data/factory reset, I've formatted system and re-flashed ROMs that were already on my phone, I've tried restoring backups from several nandroid backups. It never gets past the initial Google splash screen with the unlock symbol.
I'm going to send it in for service, but I'm wondering if there's a way to try to access the flash memory to copy all the data to my computer? I've stupidly done tons of regular backups (Titanium, SMS, nandroid) to my flash memory on my phone, but never backed it up to my PC. I can see the directory structure through CWM 5.5.0.2, but I can't mount it as a USB storage device from CWM and I assume I actually have to be booted up to use ADB.
Any suggestions?

big_raji said:
I have a Galaxy Nexus that won't boot. It goes through a boot loop. I've tried everything to try and get it working. I've wiped data/factory reset, I've formatted system and re-flashed ROMs that were already on my phone, I've tried restoring backups from several nandroid backups. It never gets past the initial Google splash screen with the unlock symbol.
I'm going to send it in for service, but I'm wondering if there's a way to try to access the flash memory to copy all the data to my computer? I've stupidly done tons of regular backups (Titanium, SMS, nandroid) to my flash memory on my phone, but never backed it up to my PC. I can see the directory structure through CWM 5.5.0.2, but I can't mount it as a USB storage device from CWM and I assume I actually have to be booted up to use ADB.
Any suggestions?
Click to expand...
Click to collapse
You should be able to do adb with the device in recovery mode. I'd recommend doing something like
Code:
> adb pull /data/media sdcard
This will copy the entire contents of the pretend SDcard on the phone (/data/media) onto a new folder on your computer called "sdcard".

I don't think there's a way to access the internal memory through CWM. For CWM to do that, is that to unmount that partition, and it cannot unmount data (where the sd-cad resides) as android wouldn't run without the /data partition, or so I've heard.
Feel free to correct me if I'm wrong.

Theshawty said:
I don't think there's a way to access the internal memory through CWM. For CWM to do that, is that to unmount that partition, and it cannot unmount data (where the sd-cad resides) as android wouldn't run without the /data partition, or so I've heard.
Feel free to correct me if I'm wrong.
Click to expand...
Click to collapse
Recovery is not Android, it will run fine without the /data partition mounted (though there isn't a whole lot it would be able to do then, since that's where all your flashable goodies would reside). CWM accesses internal storage all day long when you're flashing ROMs and kernels and whatnot.

Thanks! I assumed ADB wouldn't work in recovery because I tried it quickly on a PC that didn't have the drivers installed. I plugged in it on my upstairs PC and I'm doing a very lengthy adb pull as I type this. Thanks!

Related

[Q] Error when formatting /data...

My phone was working fine until I upgraded two apps (I can't recall which ones) and my phone rebooted on its own; weird. I am running CM7 BTW.
I figured "No problem, I'll just flash my backup through Clockworkmod; not so. I keep getting "error formatting /data" regardless of any wipe, format I do.
I am not sure what to do from here. Please help. Searching revealed some RUU advice, but those were in other phone forums and I want to make sure I don't screw this up.
evil_elf said:
My phone was working fine until I upgraded two apps (I can't recall which ones) and my phone rebooted on its own; weird. I am running CM7 BTW.
I figured "No problem, I'll just flash my backup through Clockworkmod; not so. I keep getting "error formatting /data" regardless of any wipe, format I do.
I am not sure what to do from here. Please help. Searching revealed some RUU advice, but those were in other phone forums and I want to make sure I don't screw this up.
Click to expand...
Click to collapse
What version of cwm are you using?
Sent From My Optimized HTC Incredibly Dinc
It was the orange, but I upgraded it to see if it would work. uh, oh, as I write this, I fear worse...
Upgrading changed cwm to blue, but still same problems. It is almost as if the data directory has no write permissions.
I got impatient and used the ruu.exe from pvillecomp and now it gets stuck at the red eye droid screen and is on a reboot loop.
I can't get into recovery now, I get the phone icon with the red ! triangle. I figure cwm is gone now, so what, use unrevoked again? This would flash a new recovery, correct? Otherwise, how would I get the zip file onto the sd card now to flash via hboot? Even with a cwm, I imagine I will have the same formatting issues, unless the rom upate utility corrected those.
evil_elf said:
My phone was working fine until I upgraded two apps (I can't recall which ones) and my phone rebooted on its own; weird. I am running CM7 BTW.
I figured "No problem, I'll just flash my backup through Clockworkmod; not so. I keep getting "error formatting /data" regardless of any wipe, format I do.
I am not sure what to do from here. Please help. Searching revealed some RUU advice, but those were in other phone forums and I want to make sure I don't screw this up.
Click to expand...
Click to collapse
Try manually mounting /data before wiping it.
EDIT: Nevermind just read your other post about loosing cw recovery. Are you still s-off?
yeah, I tried every combination of mounting and formatting and it always failed with the same message. I am still S-off, so I imagine from here I can use unrevoked to flash cwm back onto it then I can try to restore from a saved ROM I have on my card. Should I do that?
I could copy the file to flash cwm file to my card instead I guess, but my card would have to be FAT32 I assume.
Well I flashed ClockworkMod 5.0.2.0 using HBOOT and now I am back to my original problem: Error while formatting /data! I can mount /data, but not format it, even through the mount menu option. Any ideas?
I don't know much about the file structure but does this not seem like a permissions issue to you guys? Fix permissions in CWM and factory resets don't help either.
evil_elf said:
Well I flashed ClockworkMod 5.0.2.0 using HBOOT and now I am back to my original problem: Error while formatting /data! I can mount /data, but not format it, even through the mount menu option. Any ideas?
I don't know much about the file structure but does this not seem like a permissions issue to you guys? Fix permissions in CWM and factory resets don't help either.
Click to expand...
Click to collapse
Do you have a ext2/3/4 partition on your sdcard?
cmlusco said:
Do you have a ext2/3/4 partition on your sdcard?
Click to expand...
Click to collapse
By partition, do mean directories? I formatted the card to FAT32 but did not partition it in any way. I don't believe I had separate partitions on it before, but I could be wrong. Wouldn't the partitions have shown up in my Windows OS when I plugged the card in to the reader?
evil_elf said:
Well I flashed ClockworkMod 5.0.2.0 using HBOOT and now I am back to my original problem: Error while formatting /data! I can mount /data, but not format it, even through the mount menu option. Any ideas?
I don't know much about the file structure but does this not seem like a permissions issue to you guys? Fix permissions in CWM and factory resets don't help either.
Click to expand...
Click to collapse
factory reset in hboot is different. It will probably wipe programming so you'll have to *228 1 and *228 2 to yet reprogram your phone. It'll probably wipe sdcard and emmc too. I've not tried so this is at your own risk. see if there are better options first.
Sent from my ADR6300 using Tapatalk
tiny4579 said:
factory reset in hboot is different. It will probably wipe programming so you'll have to *228 1 and *228 2 to yet reprogram your phone. It'll probably wipe sdcard and emmc too. I've not tried so this is at your own risk. see if there are better options first.
Sent from my ADR6300 using Tapatalk
Click to expand...
Click to collapse
I've already tried it before. It did not touch my card but did reset my phone's programming.
The restore function in CWM only touches the internal memory, correct?
evil_elf said:
By partition, do mean directories? If so, yes. I formatted the card to FAT32 but did not partition it in any way. I don't believe I had separate partitions on it before, but I could be wrong. Wouldn't the partitions have shown up in my Windows OS when I plugged the card in to the reader?
Click to expand...
Click to collapse
No windows would not see it if its there you would need to use a program called "gparted" on your pc to get rid of it or reformat it. Also when you tried the factory reset from hboot were you on a stock recovery then or cwm?
cmlusco said:
No windows would not see it if its there you would need to use a program called "gparted" on your pc to get rid of it or reformat it. Also when you tried the factory reset from hboot were you on a stock recovery then or cwm?
Click to expand...
Click to collapse
I tried the Factory Reset from HBOOT and also the Wipe Data/Factory Reset from CWM. Occasionally I am getting the 5 vibrations and a black screen when trying to turn off and on; battery pull allows me to boot up into ROM or HBOOT.
CM7 is working now, but the hard button bindings are screwed up along with a bunch of other stuff. CWM is able to restore the system, but fails on data so it makes sense. I can't receive calls either. I was so hoping the ruu would have fixed this...
The card should have no bearing on flashing a ROM? Or am I not understanding this?
Oh, I also tried to restore and format data manually without the card in to no avail. The Wipe Data/Factory Reset formats the data folder without errors but not the manually method of formatting or the restore method.
Could this help? http://forum.xda-developers.com/showthread.php?p=18287267
Just tried this: http://forum.xda-developers.com/showthread.php?t=1006556
Still same error.
To return my phone under warranty to a Verizon store, do I need to make sure that the stock ROM is flashed and the phone is unrooted with S-ON again? I am starting to think this is the route I am heading down and I only have a week left on my warranty.
Very short answer.........YES!!!
A kind soul helping me at http://forum.cyanogenmod.com/topic/32272-error-formatting-data-when-restoring/
*Possible Solution* If still an issue
If it is still an issue I had the same problem with my incredible.
I was playing a racing game on my phone and it just restarted on its own. When I turned it back on the phone had reset itself. Every time I would restart the phone from then on it would delete every thing I had saved like it was doing a factory reset. So I tried to do a wipe and restore and no luck. I kept getting the same errors you were getting in clockwork. I also tried the e2fsck commands from the link in the prior post and no luck.
1. I got a working HTC Incredible and booted into recovery and mounted all partitions.(/system, /data, etc.)
2. Then I used adb to pull the filesystem from the working phone with this command.
c:\android\adb pull / filesystem
This puts all the files from the phones root folder into a folder named filesystem in the same directory as the adb files.
3. After that finished I hooked the phone with the messed up partitions to the computer, booted into recovery, and mounted all partitions.
4. Then I used adb to push the filesystem from the working Incredible to the Incredible with the messed up partitions with this command.
c:\android\adb push c:\android\filesystem /
5. When it finished I rebooted the phone. It booted up and I got a few force close errors but nothing major, so I restarted and booted into recovery. When I tried to format /data it formatted like it should have.
6. Finally I downloaded the stock+ rooted rom and flashed it with clockwork and the phone booted up fine with no force closes and doesn't reset after reboot.
This worked for me and should work for anyone else that has this filesystem problem.
Can i get those files?
i dont have a working incredible. can you post a link to the working filesystem.
Thanks.
androidi1 said:
If it is still an issue I had the same problem with my incredible.
I was playing a racing game on my phone and it just restarted on its own. When I turned it back on the phone had reset itself. Every time I would restart the phone from then on it would delete every thing I had saved like it was doing a factory reset. So I tried to do a wipe and restore and no luck. I kept getting the same errors you were getting in clockwork. I also tried the e2fsck commands from the link in the prior post and no luck.
1. I got a working HTC Incredible and booted into recovery and mounted all partitions.(/system, /data, etc.)
2. Then I used adb to pull the filesystem from the working phone with this command.
c:\android\adb pull / filesystem
This puts all the files from the phones root folder into a folder named filesystem in the same directory as the adb files.
3. After that finished I hooked the phone with the messed up partitions to the computer, booted into recovery, and mounted all partitions.
4. Then I used adb to push the filesystem from the working Incredible to the Incredible with the messed up partitions with this command.
c:\android\adb push c:\android\filesystem /
5. When it finished I rebooted the phone. It booted up and I got a few force close errors but nothing major, so I restarted and booted into recovery. When I tried to format /data it formatted like it should have.
6. Finally I downloaded the stock+ rooted rom and flashed it with clockwork and the phone booted up fine with no force closes and doesn't reset after reboot.
This worked for me and should work for anyone else that has this filesystem problem.
Click to expand...
Click to collapse
Here try this one http://dinc.does-it.net/Touch_of_Blue/filesystem.zip, im interested to see if this works for you too. It seems quite a few people have been having issues with /data latley.
I get error
Code:
push: filesystem/sys/devices/platform/android_pmem.0/power/wakeup -> /sys/devices/platform/android_pmem.0/power/wakeup
failed to copy 'filesystem/sys/devices/platform/android_pmem.0/power/wakeup' to '/sys/devices/platform/android_pmem.0/power/wakeup': Operation not permitted
i get this error trying to push the filesystem. any workaround?

[Q] Using factory restore and erasing sd card contents within a custom rom

I am curious what the results will be if I use the factory restore within a custom rom . I'm currently running AOKP M5.1 . I am wondering if there are any unsightly ramifications to booting into TWRP and doing a factory restore and erasing the SD card contents? I would like to do this to free up as much space as possible and remove the left over remnants of over 20 flashes and a plethora of app installs. One question I have is will TWRP wipe its own directories?
Would this be better from a stock perspective? The only time I wiped my SD card I was on stock and I really don't care to experience any directory malfunctions or card mounting issues. Doing this within a custom rom will my device still know its a kindle lol?
Edit: I know that this will not restore to 6.3.1 I'm just looking to run AOKP in a clean fresh environment including the SD card thanks for any input
Reserved
Thepooch said:
I am curious what the results will be if I use the factory restore within a custom rom . I'm currently running AOKP M5.1 . I am wondering if there are any unsightly ramifications to booting into TWRP and doing a factory restore and erasing the SD card contents? I would like to do this to free up as much space as possible and remove the left over remnants of over 20 flashes and a plethora of app installs. One question I have is will TWRP wipe its own directories?
Would this be better from a stock perspective? The only time I wiped my SD card I was on stock and I really don't care to experience any directory malfunctions or card mounting issues. Doing this within a custom rom will my device still know its a kindle lol?
Click to expand...
Click to collapse
You cannot wipe recovery from inside recovery, only the TWRP backups on your sdcard will be lost. The sdcard is on its own partition apart from recovery and system files.
Backups are backed up on my pc also the only time I have used factory restore is when I was going to flash something new. The idea of this seems simple I just don't want it to be problematic since I won't be doing a new flash.
Thepooch said:
I am curious what the results will be if I use the factory restore within a custom rom . I'm currently running AOKP M5.1 . I am wondering if there are any unsightly ramifications to booting into TWRP and doing a factory restore and erasing the SD card contents? I would like to do this to free up as much space as possible and remove the left over remnants of over 20 flashes and a plethora of app installs. One question I have is will TWRP wipe its own directories?
Would this be better from a stock perspective? The only time I wiped my SD card I was on stock and I really don't care to experience any directory malfunctions or card mounting issues. Doing this within a custom rom will my device still know its a kindle lol?
Click to expand...
Click to collapse
Factory data reset from a ROM will wipe the /data partition. It's effectively the same as "Wipe -> Factory Reset" from TWRP.
On the other hand, if you do the equivalent from the stock software, it too will wipe the /data partition, but it will also take the SD Card contents along with it. I learned this the hard way.
kinfauns said:
Factory data reset from a ROM will wipe the /data partition. It's effectively the same as "Wipe -> Factory Reset" from TWRP.
On the other hand, if you do the equivalent from the stock software, it too will wipe the /data partition, but it will also take the SD Card contents along with it. I learned this the hard way.
Click to expand...
Click to collapse
I would like to flush the SD for a clean start music video and apps can all be restored before I stick both feet in I want to make sure that it just gives me the spring cleaning that I'm looking for
Well here's what I decided to do I figured since I had a working rom on I would do it all from the factory restore in the rom. So I clicked factory restore and erase SD card after rebooting it prompted me to set up my Google account. After it restored my account and all my apps downloaded and installed, I moved some files to my SD that I wanted back on and did a backup through twrp. All said and done I was very excited to see that I had 4 gigs of remaining space on my SD card so I managed to clear out 2 gigs of excess clutter from what I have done on my kindle. The only downside I have noticed so far is when hooking my kindle to my computer it shows G: removable disk . ADB drivers are good but its no longer listed as kindle under my computer which isn't the first time I've seen this.The way I figure no big deal adb works and I can access my SD card contents on my computer how its listed is irrelevant.
Drivers driver drivers windows sucks lol at this point they are functioning so I will not be trying to reinstall them. Later I will try another restore and wipe my SD through twrp to see if that changes probably won't make a difference I'm just gonna do it for kicks and giggles
On a device that only has 5 gigs of storage regaining 2 more gigs of play room is substantial. There was more clutter than what I anticipated I was only hoping for a half a gig and I'm certainly thrilled by 2

stuck in recovery now what?

I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
geargamer said:
I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
Click to expand...
Click to collapse
While youre in recovery, can you mount through the mounts and storage option? Im not on the recovery you are talking about but if you can mount it you can throw the rom on that way. If you cant do that you should be able to just boot up the rom thats currently on it and mount it that way. Just because you wiped everything doesnt mean that it wont boot up, it just cleared all of the data. It should load up with your previous rom.
Thank you very much. It gave me more insight on what was going on. I have my phone back up and working. I was able to flash the old recovery with odin and i hope this information will help someone else in future as well.
Sent from my SPH-L710 using xda app-developers app

Copying internal storage's data from CWM

Ok guys, long story short my cell phone stays on a loop while booting, I'm running JB 4.2 (AOKP).
I need to get some information from the internal storage before wiping the device, so far I've tried to mount the USB storage from CWM and it only shows my external SD on my computer. I tried mounting/unmounting "emmc" and "sdcard" (and pretty much every other mount point) whithout success so as a last resource I'm trying to pull the data using ADB, however when I start the adb server it doen't show any device (the device is on recovery mode at the time, CWM v5.0.2.7).
So I guess my question is, how can I get ADB to detect my cell phone in order to pull data from it while on recovery mode?
Of course, if you have any other suggestions as to how to get the data from it please let me know.
just mount the internal sd card
First an easier method would be to just flash the latest twrp via odin and then mount the internal sd card from there because the cwm your using is way outdated and has alot of problems. also i said twrp beacuse its easier to use than cwm and the layout is better

Wiped T310, no OS, unable to mount internal SD

Prior to today, I had not installed TWRP or rooted my T310 device. I believed I followed the instructions to root my device correctly (found here). Going through TWRP, I rebooted the system to install the Superuser package. I then rebooted the system, loaded up TWRP, and began to do a system wipe (followed instructions found here) to prep the flash of the rom and gapps.
I selected the following partitions to wipe: Dalvik cache, system, data and data. The instructions werent clear, so I checked both 'data' boxes.
After the wipe executed, I went to flash the rom and GAPPS I loaded to the internal sd card aaaaand... there were no .zip files. Crap. I went to reboot TWRP and it alerted me that my device does not appear to be rooted. Double crap. Not panicking, I went to mount and tried to see if I could mount the internet SD card to my device. Nothing. Windows now shows a 'Samsung_Android' device but it is listed under 'unspecified'. Reloading the drivers have done no good.
I'm guessing SuperUSer was never installed correctly *or* I did something during the reset.
I, of course, did not perform a backup prior to all of these. I have rooted my devices multiple times and it was always a breeze so why backup now? Weell...
So now I'm sitting here with a nonSU device, with no OS, no backup, and I'm unable to connect my device to Windows. Outside of loading a rom from an external SD Card, what options do I have?
jaredmac11 said:
Prior to today, I had not installed TWRP or rooted my T310 device. I believed I followed the instructions to root my device correctly (found here). Going through TWRP, I rebooted the system to install the Superuser package. I then rebooted the system, loaded up TWRP, and began to do a system wipe (followed instructions found here) to prep the flash of the rom and gapps.
I selected the following partitions to wipe: Dalvik cache, system, data and data. The instructions werent clear, so I checked both 'data' boxes.
After the wipe executed, I went to flash the rom and GAPPS I loaded to the internal sd card aaaaand... there were no .zip files. Crap. I went to reboot TWRP and it alerted me that my device does not appear to be rooted. Double crap. Not panicking, I went to mount and tried to see if I could mount the internet SD card to my device. Nothing. Windows now shows a 'Samsung_Android' device but it is listed under 'unspecified'. Reloading the drivers have done no good.
I'm guessing SuperUSer was never installed correctly *or* I did something during the reset.
I, of course, did not perform a backup prior to all of these. I have rooted my devices multiple times and it was always a breeze so why backup now? Weell...
So now I'm sitting here with a nonSU device, with no OS, no backup, and I'm unable to connect my device to Windows. Outside of loading a rom from an external SD Card, what options do I have?
Click to expand...
Click to collapse
You can either download the whole firmware and use Odin to flash or get adb setup and push a rom zip to the internal card using adb.
Sent from my SM-N900V using Tapatalk
hi,
you will need a microsd card 32gb and properly formatted that comes with a card reader for your pc.
download your rom and get it onto the card, insert the card into your device
boot to twrp, and flash,
now, if twrp still spits the no os message at you, which is an issue with twrp,
you next need to go to your wipe options, select advanced and do a full data format/wipe,
NOT SYSTEM, DATA. meaning /data and /data/media. when that completes you should be sorted
but expect your initial boot of the new rom to take a little longer.
never wipe system with twrp. the rom's updater-script will manage that function.
m
Thank you both. I lost my SD cards and card reader in a move so while that orders, I will attempt to utilize ADB. I'm pretty green but I'm certain there are guides out there..
moonbutt74 said:
hi,
you will need a microsd card 32gb and properly formatted that comes with a card reader for your pc.
download your rom and get it onto the card, insert the card into your device
boot to twrp, and flash,
now, if twrp still spits the no os message at you, which is an issue with twrp,
you next need to go to your wipe options, select advanced and do a full data format/wipe,
NOT SYSTEM, DATA. meaning /data and /data/media. when that completes you should be sorted
but expect your initial boot of the new rom to take a little longer.
never wipe system with twrp. the rom's updater-script will manage that function.
m
Click to expand...
Click to collapse
I'm having a hell of a time getting the rom to install from the SD card. I believe I am not formatting the card correctly. Is there a guide on how to do so? I have a primary partition in SD in FAT32 and the other partition as EXT4 but no luck. Any help is appreciated.
jaredmac11 said:
I'm having a hell of a time getting the rom to install from the SD card. I believe I am not formatting the card correctly. Is there a guide on how to do so? I have a primary partition in SD in FAT32 and the other partition as EXT4 but no luck. Any help is appreciated.
Click to expand...
Click to collapse
hi,
your external sdcard should be formatted as single partition fat32 unaligned,
if you running windows, use bootice, look it up
On linux , gparted may give you issues, if so, on debian at least there is another better utility
though the name escapes me at the moment, disk manager i think.
m
moonbutt74 said:
hi,
your external sdcard should be formatted as single partition fat32 unaligned,
if you running windows, use bootice, look it up
On linux , gparted may give you issues, if so, on debian at least there is another better utility
though the name escapes me at the moment, disk manager i think.
m
Click to expand...
Click to collapse
Well I was able to find a good stock firmware download, flashed that via Odin and I'm back to square 1. I am going to forego the external SD route. Perhaps too technical for me or some other hang up is abound but I am leaving that method alone for now. Thank you for your help : )

Categories

Resources