[HOW-TO] ADB Push a ROM to your phone - HTC One S

Hello all,
I've seen multiple people who recently, by one way or another, have a phone that have the bootloader unlocked, device rooted, and a recovery flashed...but for some reason you don't have a ROM flashed and your phone won't boot up past the bootanimation. If you're in that situation, this will hopefully help solve that issue.
What this thread is designed to do is inform you how to flash a ROM.zip file onto your seemingly bricked HTC One S device that you can't boot up. As you know, usually if your phone boots up, you just plug it into your computer, mount it, and just drag and drop the file. Well, for those of you that have no way to do that, I hopefully have a fix for you!
Requirements:
Unlocked Bootloader/Rooted Device
CWM Recovery flashed from fastboot.
Basic knowledge of adb/fastboot commands
Steps:
- Download your ROM of choice (referred to as ROM.zip) and place it wherever your ADB is on computer's harddrive (referred to as c:\AndroidSDK\tools)
- Boot your phone into Recovery and select the "Mounts & Storage" screen
- Plug your phone into your computer using USB Data Transfer Cable
- Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)
- Open Command Prompt on your computer by doing Start -> Run -> cmd
- In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.
- This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly. (I did not include that message in the picture below)
- Once this has completed, unplug your phone from your computer and close the Command Prompt window
- Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"
- When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.
- Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.
- Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.
- You should now be on a working HTC One S running whatever ROM you decided to flash.
Conclusion:
I hope you got your phone working again and I hope this helped. Please feel free to critique this guide as I am quite new to the HTC One S, but not new to rooting phones at all. If you have questions, please comment and ask or don't hesitate to shoot me a PM...I'm more than willing to help.
I hope this helped all of you who may be in the situation I was in and the situation I've seen a couple of people in.
Thanks for this information goes out to doktortaru, strker45, and torxx.

Don't need this tutorial as im not having this issue but wanted to say thanks for posting it. This should definitely help some people in the future! Great write up!

+1
Sent from my Transformer TF101 using xda premium

Thank you man.
Very informative for self learning!

Nice tutorial. But wrong forum.
Sent from my HTC One S using Tapatalk 2

you don't need to finish the command with rom.zip:
adb push ROM.zip /sdcard
is enough.. Also you should so the ROM.zip in the same folder as ADB, with the your picture.

Zylith I tried that when my phone was messed up, but I couldn't find the SD Card. However when I includes the name of the zip at the end, it worked.
Sent from my HTC VLE_U using xda premium

thanks for the detailed guide! the issue im having is not being able to mount /sdcard in recovery. I can successfully adb push the zip to the sdcard but when i try to flash in recovery, it gives me error mounting /sdcard.
can you post a quick guide on how to flash via fastboot the boot.img and system.img from the RUU? i think thats the only option i have at this point. and thanks again for this guide!

mrroey said:
thanks for the detailed guide! the issue im having is not being able to mount /sdcard in recovery. I can successfully adb push the zip to the sdcard but when i try to flash in recovery, it gives me error mounting /sdcard.
can you post a quick guide on how to flash via fastboot the boot.img and system.img from the RUU? i think thats the only option i have at this point. and thanks again for this guide!
Click to expand...
Click to collapse
When you click to mount /sdcard/ before you push the ROM over, what does Recovery tell you? What error is it?

So when I press mount sdcard it shows me Error mounting /sdcard. Same message when I try to format the sd card.
Adb seems.to push the file to sd card successfully in cmd. However when I go to install from zip it gives me "Cannot mount /sdcard"
I tried partitioning the sd card in recovery but that doesn't seem to have any effect.

mrroey said:
So when I press mount sdcard it shows me Error mounting /sdcard. Same message when I try to format the sd card.
Adb seems.to push the file to sd card successfully in cmd. However when I go to install from zip it gives me "Cannot mount /sdcard"
I tried partitioning the sd card in recovery but that doesn't seem to have any effect.
Click to expand...
Click to collapse
Try my solution here:
http://forum.xda-developers.com/showthread.php?t=1630459
Sent from my HTC One S using Tapatalk 2

Yea, I had trouble mounting anything prior to all of this.
I had to do Clear Storage in the bootloader, reinstall CWM Recovery and SuperSU and I got it to work. Hopefully we don't have too many more people with this issue. If we do, I'll be around to help.
I'm always trying to learn and try new things, so hopefully I'll be able to help with more stuff in the future.

just to make sure, for the T-Mobile One S folks, you guys aren't able to mount /system with adb yet right?
as in.. being able to adb push files to the /system folder ..
in the current state of our root.

I think that this thread is definitely in the RIGHT section !! And i also think it should be stickied !!
Its a very useful thread / Guide as we dont have mount USB storage option working in CWM... So if something fails, And you are left with no flashable ROM on your phone THIS guide will save your life
Thanks to the OP !!

Yes definitely this should be stickied! Saved me a lot of trouble and headache.

can you do one for mac?? please

Can this be moved/stickied possibly? This seems to be a decent size problem for many people.

if adb is too hard then droid explorer does the hard work for you.
Sent from my Amazon Kindle Fire using xda premium

Unable to see how is this tutorial helpful
Its like pushing a FILE to ur SDCARD with ADB
So the title is misleading; as installing a ROM is a different issue

om.thelostone said:
Unable to see how is this tutorial helpful
Its like pushing a FILE to ur SDCARD with ADB
So the title is misleading; as installing a ROM is a different issue
Click to expand...
Click to collapse
There are a lot of users who love to flash new things but who don´t deal with all the computer stuff every day. So when you are addicted to the install instructions but something unexpectful happens and your phone is in boot loop this guide is very useful.
When this is stickied it could a) avoid heard attacks of users who think "OMG I have bricked my phone" and b) avoid that dev threads become off topic.

Related

Bit of help please

Hi. I have a desire s I got s-off using xtc clip the phone has 2.3.3 pre installed I'm trying to root the phone I've read the guides here and tried 'superoneclick' and gingerbreak don't seem to work I don't want to install custom Rom just root the phone anyone got any 99% foolproof method of doing this with minimal loss an brain use! Thanks
Sent from my HTC Desire S using xda premium
There are various links in my signature, they should all help.
Install the adb link by extracting it to PC and the install the HTC drivers then follow the last link flash Cwm and su which will install you a custom recovery and root your device
Swyped from my Desire S using XDA Premium
Thanks. I have adb installed on pc from when I rooted an old wildfire s
Sent from my HTC Desire S using xda premium
jammy2015 said:
Thanks. I have adb installed on pc from when I rooted an old wildfire s
Click to expand...
Click to collapse
Great, let me know how you get on? or have any doubt...the only real danger is if you select the wrong recovery (you obviously need the DESIRE S one (saga)).
hiya. i did what it says here
To root:
Copy su-3.0-efgh-signed.zip to your sdcard root
Start clockworkmod recovery (instructions below)
Select "install zip from sdcard"
Then select "Choose zip from sdcard"
Then select "su-3.0-efgh-signed.zip"
Then select "Yes - install su-3.0-efgh-signed.zip" to confirm
Then go back
Then reboot.
You're rooted!
i put the zip on to the sd card waited for phone it wouldnt let me go into recovery so it did its thing i selected 'reflash' an it said it couldnt open pg88diag.nbh which was a file that was placed on there when i did s-off using xtc clip i didnt have any other options to locate the 'su-3.0-efgh-signed.zip'
what am i doing wrong?
thanks
jammy2015 said:
hiya. i did what it says here
To root:
Copy su-3.0-efgh-signed.zip to your sdcard root
Start clockworkmod recovery (instructions below)
Select "install zip from sdcard"
Then select "Choose zip from sdcard"
Then select "su-3.0-efgh-signed.zip"
Then select "Yes - install su-3.0-efgh-signed.zip" to confirm
Then go back
Then reboot.
You're rooted!
i put the zip on to the sd card waited for phone it wouldnt let me go into recovery so it did its thing i selected 'reflash' an it said it couldnt open pg88diag.nbh which was a file that was placed on there when i did s-off using xtc clip i didnt have any other options to locate the 'su-3.0-efgh-signed.zip'
what am i doing wrong?
thanks
Click to expand...
Click to collapse
Not sure what you're doing wrong.
So I'd suggest that you move any PG* files or any existing ZIP files from the root of the SD card (either rename them or move them into a new folder)
I'd also suggest that change these setting on your phone
Settings->Power->Fastboot = OFF
Settings->Applications->Development->USB debugging = ON
Then follow these steps:
Power Off device
Holding down Volume Down, press the Power button to power on Phone (which should take you into white HBOOT screen) with skateboarding Androids!
Using volume down to move cursor down onto RECOVERY
Press Power button, which should reboot phone into CWM (recovery)
Then re-try the instructions that you've shown above to flash ZIP to get root
Report back...good luck
thanks.
one step further now due to turning fastboot off!
now it says ' failed to <something> vairify signature....aborted
I used Revolutionary to initially S-Off and then root my DS. I used it again after I installed a stock ROM and lost ROOT
It's just another way to go.
jammy2015 said:
thanks.
one step further now due to turning fastboot off!
now it says ' failed to <something> vairify signature....aborted
Click to expand...
Click to collapse
Just so that I'm 100% clear:
You successfully performed this command fastboot flash recovery recovery_name.img? (obviously substituting your file name for recovery_name.img)
Are you getting from HBOOT into CWM? and CWM appears to be functioning ok?
Is it on attempting the flash the SU ZIP file that you're getting this message or before?
You successfully performed this command fastboot flash recovery recovery_name.img? (obviously substituting your file name for recovery_name.img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
have not done the above (dont quite understand it)
Is it on attempting the flash the SU ZIP file that you're getting this message or before?
^^^^^^^^^^^
its when i attempt to flash the su zip file i got that message
thanks for your help
jammy2015 said:
You successfully performed this command fastboot flash recovery recovery_name.img? (obviously substituting your file name for recovery_name.img)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
have not done the above (dont quite understand it)
Is it on attempting the flash the SU ZIP file that you're getting this message or before?
^^^^^^^^^^^
its when i attempt to flash the su zip file i got that message
thanks for your help
Click to expand...
Click to collapse
Ahh..Do you have CWM (custom recovery) installed?
The command that you didn't understand would installed CWM custom recovery for you.
If you don't have CWM custom recovery what are you using to flash the Su ZIP file with?
My previous instructions contained the following steps, which if you didn't follow correctly could be reason why you are having issues now:
You first need to download CWM recovery image file for this device to your PC.
Put the phone in Fastboot USB mode (by following instructions below
Unplug USB
Turn the device off
Hold volume down button (HOLD IT) and press power
Hboot will start.
Wait for sdcard scan to complete.
Plug in USB cord connected to the computer
Press power ONCE and Fastboot USB mode starts
Then run a CMD shell from the PC and then issue the commands into it from the directory where you have put the downloaded img file.
fastboot flash recovery cwm-4.0.1.4-saga.img
adb reboot recovery
and then re-attempt to flash the SU zip file.
Then run a CMD shell from the PC and then issue the commands into it from the directory where you have put the downloaded img file
^^^^
thats what i dont understand how to do
i was looking about here on forum and found 'android flasher' i was wondering if that would do the job cos i dont know about cmd shell
heres the link for 'android flasher' http://forum.xda-developers.com/showthread.php?t=794638
thanks again dude sorry if im a pain in the a...
jammy2015 said:
Then run a CMD shell from the PC and then issue the commands into it from the directory where you have put the downloaded img file
^^^^
thats what i dont understand how to do
i was looking about here on forum and found 'android flasher' i was wondering if that would do the job cos i dont know about cmd shell
heres the link for 'android flasher' http://forum.xda-developers.com/showthread.php?t=794638
thanks again dude sorry if im a pain in the a...
Click to expand...
Click to collapse
But, I would say that it's a great deal easier than you're thinking, I'm assuming that you're running on a PC in which case download the IMG file mentioned above and copy it to the C:\temp directory. I've never used that tool that you suggest so can't comment on it's use.
Put your device into FASTBOOT USB (following instructions detailed above)
Then select Start->Run with mouse and type in cmd (then hit <RETURN>)
or
select with mouse Start->All Programs->Accessories->Command Prompt and click
Either of these methods should open a command shell (CMD) window on screen
Enter the following commands each followed by <RETURN> into this window:
Code:
> cd c:\temp\
> fastboot flash recovery cwm-4.0.1.4-saga.img
> adb reboot recovery
does it have to go in c:\temp? cos i cant find it lol
can i just do it from C:\Users\jammy\Downloads where it is now?
thanks
jammy2015 said:
does it have to go in c:\temp? cos i cant find it lol
can i just do it from C:\Users\jammy\Downloads where it is now?
thanks
Click to expand...
Click to collapse
in the downloads folder at the end it dont say img does that matter? it just says cwm-4.0.1.4-saga
jammy2015 said:
in the downloads folder at the end it dont say img does that matter? it just says cwm-4.0.1.4-saga
Click to expand...
Click to collapse
It doesn't matter where it goes, so long as you set the directory from within the CMD session to that place so that the commands you run find it:
So run cd C:\Users\jammy\Downloads this instead of the cd c:\temp
The file is probably still called IMG it's just that your PC isn't showing the extensions (as that's how its configured). I just downloaded it myself on my PC and it's called file.img
So still type the commands as if its called file.img though
did that an i got this message:
jammy2015 said:
did that an i got this message:
Click to expand...
Click to collapse
You need to install the fastboot EXE.
You must click on the link in my signature adb&fastboot download and then extract the downloaded ZIP file's contents to the same directory where the IMG file is currently and then re-try the command!
I believe that it should then work!
cool! so open adb folder and put it all inside the cwm-4.0.1.4-saga zip folder and then try again
jammy2015 said:
cool! so open adb folder and put it all inside the cwm-4.0.1.4-saga zip folder and then try again
Click to expand...
Click to collapse
Open the ADB folder and copy the contents to the C:\Users\jammy\Downloads
directory where that previous IMG file should be.
Afraid that I'm off out now, will check on my mobile in a little bit to see how you're doing.
good luck!

Bricked phone Need Help

I flashed a ROM from the forum , but afterwards the phone didnt work normally.
I can still get into recovery, and I can get into bootloader.
The sd card I believe, can not be mounted anymore, not with mount /sdcard or with mount usb
(With my ohter htc phones, I could use these to connect to the pc whilst in recoverymode)
i do have nandroid backups on the pc, but cant get them on the phone.
When i reset the phone it hangs in the white screen: HTC quietly Brilliant "this build is for dev purp......."
Ive tried several posts about similar problems on xda, but no succes
I also tried a RUU 1.47... but it gave me an error 155.
Please help, thanx.
ADB
Lacuna666 said:
I flashed a ROM , afterwards the phone didnt work.
I can still get into recovery, and I can get into bootloader.
The sd card can not be mounted anymore, not with mount /sdcard or with mount usb
i do have nandroid backups on the pc, but cant get them on the phone.
When i reset the phone it hangs in the white screen: HTC quietly Brilliant "this build is for dev purp......."
Ive tried all the posts to be found about similar problems on xda, but no succes
I also tried a RUU 1.47... but it gave me an error 155.
Please help, thanx.
Click to expand...
Click to collapse
your post is going to get moved but before it does may I suggest re-flashing Rom then go into bootloader and fastboot flash boot.IMG. sounds like this is what you are missing
solrac.dc said:
your post is going to get moved but before it does may I suggest re-flashing Rom then go into bootloader and fastboot flash boot.IMG. sounds like this is what you are missing
Click to expand...
Click to collapse
I cant reflash a rom, i cant get anything on the phone now !
Lacuna666 said:
I cant reflash a rom, i cant get anything on the phone now !
Click to expand...
Click to collapse
Are you able to get into fastboot you can push RECOVERY, BOOT, and ZIP to SDCARD... if you can let me know and will tell you what you need to do
fabiane79 said:
Are you able to get into fastboot you can push RECOVERY, BOOT, and ZIP to SDCARD... if you can let me know and will tell you what you need to do
Click to expand...
Click to collapse
recovery; yes i can get in there
then you said "boot" : that's not in there !
I do see a "install zip from sdcard" then i get a choise of:
choose zip from sd
apply; /sdcard/update.zip
what did you want to try ?
Lacuna666 said:
recovery; yes i can get in there
then you said "boot" : that's not in there !
I do see a "install zip from sdcard" then i get a choise of:
choose zip from sd
apply; /sdcard/update.zip
what did you want to try ?
Click to expand...
Click to collapse
It sounds like you may have corrupted your SD card. similar situation happened to my friends HTC Surround and how I was able to fix was open the phone (warranty gets voided of course) and change out the SD Card.
now........i could be wrong but you may want to do what homie posted above and put your phone into "fastboot" mode and ADB push. good luck!!
solrac.dc said:
It sounds like you may have corrupted your SD card. similar situation happened to my friends HTC Surround and how I was able to fix was open the phone (warranty gets voided of course) and change out the SD Card.
now........i could be wrong but you may want to do what homie posted above and put your phone into "fastboot" mode and ADB push. good luck!!
Click to expand...
Click to collapse
Okay, but opening the phones not really an option for me.
The adb command: i assume you mean adb push (something)
Thanks anyway
ADB push is the best option. Its easiest and most effective.
Sent from ICS device!
itsmikeramsay said:
ADB push is the best option. Its easiest and most effective.
Sent from ICS device!
Click to expand...
Click to collapse
Thanks, but whats the whole command ?
Lacuna666 said:
I can still get into recovery, and I can get into bootloader.
Click to expand...
Click to collapse
That means you're not bricked.
Lacuna666 said:
Thanks, but whats the whole command ?
Click to expand...
Click to collapse
- Boot your phone into Recovery and select the "Mounts & Storage" screen
- Plug your phone into your computer using USB Data Transfer Cable
- Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)
- Open Command Prompt on your computer by doing Start -> Run -> cmd
- In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.
- This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly.
- Once this has completed, unplug your phone from your computer and close the Command Prompt window
- Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"
- When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.
- Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.
- Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.
- You should now be on a working HTC One S running whatever ROM you decided to flash.
fabiane79 said:
- Boot your phone into Recovery and select the "Mounts & Storage" screen
- Plug your phone into your computer using USB Data Transfer Cable
- Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)
- Open Command Prompt on your computer by doing Start -> Run -> cmd
- In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.
- This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly.
- Once this has completed, unplug your phone from your computer and close the Command Prompt window
- Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"
- When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.
- Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.
- Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.
- You should now be on a working HTC One S running whatever ROM you decided to flash.
Click to expand...
Click to collapse
+1,000,000
nxt said:
That means you're not bricked.
Click to expand...
Click to collapse
If it won't startup properly, i'm calling it bricked, you know what i mean.
Bricked means useless and that's what it is.
Lacuna666 said:
If it won't startup properly, i'm calling it bricked, you know what i mean.
Bricked means useless and that's what it is.
Click to expand...
Click to collapse
you should be able to do it... I F&&&& up my phone many times and was able to get it working... make sure you have the correct boot.img for the correct rom your installing that will make the phone not work...
ADB push ROM to a phone
This should really be stickied
Thanks, now ive got some stuff to try out tomorrow, i will report back !
Thanks for linking my thread.
And thanks for quoting my thread without any credit. -_-
Moved To Q&A​
This section is for development only!​
did you try cannodale's thread here
http://forum.xda-developers.com/showthread.php?t=1630459
his key is clearing storage thru stock recovery to get sdcard mounted
also on flashing ruu, i think you need to relock bootloader and have sense rom on phone--not sure you are in that position atm and not 100% sure on both these

[SD CARD][HOW TO] Cant Mount SD Card or SD Card Corrupted

For those who may be flashing ROMs, cannot mount the SD Card any more, and may have accidentally corrupted their SD Card, here are some helpful steps.
Preliminary Review - Check to see if you can mount in recovery or bootloader
First, go back to your bootloader screen and click on fastboot (reset your phone and hold the power and vol down button). Once in bootloader check your computer drives to see if the sd card is recognized
Your computer may be able to recognize the drive even if it cant open it. If thats the case, you may be able to format it from your computer (use FAT32 formatting).
Second, If you cannot see your SD Card in your ROM or from the PC, and you are using Clockwork Recovery (CW), try flashing TWRP recovery first. Do this by going through the following steps:
Step #1
Download TWRP recovery from http://teamw.in/project/twrp2/100 Make sure to download the correct version for your device
Step #2
Place the recovery file into a folder with fastboot.exe
Step #3
Reboot your phone and hold down the Vol Down Button and Power Button until your bootloader screen appears, then enter fastboot. Then connect to your computer. I find this method works best by holding down the buttons right away. If your phone is off, press the power button then immediately press and hold the power and vol off buttons again until bootloader screen shows up. Dont let go until the screen shows.
Step #4
Type
Code:
fastboot flash recovery twrp.img
but replace the twrp.img wording with the exact name of your downloaded TWRP recovery
Step #5
Enter TWRP recovery by selecting it from your bootloader screen. Then ensure the device is connected to your computer and select the Mount option and then mount your sd card.
IF you still cant see your SD Card from TWRP recovery or you get an error, proceed to the next steps. Your computer may be able to recognize the drive, even if it cant open it (if your lucky).
If your computer recognizes the drive but cant open it, you can try formatting it from your computer (make sure to format as FAT32)
If you really cant see your SD Card, and your fairly sure its corrupted, and you have no way formatting it from your computer, continue on below:
Basic Solution
Reflashing Stock Recovery to your device using fasboot, then doing a full factory reset. This would be using the method in post http://forum.xda-developers.com/showthread.php?t=1630459
PLEASE NOTE THIS METHOD WILL WIPE THE DATA FROM YOUR DEVICE AS WELL AS FROM YOUR SD CARD
This method works because custom recoveries cannot re format SD Cards on the HTC One S, only wipe data from them. However, the stock recovery does have a proprietary feature that will reformat the internal sd card if it has been corrupted.
Inotherwords:
Step #1
Download the stock recovery from: http://loadbalancing.modaco.com/download.php?file=ville_recovery_signed.img
*******Note that this file is a stock recovery for S4 devices, not S3.
Place the file into the same folder as your fastboot.exe
Step #2
On your device, go into bootloader and fastboot mode, connect your computer to the device, and type
Code:
fastboot flash recovery ville_recovery_signed.img
Step #3
Reboot into the bootloader and then choose to "clear storage" from the main screen and afterwards reset to factory defaults.
Step #4
Go back into the bootloader once step #3 is done and enter fastboot, connect your device and reflash your original custom recovery again. Your SD Card should be visible
Advanced Solution - If you do not want to wipe the data from your device
This method does not require reflashing the original recovery and factory reseting the whole phone. However, it still means that the info on your sd card will be lost. It also needs a rooted device.
This method does not require you to access your bootloader or use fastboot. You can do this while having your phone in custom recovery.
DO NOT ATTEMPT UNLESS YOU FEEL COMFORTABLE WITH THE INSTRUCTIONS. THERE ARE ALWAYS RISKS WITH FORMATTING. DO NOT HOLD ME RESPONSIBLE FOR BRICKED DEVICES. YOUR DEVICE IS LIKELY OUTSIDE OF WARRANTY ALREADY SINCE YOU WOULD HAVE UNLOCKED THE BOOTLOADER.
I have taken this solution from HTC One X forums namely from post 17 at http://forum.xda-developers.com/showthread.php?t=1647806&page=2
However, I have also confirmed (SneakyGhost's partition list for HTC One S) that the correct mmcblk0p for the HTC One S sd card is mmcblk0p36.
Step #1: Download the version of busybox listed below, unzip it and also put this in the folder with ADB before you get started. You only need to do this if you dont already have busybox installed on your HTC One S. Sometimes this busybox file can be found under /system/bin or /system/xbin if youve previously installed it. If so, replace the paths in the instructions below for that of your busybox. If you have busy box already installed in /system/bin , then you do not need to type in the paths since the adb shell automatically picks up programs in that folder
Step #2: Go to your command prompt in the folder with adb.exe . Connect your HTC One S to your computer and type
Code:
adb devices
and ensure your computer sees your HTC One S. This command should work even if you are in a custom recovery like TWRP or CW (but for gods sake, if your on CW, the first thing you should do is flash TWRP, but thats just an editorial opinion, lol).
Step #3: Type
Code:
adb push busybox /data/local/tmp
This pushes busybox to a temp folder on your HTC One S. Make sure you are pushing the busybox file and not the zip file. If you already have busy box installed you do not need to do this step. (you can delete it from this folder later if you like)
Step #4: Type
Code:
adb shell
to get into your linux shell. Then type
Code:
su
to get root access. Your command prompt should now be a # and not $.
Step #5: Type
Code:
chmod 755 /data/local/tmp/busybox
to fix permissions for busybox. You may not need to do this if you already have busy box installed with the correct permissions. If these instructions dont work with your version of busy box, try setting the permissions with this code but replace the path with the location of your busybox.
Step #6: Type
Code:
cat /proc/partitions
and just ensure you see mmcblk0p36. This is the sdcard partition for HTC One S
Step #7:Type
Code:
/data/local/tmp/busybox mkfs.vfat /dev/block/mmcblk0p36
Make sure you type this correctly. You dont want to format the wrong partition accidentally.
That should work. Pls let me know if it doesnt. If it doesnt work with your version of busybox just try using the one in the zip file below. Also remember, dont just push the zip file. Extract the busybox file from the zip and push that to your device instead.
Also, it may help to use adb through a custom recovery instead of being in your ROM (ie if it doesnt work when your phone is booted normally, try doing the steps with recovery loaded).
There are other methods to try too They would be:
Other Solutions
Other Method #1: Relocking your bootloader and using a compatible RUU with your phone. This will fully wipe your device
Other Method #2: If your computer sees your sdcard even if it cant open it when your device is connected, you can try formatting it that way (ie the way you would format any other drive on your computer)
Only use the busybox method if you are comfortable with it and if other methods have failed. You can learn more about the formatting command (ie mkfs.vfat) by googling it.
So if I got this right if I have busybox already I only have to do is step 7.
Almost, but yes, that is the key step. Although you would still want to open a terminal Window, either an adb shell or from the phone, and type su to get root, and double check to ensure the shell sees the partition. Also, I did hear in the one X forums that not every version of busy box worked. I would imagine an updated version would likely work though.
Sent from my HTC One S using xda premium
Step 4, a quicker way: adb shell su , get you into shell as root right away
AKToronto said:
Almost, but yes, that is the key step. Although you would still want to open a terminal Window, either an adb shell or from the phone, and type su to get root, and double check to ensure the shell sees the partition. Also, I did hear in the one X forums that not every version of busy box worked. I would imagine an updated version would likely work though.
Sent from my HTC One S using xda premium
Click to expand...
Click to collapse
Oh right hope I don't need it lol.
I think this should be moved to Q&A and replace the other sticky that's there.
Darknites said:
Oh right hope I don't need it lol.
I think this should be moved to Q&A and replace the other sticky that's there.
Click to expand...
Click to collapse
Im thinking it would be helpful to have this post there. Im not sure how I request to do that though. Should I PM a moderator?
AKToronto said:
Im thinking it would be helpful to have this post there. Im not sure how I request to do that though. Should I PM a moderator?
Click to expand...
Click to collapse
No idea but does sounds like a good start lol.
Darknites said:
No idea but does sounds like a good start lol.
Click to expand...
Click to collapse
I asked a moderater to review by clicking on the ! in the post, but I havent heard back yet. I also updated the post to be more n00b friendly too, and tried to cover off all sd card related issues.
AKToronto said:
I asked a moderater to review by clicking on the ! in the post, but I havent heard back yet. I also updated the post to be more n00b friendly too, and tried to cover off all sd card related issues.
Click to expand...
Click to collapse
Nice update. Ya I wish they hurry up with sorting it, the other one is a load of crap and this really should replace it.
Updated with a link to another good tutorial about pushing ROMs to the phone
Its like they don't care about stickys any more, come mods its about time this replaced the crappy one.
Cant get past the
'fastboot flash recovery ville_recovery_signed.img'
step at the moment, just keep getting 'waiting for device'.
Steveh8204 said:
Cant get past the
'fastboot flash recovery ville_recovery_signed.img'
step at the moment, just keep getting 'waiting for device'.
Click to expand...
Click to collapse
Does your bootloaderscreen say "fastboot usb" anywhere? There is an option that you have to select in your bootloader called fastboot... If it says fastboot usb then you are connected, and you shouldnt get a waiting for device error.
AKToronto said:
Does your bootloaderscreen say "fastboot usb" anywhere? There is an option that you have to select in your bootloader called fastboot... If it says fastboot usb then you are connected, and you shouldnt get a waiting for device error.
Click to expand...
Click to collapse
yea I got into the bootloader and then fast boot. ive managed to sort it now, for some reason my pc was the problem, I had to reboot my computer after a command window prompt otherwise I just got the waiting for device screen.
typical really, my laptop and phone both conspiring against me.
eventually managed to flash another recovery which did see my sdcard so all is good now.
thanks for your reply though!
AKToronto said:
For those who may be flashing ROMs, cannot mount the SD Card any more, and may have accidentally corrupted their SD Card, here are some helpful steps.
Click to expand...
Click to collapse
Dude, this works flawless!
Thought I had a soft-brick, but your instructions bring back my sd-card!
I choose the "advanced Option", it works fine....
Typing su-command generated an error message, but the other steps still functioned....
I will place link in section "helpfull links" in my signatur
Big THX to you good sir, ...
Steveh8204 said:
Cant get past the
'fastboot flash recovery ville_recovery_signed.img'
step at the moment, just keep getting 'waiting for device'.
Click to expand...
Click to collapse
Just format your phone using your PC... That's all you need to do...all those steps are overkill... Bootloader on phone... Connect to pc .. Navigate to devices on PC and format your phone...then flash recovery like stated above..
Sent from my One S using xda premium
$droyd$ said:
Just format your phone using your PC... That's all you need to do...all those steps are overkill... Bootloader on phone... Connect to pc .. Navigate to devices on PC and format your phone...then flash recovery like stated above..
Sent from my One S using xda premium
Click to expand...
Click to collapse
Some people had reported not being able to see their phone from their PC no matter what they tried... Hence the advanced steps
Dude add S3 stock recovery please.
Darknites said:
Dude add S3 stock recovery please.
Click to expand...
Click to collapse
Good point Darknites. Thank you. Do you have a link to S3 stock recovery? I dont seem to have one handy... But I did edit the OP to make that point a bit clearer (that the link is for S4 devices). Thanks again bud. Good catch.
AKToronto said:
Good point Darknites. Thank you. Do you have a link to S3 stock recovery? I dont seem to have one handy... But I did edit the OP to make that point a bit clearer (that the link is for S4 devices). Thanks again bud. Good catch.
Click to expand...
Click to collapse
Nope but a RUU will have it.

TF101G: only recovery acces HELP!

Hi all!
Yesterday I want to change my old ROM for a newer one. I downloaded the new ROM and I copied it to my micro SD. From CWM recovery I wiped the table and also I did the formats (System,data,etc) and when I tried to flash the ROM i saw that there was no "Install from external SD card" option only "from internal"....but there's no zip in there. Now my tablet don't pass ASUS logo and I' dont have (or I don't know how I can do it) option to acces to the internal memory to copy there the new ROM.
CAn please some one hel me?
Thanks a lot!
joanmv said:
Hi all!
Yesterday I want to change my old ROM for a newer one. I downloaded the new ROM and I copied it to my micro SD. From CWM recovery I wiped the table and also I did the formats (System,data,etc) and when I tried to flash the ROM i saw that there was no "Install from external SD card" option only "from internal"....but there's no zip in there. Now my tablet don't pass ASUS logo and I' dont have (or I don't know how I can do it) option to acces to the internal memory to copy there the new ROM.
CAn please some one hel me?
Thanks a lot!
Click to expand...
Click to collapse
wrong thread, this thread is NOT for posting questions. post a question you want to ask in the Q&A thread
Anyway, use EasyFlasher-0.8.3b tool to flash the stock ROM and use the latest CWM recovery for tf101. i found that the latest version (v6.0.2.1) has an option to choose whether to install it from SD card and also internal memory
TheMrcool212 said:
wrong thread, this thread is NOT for posting questions. post a question you want to ask in the Q&A thread
Anyway, use EasyFlasher-0.8.3b tool to flash the stock ROM and use the latest CWM recovery for tf101. i found that the latest version (v6.0.2.1) has an option to choose whether to install it from SD card and also internal memory
Click to expand...
Click to collapse
I'm sorry for posting in the wrong thread. Could you please move it to the correct forum?
Thank you for the answer. I've read that easyflasher was not compatible with TF101 G but may be I was a older version. I'll try it and I'll post if it works.
Thank you again!
Sent from my GT-N7100 using Tapatalk 2
Thread moved,
Remember the development section is for development threads only, if you have a question this belongs in the Q&A section
joanmv said:
I'm sorry for posting in the wrong thread. Could you please move it to the correct forum?
Thank you for the answer. I've read that easyflasher was not compatible with TF101 G but may be I was a older version. I'll try it and I'll post if it works.
Thank you again!
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
Correct, the TF101G has a different SBK so you are out of luck with EasyFlasher or anything that uses APX mode.
You have 2 options:
1 - Push the ROM you want to flash to the internal storage.
2 - Install a new recovery that supports external storage like TWRP or the Rayman's 6.X version in the development section.
Both of these involve using ADB to push/install the files when the tablet is in recovery. You will need a computer, your tablet and the USB charging cord.
On your PC, download and unzip the Naked Drivers.
Plug your tablet into the PC. It should find new hardware. Go to the Device Manager (through Control Panel - System) and look for your device. It may show up as an Android or Asus ADB device, or unknown hardware. Right click on it and update driver. Pick the driver (browse to it, do not let it scan) where you put the naked drivers. This should install a good working ADB driver.
Once that is complete, you will need to get a copy of ADB. It is in the Android SDK, but if you only need ADB, you can get it from this thread: http://forum.xda-developers.com/showthread.php?t=1955627 It also has some help on getting ADB working.
Once you get ADB downloaded, put the exe in a folder named c:\adb\.
Next, open a command prompt and type cd c:\adb followed by adb devices
At this point, it should restart adb (it may error out and say the daemon failed to start, just execute the adb devices command again) and show a recovery device connected.
Method 1
Now, you need the ROM you want to flash. Download this and put it in the c:\adb folder. I am going to call it ROM.zip.
From the command prompt type adb push ROM.zip /sdcard/
It will then push the file ROM.zip to your tablet.
From this point, you should be able to go to your recovery on your tablet and Install ZIP from SDCard and then it should show the file you just pushed to your /sdcard/.​
Method 2
Figure out what recovery you want to flash and you will need the blob file. If the recovery has a zip version that flashes via recovery, you can use method 1 to push it to your tablet. If the recovery only has a blob version (like TWRP) you will need to install it using dd.
First, download the recovery. I am going to save it as c:\adb\RECOVERY.blob
In a command prompt, type adb push RECOVERY.blob /sdcard/
Once complete, type adb shell and you will get a [email protected]# prompt.
Type dd if=/sdcard/RECOVERY.blob of=/dev/block/mmcblk0p4
Once that completes type adb reboot
The tablet will now reboot. Do not try to enter recovery immediately, be sure to let the progress indicator complete on the Eee Pad screen. This is where it actually flashes the new recovery.
Once that completes, hold VOL DOWN and POWER for 12-15 seconds, then release and tap VOL UP when you see the white text. This will boot you into (hopefully) your new recovery.
​

[Q&A] [HOW-TO] ADB Push a ROM to your phone

Q&A for [HOW-TO] ADB Push a ROM to your phone
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [HOW-TO] ADB Push a ROM to your phone. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
brwetz said:
Hello all,
I've seen multiple people who recently, by one way or another, have a phone that have the bootloader unlocked, device rooted, and a recovery flashed...but for some reason you don't have a ROM flashed and your phone won't boot up past the bootanimation. If you're in that situation, this will hopefully help solve that issue.
What this thread is designed to do is inform you how to flash a ROM.zip file onto your seemingly bricked HTC One S device that you can't boot up. As you know, usually if your phone boots up, you just plug it into your computer, mount it, and just drag and drop the file. Well, for those of you that have no way to do that, I hopefully have a fix for you!
Requirements:
Unlocked Bootloader/Rooted Device
CWM Recovery flashed from fastboot.
Basic knowledge of adb/fastboot commands
Steps:
- Download your ROM of choice (referred to as ROM.zip) and place it wherever your ADB is on computer's harddrive (referred to as c:\AndroidSDK\tools)
- Boot your phone into Recovery and select the "Mounts & Storage" screen
- Plug your phone into your computer using USB Data Transfer Cable
- Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)
- Open Command Prompt on your computer by doing Start -> Run -> cmd
- In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.
- This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly. (I did not include that message in the picture below)
- Once this has completed, unplug your phone from your computer and close the Command Prompt window
- Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"
- When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.
- Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.
- Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.
- You should now be on a working HTC One S running whatever ROM you decided to flash.
Conclusion:
I hope you got your phone working again and I hope this helped. Please feel free to critique this guide as I am quite new to the HTC One S, but not new to rooting phones at all. If you have questions, please comment and ask or don't hesitate to shoot me a PM...I'm more than willing to help.
I hope this helped all of you who may be in the situation I was in and the situation I've seen a couple of people in.
Thanks for this information goes out to doktortaru, strker45, and torxx.
Click to expand...
Click to collapse
Hey i'm in a similar situation. Tried flashing a ccustom rom on my Lg Optimus G. Everything went fine but phone stucked on LG logo. Thought factory reset will fix it so I did the factory reset. But unfortunately it didnt and my Backup was erased by the factory reset. I have a copy on my laptop but cant conenct my phone to pc in cwm. Mount USB storage doesnt works..
+1
MC DEV V7 is out... Check it
Galaxy GT-S7582 dous 2 problem
i got this kind of Galaxy I cant use download mod and recovery mod .. !!!
how can i fix my phone without these steps ???
thank you very much sir...
this post was very useful .. with the help of adb i flashd new rom i my xperia .. as otherwise i was very hopeless as my previous rom was not booting and i was stuck in a bootloop situation ....
but before flashing a new rom , wipe the previous os... it works ..
...and after, how can erase the ROM?
Excellent guide .. thank you very much, it helped me a lot. Now I have a question. How do I delete the ROM? can not find the folder where it is stored .. do not know if it's within the system. Do not know how to delete it. Thank you!

Categories

Resources