[HTC Desire X] Monet007:
Hi folks,

I have bricked Desire X. It was unlocked and rooted. Still has stock ROM. Before 4 months comes OTA update. It was start updating (I think), but with low battery it was turned of in the middle of update. And after that problems starts. After start of phone only HTC logo remains. I can run ClockworkMod Recovery v6.0.1.4 or use fastboot or ADB. When run recovery Im getting

W:failed to mount cache (Block device required)

In reported log is following

Starting recovery on Sun Jan 6 09:52:55 1980
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (480 x 800)
ClockworkMod Recovery v6.0.1.4
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /boot emmc boot (null) 0
2 /cache ext4 cache (null) 0
3 /data ext4 userdata (null) 0
4 /misc emmc misc (null) 0
5 /recovery emmc recovery (null) 0
6 /sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 0
7 /system ext4 system (null) 0
8 /devlog ext4 devlog (null) 0
9 /internal_sdcard vfat /dev/block/mmcblk0p35 (null) 0

W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
W:Unable to get recovery.fstab info for /sd-ext during fstab generation!
I:Completed outputting fstab.
I:Processing arguments.
stat misc try 1: No such file or directory
stat misc try 2: No such file or directory
stat misc try 3: No such file or directory
stat misc try 4: No such file or directory
stat misc try 5: No such file or directory
stat misc try 6: No such file or directory
stat misc try 7: No such file or directory
stat misc try 8: No such file or directory
stat misc try 9: No such file or directory
stat misc try 10: No such file or directory
failed to stat misc
E:Can't open misc
(No such file or directory)
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/command
stat misc try 1: No such file or directory
stat misc try 2: No such file or directory
stat misc try 3: No such file or directory
stat misc try 4: No such file or directory
stat misc try 5: No such file or directory
stat misc try 6: No such file or directory
stat misc try 7: No such file or directory
stat misc try 8: No such file or directory
stat misc try 9: No such file or directory
stat misc try 10: No such file or directory
failed to stat misc
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"

ro.boot.pagesize=4096
ro.boot.lb=1
ro.boot.baseband=1.10.40.23
ro.boot.cid=HTC__032
ro.boot.devicerev=2
ro.boot.batt_poweron=die_battery
ro.boot.carrier=HTC-EastEurope
ro.boot.mid=PM6610000
ro.boot.keycaps=qwerty
ro.boot.dq=PASS
ro.boot.mode=recovery
ro.boot.serialno=SH2BWLY00975
ro.boot.bootloader=1.24.0000
ro.boot.nledhw=1
ro.serialno=SH2BWLY00975
ro.bootmode=recovery
ro.baseband=1.10.40.23
ro.bootloader=1.24.0000
ro.hardware=protou
ro.revision=128
ro.emmc=1
ro.boot.emmc=1
ro.factorytest=0
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=adb
ro.build.id=JZO54K
ro.build.display.id=cm_protou-userdebug 4.1.2 JZO54K eng.hudson.20121013.201247 test-keys
ro.build.version.incremental=eng.hudson.20121013.201247
ro.build.version.sdk=16
ro.build.version.codename=REL
ro.build.version.release=4.1.2
ro.build.date=Sat Oct 13 20:13:14 PDT 2012
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=hudson
ro.build.host=koushik-lion
ro.build.tags=test-keys
ro.product.model=protou
ro.product.brand=htc
ro.product.name=cm_protou
ro.product.device=protou
ro.product.board=protou
ro.product.cpu.abi=armeabi
ro.product.manufacturer=htc
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=unknown
ro.build.product=protou
ro.build.description=cm_protou-userdebug 4.1.2 JZO54K eng.hudson.20121013.201247 test-keys
ro.build.fingerprint=htc/cm_protou/protou:4.1.2/JZO54K/eng.hudson.20121013.201247:userdebug/test-keys
ro.build.characteristics=default
ro.cm.device=protou
ro.rommanager.developerid=cyanogenmod
keyguard.no_require_sim=true
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.cm.version=10-20121014-UNOFFICIAL-protou
ro.modversion=10-20121014-UNOFFICIAL-protou
ro.config.ringtone=CyanTone.ogg
ro.config.notification_sound=CyanMessage.ogg
ro.config.alarm_alert=CyanAlarm.ogg
ro.carrier=unknown
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.adb.qemud=1
dalvik.vm.lockprof.threshold=500
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
init.svc.ueventd=running
init.svc.recovery=running
service.adb.root=1
init.svc.adbd=running

I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
W:failed to mount cache (Block device required)
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
W:failed to mount cache (Block device required)
W:Can't unlink /cache/recovery/command

I tried:

1. install stock rom - nothing changed,

2. stock recovery - not possible, still I'm getting

fastboot flash recovery stock_recovery.img
sending 'recovery' (4272 KB)...
OKAY [ 0.823s]
writing 'recovery'...
FAILED (remote: image update error)
finished. total time: 1.946s

3. customized ICS ROM - nothing,

4. update of ROM via GoldCard in Bootloader - green progress bar was displayed, but orange progress was not changed.

HELP!

Phone status:

version: 0.5
version-bootloader: 1.24.0000 (HBOOT)
version-baseband: 1.10.40.23 (RADIO)
version-cpld: None
version-microp: None
version-main: 1.18.401.1
version-misc: PVT SHIP S-ON
serialno: SH2BWLY00975
imei: 358835049211086
meid:
product: proto
platform: HBOOT-8225
modelid: PM6610000
cidnum: HTC__032
battery-status: good
battery-voltage: 0mV
partition-layout: HTC
security: on
build-mode: SHIP
boot-mode: FASTBOOT
commitno-bootloader: dirty-46aff746
hbootpreupdate: 12
gencheckpt: 0

~ # mount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)

~ # cat /proc/mounts
cat /proc/mounts
rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0

~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 310900 48 310852 0% /dev

~ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name

179 0 3784704 mmcblk0
179 1 20 mmcblk0p1
179 2 544 mmcblk0p2
179 3 4500 mmcblk0p3
179 4 1 mmcblk0p4
179 5 30000 mmcblk0p5
179 6 12500 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 3072 mmcblk0p8
179 9 2048 mmcblk0p9
179 10 1024 mmcblk0p10
179 11 1024 mmcblk0p11
179 12 8751 mmcblk0p12
179 13 4096 mmcblk0p13
179 14 4096 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 6909 mmcblk0p16
179 17 256 mmcblk0p17
179 18 1024 mmcblk0p18
179 19 1024 mmcblk0p19
179 20 1280 mmcblk0p20
179 21 8701 mmcblk0p21
179 22 4096 mmcblk0p22
179 23 256 mmcblk0p23
179 24 2047 mmcblk0p24
179 25 980991 mmcblk0p25
179 26 1261567 mmcblk0p26
179 27 262143 mmcblk0p27
179 28 24247 mmcblk0p28
179 29 71 mmcblk0p29
179 30 256 mmcblk0p30
179 31 1155072 mmcblk0p31
179 64 7925760 mmcblk1
179 65 7920013 mmcblk1p1

~ # ls -la /dev/block/mmcblk*
ls -la /dev/block/mmcblk*
brw------- 1 root root 179, 0 Jan 6 20:49 /dev/block/mmcblk0
brw------- 1 root root 179, 1 Jan 6 20:49 /dev/block/mmcblk0p1
brw------- 1 root root 179, 10 Jan 6 20:49 /dev/block/mmcblk0p10
brw------- 1 root root 179, 11 Jan 6 20:49 /dev/block/mmcblk0p11
brw------- 1 root root 179, 12 Jan 6 20:49 /dev/block/mmcblk0p12
brw------- 1 root root 179, 13 Jan 6 20:49 /dev/block/mmcblk0p13
brw------- 1 root root 179, 14 Jan 6 20:49 /dev/block/mmcblk0p14
brw------- 1 root root 179, 15 Jan 6 20:49 /dev/block/mmcblk0p15
brw------- 1 root root 179, 16 Jan 6 20:49 /dev/block/mmcblk0p16
brw------- 1 root root 179, 17 Jan 6 20:49 /dev/block/mmcblk0p17
brw------- 1 root root 179, 18 Jan 6 20:49 /dev/block/mmcblk0p18
brw------- 1 root root 179, 19 Jan 6 20:49 /dev/block/mmcblk0p19
brw------- 1 root root 179, 2 Jan 6 20:49 /dev/block/mmcblk0p2
brw------- 1 root root 179, 20 Jan 6 20:49 /dev/block/mmcblk0p20
brw------- 1 root root 179, 21 Jan 6 20:49 /dev/block/mmcblk0p21
brw------- 1 root root 179, 22 Jan 6 20:49 /dev/block/mmcblk0p22
brw------- 1 root root 179, 23 Jan 6 20:49 /dev/block/mmcblk0p23
brw------- 1 root root 179, 24 Jan 6 20:49 /dev/block/mmcblk0p24
brw------- 1 root root 179, 25 Jan 6 20:49 /dev/block/mmcblk0p25
brw------- 1 root root 179, 26 Jan 6 20:49 /dev/block/mmcblk0p26
brw------- 1 root root 179, 27 Jan 6 20:49 /dev/block/mmcblk0p27
brw------- 1 root root 179, 28 Jan 6 20:49 /dev/block/mmcblk0p28
brw------- 1 root root 179, 29 Jan 6 20:49 /dev/block/mmcblk0p29
brw------- 1 root root 179, 3 Jan 6 20:49 /dev/block/mmcblk0p3
brw------- 1 root root 179, 30 Jan 6 20:49 /dev/block/mmcblk0p30
brw------- 1 root root 179, 31 Jan 6 20:49 /dev/block/mmcblk0p31
brw------- 1 root root 179, 4 Jan 6 20:49 /dev/block/mmcblk0p4
brw------- 1 root root 179, 5 Jan 6 20:49 /dev/block/mmcblk0p5
brw------- 1 root root 179, 6 Jan 6 20:49 /dev/block/mmcblk0p6
brw------- 1 root root 179, 7 Jan 6 20:49 /dev/block/mmcblk0p7
brw------- 1 root root 179, 8 Jan 6 20:49 /dev/block/mmcblk0p8
brw------- 1 root root 179, 9 Jan 6 20:49 /dev/block/mmcblk0p9
brw------- 1 root root 179, 64 Jan 6 22:41 /dev/block/mmcblk1
brw------- 1 root root 179, 65 Jan 6 22:41 /dev/block/mmcblk1p1

~ # tail ./etc/fstab
tail ./etc/fstab
♥ /cache ext4 rw
/dev/block/mmcblk0p26 /data ext4 rw
/dev/block/mmcblk0p25 /system ext4 rw
/dev/block/mmcblk1p1 /sdcard vfat rw

~ # tail ./etc/recovery.fstab
tail ./etc/recovery.fstab
/boot emmc boot
/cache ext4 cache
/data ext4 userdata
/misc emmc misc
/recovery emmc recovery
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
/system ext4 system
/devlog ext4 devlog
/internal_sdcard vfat /dev/block/mmcblk0p35

~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Error: Can't have overlapping partitions.

I also tried to lock phone, but it doesnt work.

c:\adb>fastboot oem lock
(bootloader) Lock failed!
FAILED (status read failed (Too many links))
finished. total time: 0.789s

My findings was ended only on one conclusion. Internal partitions were screwed up. I think it was done by OTA from ICS to JB - need more space. I can I fix missed partitions (cache..)?