How to put a ROM on read-only /sdcard, while adb shell not working (HTC One X) I've been searching my _ off for two days now to find a solution for my problem, but I can't find one working for me.

What I do have right now:


NO working ROM (I believe because of a failed atempt to revert to a backup in CWM)
Access to my bootloader (unlocked through HTCDev)
Access to my recovery (Which is the latest CWM)
Fastboot/adb working
Phone boots upon the HTC logo screen
NO ROM zipfile on the SD-Card (I accidentilly deleted that, I still hate myself for that)
I've managed to push to ROM file into both /data and /system, which (of course) isn't usefull to flash from because they don't show up in CWM.


What I've tried:


Reverting to a Nandroid backup, I've 2 on the sdcard. Both don't pass the part where /system is being restored.
adb shell to push files, or mount the SD card, does not work. First I had the error saying '--exec /system/bin/sh failure: file or dir not found (2)'. I managed to push the sh file into system, (and I believe into /system/bin), and the error changed to '[...] No directory (20)' 
adb push &lt;ROM.zip&gt; /sdcard/&lt;ROM.zip&gt;; doesn't work because /sdcard is read-only.
In CWM I can't mount as USB storage, is says something about a file which can't be found.
TWRP recovery doesn't work on my device, I can touch whatever I wan't, the only button responding is the power button, which causes a locked recovery, which I can't unlock. (You need to swipe for that, which my phone seems to ignore).
I've read almost every topic on XDA and whatever Google could give me, but most solutions somewhere relied on the adb shell, or pushing into the /sdcard, or simply assume I still can mount as USB storage. :(


Does anyone have any suggestions left on howto get a ROM into the /sdcard so I can flash it? I would be thanking you forever!

Thanks in advance!
If your version of CWM recovery has the “install zip from sideload” option in the main menu (looks like such recovery version for HTC One X exists), you can use this option to install from a zip file which is stored on your computer without copying it to the SD card:


Select the “install zip from sideload” option in the recovery menu.
Run the following command on your computer:

adb sideload UPDATE.zip


where UPDATE.zip is the zip file you want to install.


You may need to update your ADB executable if it does not understand the sideload subcommand.

Note that currently there is no confirmation when the “install zip from sideload” command is selected, and also no way to abort the sideload mode once it is entered, therefore if you enter the sideload installation mode without a way to give the adb sideload UPDATE.zip command, the only way out would be to pull the battery (on some phones holding the power button for 10­­–15 seconds to force a reboot also works). Or, if you entered the sideload mode, but do not actually want to install a zip package, run something like adb sideload /dev/null, or use any small file which is not a zip package.

The sideload option is primarily made for phones which do not have internal FAT32-formatted storage, but should also work on other models. One important limitation is that the zip file is temporarily downloaded into the phone RAM (it is placed into /tmp/update.zip, which is in ramfs), therefore, depending on RAM size of your phone, you may not be able to install large packages this way.