[AT&T, Rogers HTC One X, Telstra One XL] damastah:
For those of you who have flashed the ClockworkMod touch recovery which had the following issues:

Can’t mount USB in recovery

No charging while in recovery

First and foremost, there's an updated recovery you can flash linked here that supposedly doesn't have the same issue. I dont own the phone, so I cannot verify. Alternately, you can use the updated TWRP recovery linked here.The reason I'm making this post is that I've had this issue while fixing someone else's phone who failed to read the warnings before flashing. He did something which wiped his entire phone including the SD card, flashed clockworkmod touch, didnt clear the fastboot cache and couldn't boot back into recovery. The whole time he was trying to flash different recoveries and his battery was dying.

Initially, when he called, all he has to do was:

fastboot clear cache

and he would have been golden. But he continued to flash a ROM (so he says) that erased everything. He brought it to me with 14% left...

We had a race against the clock.

I figure I can solve all this with an RUU. Which I downloaded. Ran the RUU. It runs, unpacks, pushes the file, then ERROR. Low main battery power. The battery power is less than 30%. Please replace (Cant...) or recharge (Cant...) the battery then run the Rom Update Utility again.

Daaaaannnggg....

Next I:

fastboot clear cache

to regain access to recovery.

Now we move on.

Note again the issues with CWM recovery.

Can’t mount USB in recovery

No charging while in recovery (Or off?)

"...there is currently no ADB / USB access in recovery." - One X Wiki

The One X has no removable SD card. Meaning you HAVE to mount USB in order to get files to the card. OR push using ADB. We have two issues here.

Can’t mount USB in recovery.

"...there is currently no ADB / USB access in recovery."

So we had no way to get these files to his unmountable/unPushToUsingADB-able phone. Note as well that I found these issues out the hard way. Trying to push a 300+ MB ROM to the SD card that was mounted as read only. A 3 minute process. It doesnt tell you this until after it tried to push the entire file...

Meanwhile, CWM doesnt tell you the battery percentage, so we were flying blind here as to how much time we had left before the battery died.

Good thing I brought TWRP recovery with me. So I:

fastboot flash recovery twrp.img

Once I got into TWRP, I immediately went to the file browser to check the SD card and noticed that it would show me nothing. It was wiped clean.

TWRP recently updated their recovery and notice what's in the changelog.

"v2.1.7 - fix adb in recovery and issues when flashing some roms"

ADB issues. And ROM flashing issues. Again. no way to push a ROM with ADB... and oddly, frustratingly, but not surprisingly, no way to mount the SD card...

At this point I was cursing HTC and their non-removable SD cards...

One good thing about this recovery was that it DID tell me how much battery I had left. 10%

So I went around searching for another recovery without any issues and couldnt find one. I tried again pushing a file through adb and nothing.

So I sat for a while and thought. Then it hit me! Maybe I could try to boot the system, since ADB starts up while the system is booting. The phone was stuck on the HTC screen, but ADB did connect. So I:

adb push ROMfile.zip /sdcard/

wait.... wait... wait...

ERROR SD Card is read-only filesystem or something to that effect...

foiled again!

Reboot into TWRP. To my surprise, TWRP reports I have 65% Battery.

It lied. It refreshed and we were down to 8%.

I'm not one to be beat, so I didnt give up. And this guy paid $600 for this phone. I figured there must be another way to access ADB... I rebooted into regular startup and tried something I'd never done before.

adb push ROMfile.zip /system/

Fail ERROR. System mounted as read-only...

adb remount
adb push ROMfile.zip /system/

Success!

Finally! Some progress...

I rebooted into TWRP, opened file manager, went up to root, into /system and... EMPTY! WTF?!?!? Maybe it failed while my eyes were closed...

6%

Reboot>System

The phone reboots. I try pushing the file again.

adb push ROMfile.zip /system/

Fail ERROR. System mounted as read-only... ahhh. forgot...

adb remount
adb push ROMfile.zip /system/

Success!

adb reboot recovery

I rebooted into TWRP, opened file manager, went up to root, into /system and... EMPTY! WTF?!?!? I went into mount, then system. and then I saw ROMfile.zip. I moved it to the SD card.

Man... wiped the sweat off my face... Install Zip... installing. FAIL!

Aaaaaahhhhhhhhh!!!

5%

Reboot>Fastboot.

The phone reboots. So I:

fastboot flash recovery ClockWorkModRememberIDontChargeInRecoveryOrWhileThePhoneIsOff.img
fastboot reboot bootloader

I go into recovery. Cant find the ROM I push it back through adb battery is about to die, I'm sure. So I reboot into fastboot to flash TWRP to get some charge...

fastboot flash TWRPCantflashAROMButIcanCharge.img

ERROR battery too low. We were on 4%.

Daaaaaaaaaaaaaaaaaaaaaaannnnnnnnnnnnnnnnnnnnggggggggggggggg.

Soon this thing will die and I'll be left with a pretty $600 Quad core paperweight...

I'm working fast now.

fastboot reboot
adb remount
adb push ROMfile.zip /system/
adb shell
mv /system/ROMfile.zip /sdcard/
adb reboot recovery

I go into CWM, install zip from SD card>Choose Zip from SD. ROMfile.zip. Do you want to install?

-No

-No

-No

-No

-No

-No

-No

-No

-Never

-Heck no

-Frak no

-Heck yeah!

-Nope

-Nah

So of course I go for Heck yeah. (It didnt really say that BTW...)

ROM installed successfully!!!!!!!!!!!!!!!!!!!!

By this time we're all cheering in the middle of Starbucks. 2 and a half hours in...

- Reboot system now

System restarts. I see the all familiar Green HTC with white background

that had been haunting this guy for 2 days...

we wait for about 30 seconds... which feels like forever. Then we get the Colorful Nexus Boot animation. This one.

I throw my hands up!

About a minute later...

BAM!!!! My work here is done!!!!!

Beep beep! Please connect you phone to the charger. You have 2%

And we did.

And that's how I saved an HTC One X. 2% more and he would have never been able to charge let alone start his phone again... Curse you, HTC for making such a difficult phone. I still love you, though :)

Moral of the story, always have a backup ROM, never flash a recovery without knowing what you're doing and for crying out loud, read the warnings! Especially this one:

- From http://xdaforums.com/wiki/HTC_One_X#Introduction_and_WARNINGS