[Q] How to mount sdcard in ICS Encrypted phone? - Nexus S Q&A, Help & Troubleshooting

I was using a CM9 Nightlies. My company requires us to encrypt our phone.
Now that I was trying to update my phone to the latest version of CM9, I found I couldn't mount /sdcard in CWM recovery...
Is there anyway either to de-encrypt the phone without full-wipe or mount encrypted /sdcard in CWM?

By encrypting your phone you are unable to mount /sdcard currently(stock recovery can flash through it) and the only way you could do it is a full wipe or mounting a "fake" sdcard(idk how to, sorry)
So in short, you pretty much need to full wipe to update
Sent from my ice cream powered Nexus S

I'm running CWM with AOKP and recently encrypted for work policies and now that I want to upgrade and flash a new ROM it is stating that the sd card is unable to be mounted, even after a full wipe in CWM. What is needed? I don't mind wiping but would rather not lose what was on my sd card (titanium backups, etc)
Thanks in advance!

You need to do it within android. Did you do a cwm backup before wiping?

yes, I have a nandroid but it will not restore due to the inability to mount sd storage. Actually it can't even load the option to restore from a nandroid.

Good, now let's hope that actually helps. Unsure if anyone else has tried, but maybe it'll let you flash a new ROM and decrypt it through there. Worst case scenario you end up in the same position as now and you'll have to do an sd wipe, unless someone else knows different. As on the Nexus S the sdcard is seperate to the /data partition (unlike the GN), it flashing a fastboot image shouldn't erase it.
Try to flash a ROM via fastboot images which you can find here. Select your phone and choose an ICS fastboot image (not full ROM, update, etc - must be fastboot). You'll want to download the appropriate image and store it on your computer, then extract the archive until you end up with several files and another archive. You want to have boot.img, system.img and userdata.img ready. Use the following commands in fastboot mode:
fastboot flash boot boot.img
fastboot flash system system.img
[try to boot - if fails, continue]
fastboot flash data userdata.img
The last one should be correct, but maybe it is userdata. Havn't actually tried that one myself - it may not even be necessary (try booting it without this first, if it doesn't work you may need to do this). You can also use the fastboot -w update method but i wouldn't recommend it this time just so we know exactly what is being flashed. After this, boot into android and hope it asks you for decryption information.
edit: also, if those commands don't work, you'll need to flash the contained radio.img and recovery.img files too. It might be picky.

Thanks for the advice. If I flash the stock image via fastboot it sounds like I will lose root and custom recovery since it flashes the bootloader, correct? Will this also wipe my sd card?
If so I may just try to format my sd card in Android so that will be all that I lose versus having to reroot and install CWM again.
Thanks again for your time and info. Very helpful.
*Thanked*

katmandu421 said:
Thanks for the advice. If I flash the stock image via fastboot it sounds like I will lose root and custom recovery since it flashes the bootloader, correct? Will this also wipe my sd card?
If so I may just try to format my sd card in Android so that will be all that I lose versus having to reroot and install CWM again.
Thanks again for your time and info. Very helpful.
*Thanked*
Click to expand...
Click to collapse
You will lose all you data, it will be as if you just bought it, your SD card is NOT wiped
You will only lose recovery as a result of the stock rom script
Oh and you only have to flash boot.img, system.img and userdata.img
Sent from my ice cream powered Nexus S

Thanks guys. Got it flashed to stock and booted (had to use fastboot flash userdata userdata.img, btw) but I did not get any prompt to enter encryption password, and I now have no usb storage showing. I don't even get the "unmounted" icon like I had before. Not sure whats going on.
Any thoughts?
EDIT: I even tried all of these commands as well after I read somewhere it is the bootloader preventing the encrypted sd card from being read
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot erase cache
Still unable to mount sd card. Man this sucks. Can't use my camera and many apps are kinda hosed without sd card support.
EDIT 2: I tried going into recovery just to see what was there (power on + volume up, then selecting "Recovery" and I got the android with the exclamation point. I guess that means there is no custom recovery anymore which is good but I thought there was a white screen that went into checking for update.zips automatically when you select the stock recovery.

MuthaF$%er...
I just got a pop up stating that the sd card was in an unsupported format and that I should reformat it. I did and all looks good now, but am unrooted and no recovery...dammit.
Guess I should've done that the other day before going through all the fast boot steps. Lost my data either way. Oh well, most was in the cloud anyways.
Thanks again for all the help. Now I know how to use fastboot at least

Related

My phone is crippled... Mounting from recovery

Hey guys,
I flashed to the 5.01H dream build, didn't like it, and tried a nandroid recovery back to the latest JFW.
Now I'm getting the hanging G1. I've tried wiping but it still hangs. My SD card no longer has update.zip, because I deleted it upon sucessful launch of the 5.01H. I don't have a microSD card reader and was wondering how I can mount the sd card to usb from the recovery console, which I can get to.
I'm tried searching around but can't find a clear answer, and my linux knowledge is basically nill.
Thanks for your help!
plug your phone in..
using fastboot type the following
1. fastboot erase system -w
2. fastboot erase boot
after this... use your nandroid images and do this:
1. fastboot flash system system.img
2. fastboot flash boot boot.img
3. fastboot flash userdata userdata.img
4. fastboot reboot
I feel like a total idiot. I just realized that I did not flash the boot and userdata images when I did my nandroid restore.
Thank you, you're a lifesaver!
P.S. The 3rd step actually was fastboot flash userdata data.img
glad that helped! yeah you are right....data.img..

help !!

hello i have a big trouble with my htc one s, is a S4 variant and i try to boot normally but is always boot on the cwm 5.8! i reboot and is return to cwm! help me i try everything
Sounds like no ROM
From the sounds of it, it doesn't seem like you have a ROM installed.
A few things to remember when flashing new ROM's:
-Try not to ever flash dirty* (without wiping data, cache, dalvic cache, and system)
-ONLY wipe the system if you have another ROM loaded onto the internal SD card and ready to flash
-Make sure said ROM is COMPATIBLE with your phone. (Device model, in our case HBOOT [2.15, 2.16 have their differences]
-Try to update to the latest Recovery when flashing, unless stated otherwise in the ROM's OP. THEY WILL TELL YOU WHAT YOU NEED.
There is plenty more, but for your issue these may help.
Update your recovery through FASTBOOT and then use the MOUNT option to mount your SD card and add a new [compatible] ROM and try to flash it. (and if it has GAPPs, flash that AFTER you flash the ROM)
i dont flash anyrom, i just flash the recovery and write this command line "fastboot flash boot recovery*.img" (just a cut of the .img of the recovery) and after that, is allways reboot in recovery mode
le_numerik said:
i dont flash anyrom, i just flash the recovery and write this command line "fastboot flash boot recovery*.img" (just a cut of the .img of the recovery) and after that, is allways reboot in recovery mode
Click to expand...
Click to collapse
Code:
fastboot flash boot recovery.img
flashes recovery to boot sector. That's why your device boots into recovery every time. You should use
Code:
fastboot flash recovery recovery.img
to flash recovey correctly, unzip boot.img from your rom's zip and flash it with
Code:
fastboot flash boot boot.img
to be able to boot into your rom
Sent from my HTC One S
cool, but where is boot.img?
le_numerik said:
cool, but where is boot.img?
Click to expand...
Click to collapse
Like i said it's in your rom's zip. Which rom are you on?
Sent from my HTC One S
i dont use external rom's, just the android inside
ics or jb?
Sent from my HTC One S
the stock rom 4.1.3
le_numerik said:
the stock rom 4.1.3
Click to expand...
Click to collapse
Sorry, i couldn't get online for some time.
try the one on my attachment
thanks but twrp recovery try to install sideload.zip, my transfert work but twrp say sideload.zip is corrup :/ i try to reinstall twrp? im really in sh*t because this not my cell and i fu**ed up the telephone :'(
EDIT: OH GOD ok im too tired xD i try adb sideload but is fastboot i need, ok i install boot.img and is work well! THANK YOU ALL!!! ok now... need to install SuperSU he dont work
LOLL

[Q] recovery/bootloader issues

after i got my tf700 tablet i unlocked the bootloader and put cwm and cm11 on it, without any problems.
then i tried the same thing on my brothers tf300 i accidentally bricked it, after we bought another one i used the nvflash bricksafe setup on my tf700 so the same thing would not happen to me. then i changed from cwm to philz. later i tried to change the wallpaper in philz and my device froze, so i rebooted and found myself bricked. so i used apx to recover. i got android functionality back but now i have some issues.
1. i cant access recovery, selecting the rck command results in an error: unrecoverable bootloader error (0x00000000)
2. i cant make fastboot flash commands work to reflash a recovery, because the tablet freezes after i hit enter
i have used the "fastboot erase recovery" command too, which seemed to work...
recovery mode usability needs to be restored and possibly a fresh install of the bootloader too.
any help putting it back together either through apx recovery or the android system would be much appriciated!
Did you try to flash the stock blob? Sounds to me like a case for buster99's method:
http://forum.xda-developers.com/showthread.php?t=2179759&page=2
berndblb said:
Did you try to flash the stock blob? Sounds to me like a case for buster99's method:
http://forum.xda-developers.com/showthread.php?t=2179759&page=2
Click to expand...
Click to collapse
Buster99 said:
Reset your device with a paperclip/needle (about 2 cm down of your sdcard slot) and hold vol-down to enter fastboot
(the folowing i did at least 10 times already but didn't erase misc)
fastboot erase system
fastboot erase recovery
fastboot erase userdata
fastboot erase boot
fastboot erase misc
fastboot erase cache
fastboot -i 0x0B05 flash system c:\adb\TF300t\blob (this is my path - your's may vary depending where you stored your blob) ((also this was the first time i saw the loading bar while flashing)*
fastboot -i 0x0B05 reboot
Click to expand...
Click to collapse
thanks for the instructions but i think i will leave this as a last resort as i would rather not have to redo everything i have already done to my device, i hate starting over
A nandroid would have done the trick
Sometimes you have to learn the hard way...
I'm talking about myself: made a nandroid of my CROMi-X installation before flashing CROMBi-KK and then formatted data - without copying the nandroid to microSD - DOH!
Sent from my K00C using Tapatalk
berndblb said:
A nandroid would have done the trick
Sometimes you have to learn the hard way...
I'm talking about myself: made a nandroid of my CROMi-X installation before flashing CROMBi-KK and then formatted data - without copying the nandroid to microSD - DOH!
Sent from my K00C using Tapatalk
Click to expand...
Click to collapse
i have a nandroid, on an external source too,
but if you cant get into recovery there is no way to use (or at lease not one that i know)
kirbyonwarpstar said:
i have a nandroid, on an external source too,
but if you cant get into recovery there is no way to use (or at lease not one that i know)
Click to expand...
Click to collapse
In that case, it's easy:
Flash system blob
Flash custom recovery
Restore nandroid
Sent from my K00C using Tapatalk

[Q] Restoring Recovery to take OTA

Here is what I've done so far:
downloaded Minimal ADB, mfastboot and the correct stock image.
Extracted the recovery image and place it in the same folder as mfastboot and adb
use adb to get into the bootloader
flash the stock recovery
After doing all this when I try to boot into the recovery I get a dead android telling me no command. I got the OKAY from mfastboot so I though that would mean everything was good. Since all I want to do is to put the stock recovery back in place so the phone can take the OTA I thought this would be all I had to do. Am I missing something? Do I need to download/flash something else? I'm trying my best not to have to flash every aspect of the stock image since I want to keep the data on it.
Thanks in advance for any help

Nothing can be written on internal storage (insert sd card error on camera, etc)

I posted this on reddit...but didn't get much help...i hope the geniuses at xda can help me
As the title says, the camera app (any camera app) won't work because as you start any of them, it asks to insert the sd card, but this is a 2013 Nexus 5...so it doesn't have an sd card.
I've done a fair amount of research and the only thing that seems to be mentioned is factory reset. I've done that...both through the settings and twrp. The phone has a stock marshmallow rom.
I tried to download any other file and it won't let me download anything becauase the "sd card" is not available. So it's as if the internal sd card isn't mounted? how do I fix this? I don't have a computer nearby to do anything with adb...any help would be GREATLY appreciated...
The amount of storage according to the settings is correct (3gb used of 12 gb..16gb nexus 5)...all app permissions are correct. I've reflashed two different stock firmwares with the exact same result.
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
I'll try that tonight or tomorrow morning. Where do you suggest I download recovery.img (the stock recovery)?
Thanks for the help one way or another.. Hehe
The stock Google images are here: https://developers.google.com/android/nexus/images?hl=en
I assume the phone has an unlocked bootloader since you were able to flash stock ROMs.
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Ben36 said:
What did you do between all being fine and now this problem?
Sent from my Xperia z5 using Tapatalk
Click to expand...
Click to collapse
I sold the phone to someone I know. I had a rom (i can't remember which)...so before i sold the phone, i encrypted it, wiped it clean, flashed the stock rom (and radio)....and did a factory reset.
audit13 said:
Try this:
boot into fastboot;
run this fastboot command: fastboot erase recovery (to erase existing recovery);
run this fastboot command: fastboot flash recovery recovery.img (to flash stock recovery from stock ROM)
run this fastboot command: fastboot erase userdata;
run this fastboot command to flash the usedata img from the stock ROM: fastboot flash userdata userdata.img;
boot into stock recovery and perform a factory wipe/reset and wipe cache;
reboot.
Click to expand...
Click to collapse
Thanks! I used the factory images and flashed everything from the compressed archive and it worked..you're a lifesaver. I guess I had to go further and reset everything..but thanks again!

Categories

Resources