[G2 and Desire Z Q&A, Help & Troubleshooting] xix xeaon:
I've had my desire z for a while now, when I got it I rooted and s-offed it and also put a custom rom on, first cyanogenmod but then I've had virtuous glite. I don't remember exactly what I did but I think I followed the HTC_Desire_Z:_Rooting guide on cyanogenmod's wiki.

Everything has been working just fine but a few days ago the phone gave me a bunch of updates (because I used the market) and I installed them, the phone frooze in the middle and I eventually pulled the battery. And then when it started again it would just say google and show two gears spinning until it eventually rebooted and did it again.

I can get into clockworkmod recovery and I've been trying to wipe and install zips (cyanogenmod 7.1.0, virtuous glite 1.0.3, virtuous sense 2.0.0) but none of them work, and I've even checked their md5 on the phone (using adb shell) so there's no corruption.

Now when I start it normally it only shows the htc logo, and eventually shuts down.

Clockworkmod recovery is version 5.0.2.7. It keeps saying:

E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log

Although it does prevent me from using it.

When attempting to install the zips, both cyanogenmod 7.1.0 and virtuous sense 2.0.0 say:

Installing update...
E:Error in /sdcard/***.zip
(Status 1)
Installation aborted.

While virtuous glite 1.0.3 appears to restart clockworkmod recovery, although it has been giving the same error as the other two before, and at some point it said "bad".

I use linux, but I have a virtual windows machine but I could not get a RUU to work, it says my phone is not connected, although I have the drivers and windows does recognize it. But I don't know if they even should work if the phone is only in the bootloader or recovery.

My phone was never branded or locked to a carrier. Here's the information from the bootloader:

VISION PVT ENG S-OFF
HBOOT-0.84.2000 (PC1011000)
MICROP-0425
RADIO-26.03.0226_M
eMMC-boot

SN-SH0CTRT00031
LCD-SO
TOUCH PANEL-ATMELC12_20aaY
Commit-adbd7a75
OS Ver.-1.34.405.5
CID-11111111
eMMC-samsung 2151MB 4407295sectors

Here's the full /tmp/recovery.log (with the repeated "start recovery" message ommited):

Starting recovery on Mon Oct 31 19:34:37 2011
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (480 x 800)
ClockworkMod Recovery v5.0.2.7
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /recovery emmc /dev/block/mmcblk0p21 (null)
2 /boot emmc /dev/block/mmcblk0p22 (null)
3 /cache ext3 /dev/block/mmcblk0p27 (null)
4 /data ext3 /dev/block/mmcblk0p26 (null)
5 /sd-ext ext3 /dev/block/mmcblk1p2 (null)
6 /sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
7 /system ext3 /dev/block/mmcblk0p25 (null)

W:Unable to get recovery.fstab info for /datadata during fstab generation!
W:Unable to get recovery.fstab info for /emmc during fstab generation!
I:Completed outputting fstab.
I:Processing arguments.
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
E:Can't mount /cache/recovery/command
I:Checking arguments.
I:device_recovery_start()
Command: "/sbin/recovery"

ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.service.adb.enable=1
ro.build.id=GRI40
ro.build.display.id=GWK74
ro.build.version.incremental=eng.koush.20111028.180155
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.7
ro.build.date=Fri Oct 28 18:02:25 PDT 2011
ro.build.date.utc=0
ro.build.type=eng
ro.build.user=koush
ro.build.host=Koushik-Lion.local
ro.build.tags=test-keys
ro.product.model=HTC Vision
ro.product.brand=htc_wwe
ro.product.name=htc_vision
ro.product.device=vision
ro.product.board=vision
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HTC
ro.product.locale.language=hdpi
ro.product.locale.region=
ro.wifi.channels=
ro.board.platform=msm7x30
ro.build.product=vision
ro.build.description=2.42.405.2 CL84109 release-keys
ro.build.fingerprint=htc_wwe/htc_vision/vision:2.3.3/GRI40/84109:user/release-keys
ro.sf.lcd_density=240
debug.fb.rgb565=0
ro.gsm.2nd_data_retry_config=max_retries=3, 2000, 2000, 2000
rild.libpath=/system/lib/librilswitch.so
rilswitch.vendorlibpath=/system/lib/libhtc_ril.so
rilswitch.ganlibpath=/system/lib/libganril.so
ro.ril.enable.a53=1
ro.ril.enable.dtm=0
ro.ril.gprsclass=10
ro.ril.hsdpa.category=10
ro.ril.hsupa.category=6
ro.ril.hsxpa=2
ro.ril.def.agps.feature=1
ro.ril.disable.fd.plmn.prefix=23402,23410,23411
ro.ril.enable.sdr=0
ro.ril.enable.gea3=0
ro.telephony.default_network=0
wifi.interface=eth0
wifi.supplicant_scan_interval=15
mobiledata.interfaces=gannet0,rmnet0,rmnet1,rmnet2
ro.opengles.version=131072
dalvik.vm.heapsize=32m
ro.ril.def.agps.mode=2
ro.ril.disable.power.collapse=1
ro.com.google.clientidbase=android-tmobile-us
ro.com.google.clientidbase.vs=android-hms-tmobile-us
ro.com.google.clientidbase.ms=android-hms-tmobile-us
ro.com.google.locationfeatures=1
ro.com.google.networklocation=1
ro.com.google.gmsversion=2.2_r5
ro.setupwizard.enable_bypass=1
dalvik.vm.lockprof.threshold=500
dalvik.vm.dexopt-flags=m=y
media.a1026.nsForVoiceRec=0
media.a1026.enableA1026=1
htc.audio.alt.enable=0
htc.audio.hac.enable=0
keyguard.no_require_sim=true
ro.rommanager.developerid=cyanogenmod
ro.url.legal=[google legal link]
ro.url.legal.android_privacy=[google privacy link]
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.config.ringtone=Playa.ogg
ro.config.notification_sound=regulus.ogg
ro.config.alarm_alert=Alarm_Beep_03.ogg
ro.modversion=CyanogenMod-7.1.0-vision-KANG
ro.kernel.android.checkjni=1
ro.setupwizard.mode=OPTIONAL
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.factorytest=0
ro.serialno=SH0CTRT00031
ro.bootmode=recovery
ro.baseband=26.03.02.26_M
ro.carrier=HTC-Nor
ro.bootloader=0.84.2000
ro.hardware=vision
ro.revision=128
init.svc.choice_fn=stopped
init.svc.recovery=running
init.svc.htcbatt=stopped
init.svc.adbd=running
ro.9kramdump=0

I:Checking for extendedcommand...
I:Skipping execution of extendedcommand, file not found...
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
W:failed to mount /dev/block/mmcblk0p27 (Invalid argument)
W:Can't unlink /cache/recovery/command

-- Installing: /sdcard/update-cm-7.1.0-vision-signed.zip
Finding update package...
I:Update location: /sdcard/update-cm-7.1.0-vision-signed.zip
Opening update package...
Installing update...
about to run program [/tmp/backuptool.sh] with 2 args
mount: mounting /dev/block/mmcblk0p25 on /system failed: Invalid argument
grep: /system/build.prop: No such file or directory
Not backing up files from incompatible version.
umount: can't umount /system: Invalid argument
Creating filesystem with parameters:
Size: 585104896
Block size: 4096
Blocks per group: 32768
Inodes per group: 7143
Inode size: 256
Journal blocks: 2232
Label:
Blocks: 142847
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/35715 inodes and 4603/142847 blocks
error: file_write: write: I/O error
E:Error in /sdcard/update-cm-7.1.0-vision-signed.zip
(Status 1)
Installation aborted.

-- Installing: /sdcard/virtuous_glite-vision-v1.0.3.zip
Finding update package...
I:Update location: /sdcard/virtuous_glite-vision-v1.0.3.zip
Opening update package...
Starting recovery on Mon Oct 31 19:39:12 2011
[same as above: filesystem table, mount warnings, ro.*, mount errors]

-- Installing: /sdcard/virtuous_sense-vision-v2.0.0.zip
Finding update package...
I:Update location: /sdcard/virtuous_sense-vision-v2.0.0.zip
Opening update package...
Installing update...

unmount of /system failed; no such volume
unmount of /data failed; no such volume
Creating filesystem with parameters:
Size: 585104896
Block size: 4096
Blocks per group: 32768
Inodes per group: 7143
Inode size: 256
Journal blocks: 2232
Label:
Blocks: 142847
Block groups: 5
Reserved block group size: 39
Created filesystem with 11/35715 inodes and 4603/142847 blocks

Virtuous Sense ROM
Developers: rmk, eViL D:

Contact/Donate: devteam@virtuousrom.com

Formatting system ...
error: file_write: write: I/O error
E:Error in /sdcard/virtuous_sense-vision-v2.0.0.zip
(Status 1)
Installation aborted.

A lot of searches has suggested running fsck.vfat (scandisk) on the sdcard, but that seems strange since md5sum confirms the correct hashes. I don't have anything capable of reading the sdcard apart from my phone, and I'm not sure how to get dosfstools or similar to run on the recovery partition.

If someone could help me out it would be most appriciated. I'm happy to provide any additional information if you tell me how to get it, although right now I need to go to bed since I've been trying to fix this all day.