yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] reignzy:
Didn't happen to me...

When I 1st got the Z I upgraded straight from .350 to .434 then root, then recovery.

Why don't you try fixing via pc suite, it will upgrade you to .434 then run root and recovery exploits again.

Don't forget to remove the /usf folder to fix nfc, I can't remember it's exact location.

That should fix it
[Xperia Z Original Android Development] snark_be:
/data/usf
[Xperia Z Original Android Development] [NUT]:
Oh i'm no newbie, i've already fixed my phone :thumbup: thanks anyway though :)
[Xperia Z Original Android Development] Vennesch:
Cache wipe

When I wipe cache my recovery stops working (.... not mounted/ can't find /recovery).... is this a known problem?

I have flashed stock, rooted, installed recovery again, flashed rom again, rooted again, flashed recovery again and now everything good.and running.

This is the third time I had to do this whole process after wiping cache (which is like stated in OP a very slow process, 15 minutes or so)..

I know I shouldn't do factory resets if I am on LB but I didn't read anything

about this major bug on wiping cache

so I am very curious what would be the cause.

Thanks in advance
[Xperia Z Original Android Development] Cxpher:
It's a known issue for the locked bootloaders. Once you wipe cache, you're never getting cwm back till you revert to a stock rom first via flashtool.
[Xperia Z Original Android Development] FiDra:
Yup, me too.

Every time the recovery hangs, I need to do the whole process again :(

Really a night mare. In some case, I cannot root the device after flashing the stock rom (without wiping data). The root progress has stuck at the Display menu.

So tired....... :crying::crying:
[Xperia Z Original Android Development] reignzy:
Try saving the cache folder to your sd card, then replace after flashing Rom...
[Xperia Z Original Android Development] Cxpher:
If this method works, I can make the installer do this everytime the cache folder acts up.

Can someone test and confirm if it does?
[Xperia Z Original Android Development] snark_be:
As I wrote earlier, it's not a problem of the /cache directory to be empty, it's a problem of the complete filesystem being gone. So you end up with only the empty mount /cache in /.
[Xperia Z Original Android Development] Cxpher:
Android recreates the cache right? So it has some mkfs.cache like utility that i can use perhaps?
[Xperia Z Original Android Development] meghanath reddy:
struck

i have backuped my phone with this recovery and now when i try to restore it stuck at sony logo

what to do now

---------- Post added at 04:28 PM ---------- Previous post was at 04:17 PM ----------

if i try to repair using pc company i am unable to connect my phone to pc

as it stuck to sony logo and

and i am unable to restart my phone plz help me
[Xperia Z Original Android Development] [NUT]:
Does your phone kinda 'flash' the sony logo?

If you connect your phone to the pc, does it register it (intermittent of course)?

Last resort is to deplete your battery, then use SUS to restore your phone as soon as your battery is empty.

Running a backup restore now myself, just to see if its a freak accident you had (like me, when updating to latest stock firmware, it went into a bootloop for me too) or that its just your phone...

-- Edit --

Well... it fubarred at restoring /cache for me, but no bootloop.

After a restoration attempt the /cache partition will no longer mount in the stock rom enviroment, i could format it while still in CWM, but not restore it without error.

After rebooting i can not enter recovery anymore, probably because of the cache partition being fubarred.
[Xperia Z Original Android Development] saud-33:
I can not entering recovery mode

*It was work great .. But suddenly I can no longer access to it !

What's the problem ؟
[Xperia Z Original Android Development] [NUT]:
Did you do a nandroid restore by any chance?
[Xperia Z Original Android Development] saud-33:
If you mean System Restore ..

I do it 2 or 3 times

تم الإرسال من جهازي C6603 بواسطة تاباتوك 2
[Xperia Z Original Android Development] [NUT]:
When you use a file explorer to look at the content of /cache, is it empty or do you see any folders?
[Xperia Z Original Android Development] saud-33:
no files on cache >> empty
[Xperia Z Original Android Development] [NUT]:
Then your nandroid restore failed like mine. The only way I could get it fixed was to use SUS to restore my phone to stock-> root again-> install cwm-> use advanced restore to restore system and data partitions only...
[Xperia Z Original Android Development] saud-33:
:( there is no way to take backup for my rom?

Send from my C6603
[Xperia Z Original Android Development] [NUT]:
You can try to move as much as you can to an external sd card, but no, a nandroid backup is nolonger possible... sorry :(
[Xperia Z Original Android Development] saud-33:
:( ok

Thanks my friend for trying help me
[Xperia Z Original Android Development] kevinkoo:
Sigh.. same problem here, I used to wipe cache after zip installation, then now I can never get into Recovery no matter how many times I tried to reinstall cwm... hmn,, besides stock rom revert, is there any other way? maybe take back the files to /cache folder?
[Xperia Z Original Android Development] [NUT]:
Thats just it, you could try, but it will always fail as /cache is a folder in the ramdisk of the kernel. The folder you now see is a mountpoint for the destroyed cache partition... no way to get it back untill CWM gets fixed or you flash stock rom back first...
[Xperia Z Original Android Development] meghanath reddy:
backup and restore

can any one say me weather this cwm can create backup and restore

if it can restore how can we restore our nandroid backup

as i tried once and failed restoring and my phone struck in boot loop and came back to stock using sus
[Xperia Z Original Android Development] [NUT]:
It has its issues, just don't restore cache, use 'advanced restore' to restore system and userdata only.
[Xperia Z Original Android Development] vibranze:
Is there any "Mount USB Storage" feature in this XZ CWM? I couldn't find it. I need to copy files from PC to XZ and doing it from fully loaded ROM is damn slow, prefer to use CWM Mount USB Storage method.

Kindly advise.
[Xperia Z Original Android Development] Montague:
Sorry what's that windows with adb driver? Is it inside the package that you provided
[Xperia Z Original Android Development] djnino4style:
How to remove this recovery? Thanks :)
[Xperia Z Original Android Development] [NUT]:
i believe it would be as simple as moving /system/bin/chargemon away/renaming it/deleting it and renaming chargemon.stock to chargemon.

That should do the job... anyone disagree?
[Xperia Z Original Android Development] danw_oz:
Depends why you need to remove the recovery. To remove any traces that you phone was rooted and had recovery would be to go through the PC Companion repair my phone
[Xperia Z Original Android Development] [NUT]:
@DooMLoRD and/or krabappel2548

I unlocked my BL and flashed DooMLoRD's v6 kernel last night and tried to restore /cache, the backup was made with the locked CWM, on my phone as a test to see what would happen. It worked just fine and /cache has been restored to perfect working order!

Having said that, it seems the recovery package for locked bootloaders (LBL) or the Sony kernel are to blame for the /cache restore problems... at least it seems to be. While using CWM on LBL it was slow in backup and restore, now with the unlocked BL its fast again...
[Xperia Z Original Android Development] hadramos:
Hi,

I just install this Recovery.

But when I want to restart my Z in recovery, he show it :

rom many flash stock recovery on boot. fix ? with disabled recovery flash in reply.

What is it ?

Thanks
[Xperia Z Original Android Development] Maddhouse:
How long should it take to wipe system on Lb becuase i have left mine for an hour and still hasnt wiped and is there any way round it / Fix ?

Is this the opition which comes up after you select reboot device (I never pay attention to it ), you want to say no every time other wise you will loose CWM recovery
[Xperia Z Original Android Development] hadramos:
Yes when I select reboot. So I always say no then. is that correct?

Why do we have this? this is valid for the bootoloader unlock?
[Xperia Z Original Android Development] Maddhouse:
If we say yes then it will delete Cwm and restore stock recovery (nothing) because on locked BL our Cwm is stored in cache and phone recognises it but with a unlocked BL with custom kernel then Cwm is built into it and can't be removed easily to the noob
[Xperia Z Original Android Development] Ritz89:
Hi i dont know if i m posting this in the ight place but i m trying to install the Jelly Bam rom on to my xperia z using CWM but every time i seem to try my phone seems to just get bricked before actually even installing the ROM the first few times it crashed whilst formatting system and the last time is when i actually was installing the ROM it just turned black and it was bricked....any ideas to why this might be happening or any solutions....i m going to try and install PAC man rom and see what happens with that one.....
[Xperia Z Original Android Development] Maddhouse:
PAC is a 4.2.2 Rom so you need a custom kernel only way of getting this to work is unlocking boot loader and installing CM based kernel, on the other hand you can try a stock based custom rom which can be used on a locked kernel. 9/10 times dev's state in des if it is suitable for Locked BL

Any one correct me if i am wrong
[Xperia Z Original Android Development] Hullie NL:
Oke...so i rooted the phone and install this cwm recovery and made a backup of phone on external sdcard...i needed to restore the backup and now its stuck at startup at the sony logo...is this normal...taking a while to continue

UPDATE

Nevermind...flashed the rom again...also could not get into recovery, still strange it did not continue the backup i made ?

That was a scary moment :eek: glad its oke now
[Xperia Z Original Android Development] :
so i flashed the recovery and everything was going fine! then yesterday i tried rebooting from the recovery and a message appeared that would you like to stop system from flashing the stock recovery next time and i chose yes! now i cannot mount the system as rw. i tried using adb, terminal and root explorer, everytime i do the phone restarts. cannot even boot into recovery now

please help
[Xperia Z Original Android Development] zippy01:
How can we remove this recovery?

Thank you
[Xperia Z Original Android Development] peschman:
Hi Guys....

Just used the descriped root-method and after a few trys it worked, so i got root but still locked boot loader...

As i have a A1 branded phone i wand tho get rid of that sh**... so probably a stock sony firmware would be best, also for coming updates.

I'm quiet sure someone already mentioned how to do that, but could maybe somone be so kind and give me a little hint how to do that in the easiest way?

thanks!!!
[Xperia Z Original Android Development] Wahad:
Hello

I have one question regarding CWM. Every time im rebooting my phone it asks me to fix some recovery thing and it tells me that stock rom can be flashed and something like that. And it offers to fix that thing

Should i fix it or just leave it as it is?
[Xperia Z Original Android Development] airjyp:
thanks . but now i unlocked my bootloader :p

[FONT="Arial ="5"]

• Sony Live with Walkman
[Xperia Z Original Android Development] [NUT]:
NEVER fix, say NO all the time. You will lose CWM and make changing /system impossible if you say yes.
[Xperia Z Original Android Development] Wahad:
Thanks.

I was clicking go back*** all the time. I don't know if im going to use it again, since I installed only 2 mods that i wanted :D
[Xperia Z Original Android Development] defsix:
If someone says yes, how would they get back CWM ? Hypothetically , if they re-rooted and had access to system folder again and tried to reapply CWM and it succeeded but they still couldn't boot to recovery , what options does this person have ?
[Xperia Z Original Android Development] Maddhouse:
Well seeing that Cwm is stored in cache then wiping cache in flash tool i think, I had done this before I started to get into this and I just re flashed stock
[Xperia Z Original Android Development] defsix:
I checked out the cache folder but it's empty, usually after I delete the contents of the cache folder and dalvik folder they both rebuild on reboot. However after a reboot only the dalvik rebuilds. I guess the only way to fix this is a fresh reflash.

Sent from my brain via my keyboard on my Xperia Z
[Xperia Z Original Android Development] zippy01:
I also did this and cannot boot into recovery however I can still modify system files
[Xperia Z Original Android Development] [NUT]:
Cwm is not stored in cache but in /system/bin/recovery.tar and it needs /cache for the boot selection proces.

A folder called chargemon in there is needed for capturing the keypress for selecting the recovery boot. From there the recovery.tar is unpacked in the ramdisk and this alters the bootproces to load cwm. This is the reason why cache is so important for recovery boot to function right.
[Xperia Z Original Android Development] defsix:
Thanks for the info. Can you offer any suggestion as to why the cache folder isn't being rebuilt ? There used to be two folders inside, if I deleted them before they always came back.
[Xperia Z Original Android Development] [NUT]:
The current version and the latest version (6.0.3.0) of CWM both fail when trying to restore a nandroid backup or when performing a format/wipe of /cache. Some people miss the errors or simply do not read them: CWM always complains about it and the fact it cant write out logs though.

How to check if your cache partition is fubarred? Open up a terminal app and type 'mount | grep cache'. If it shows nothing in return your cache partition is not mounted on /cache and when visiting /cache with a root explorer kind of app you are looking in the mountPOINT and not the cache partition.

The safest way to restore /cache is to use a FTF and Flashtool, deselect everything except cache and flash it back. You'll notice you will be able to enter CWM again after that and the folders chargemon, recovery and lost+found return inside the mountpoint.
[Xperia Z Original Android Development] defsix:
Thanks for the info, I tried mounting it in terminal app but don't get any feedback, only (1) . I'll reflash the cache partition this evening. I'll update on completion !
[Xperia Z Original Android Development] [NUT]:
The reason why it doesn't mount is because its no longer a valid filesystem, so mount rejects the mount request. The only problem is that the android mount (busybox) does not have all of its error messages so it only does a shell error level and no message you or I could understand...

It should actually be saying something in the line of: "No or corrupt filesystem found on /dev/block/target" ... but it doesn't.
[Xperia Z Original Android Development] saud-33:
Any update coming?

This version is not stable
[Xperia Z Original Android Development] defsix:
Ok, got recovery back after flashing cache with flash tool. I tried CWM first no good, so I tried the other version and it worked. Did a full backup, fixed permissions, wiped dalvik, rebooted phone and everything good. Moved the backup to external SD card. Thought I'd just check I still had recovery, rebooted tried recover only green led then it continues to boot up. Cache folder looks good.

Will play with it later to fund out what happened this time :)

Sent from my brain via my keyboard on my Xperia Z
[Xperia Z Original Android Development] [NUT]:
Hmph... There is a lot wrong with the cwm for locked bootloaders... It works better on a unlocked bootloader. I wonder what causes the difference in behavior... :confused:
[Xperia Z Original Android Development] defsix:
It's a strange one all right. After messing with the handset a little longer, i did a force power off, (power + volume up) and try entering recovery then and it worked! So it is a little temperamental ! It's working ok for now I guess, I'm saving unlocking the bootloader for when i'm bored of stock :D
[Xperia Z Original Android Development] [NUT]:
There is a difference between the cwm ramdisk and the scripts and file locations have been moved around (in comparison to the one for the arc) in the recovery for our xz, I'm starting to suspect that might be causing this temperamental behavior...
[Xperia Z Original Android Development] venky716:
I've been having the same prob of not loading into CWM (locked BL)

Could you give me the cache folder so I could try and flash it.

Thank you
[Xperia Z Original Android Development] defsix:
If you follow http://xdaforums.com/showthread.php?p=40845515 this, it's a view posts back. Get a FTF, a flash file of your firmware, I'm on generic nl 434, so I had this from the last time. Use flashtool to flash the FW. BUT DESELECT EVERYTHING EXCEPT CACHE!, tick wipe cache too. If you leave anything else selected you'll wipe the phone, double check with scrolling up and down the list!

When that's done reboot the phone, I also rerooted, then apply CWM Or the other one.

Then you should have recovery! Sometimes it won't always boot into it, I found the best way is to do a force shutdown, power and volume +.

Hope this helps!

Sent from my brain via my keyboard on my Xperia Z
[Xperia Z Original Android Development] zippy01:
Thank you, I flashed the cache back reinstalled recovery and boots great :)
[Xperia Z Original Android Development] Maddhouse:
is there anychance this could be made in to a cwm flashable zip so after flashing new rom i can flash cwm zip to keep it when i exit, i have tried but failed
[Xperia Z Original Android Development] [NUT]:
This FTF has only the Cache partition.

This file is originally from a .434 FW, but i believe there is no difference in size or location of the cache compared to .350 FW.

Flash this file when you lost CWM due to a broken cache partition, caused by a failure of CWM to format or restore the cache partition.

There is no need to wipe cache, as this one is already empty.
[Xperia Z Original Android Development] [NUT]:
Euh, how do you lose CWM then? What do you do just before losing it? :confused:
[Xperia Z Original Android Development] Maddhouse:
When I install new rom i loose Cwm I am pretty sure, it is when I select to install it wipes system, cache ect. I suppose I can just reopen this but then I have to be near my computer
[Xperia Z Original Android Development] [NUT]:
Ah, that actually makes sense, the ROM probably doesn't contain CWM or TWRP. I'll see if i can make a flashable zip for you...
[Xperia Z Original Android Development] Maddhouse:
Thank you, someone who understands what I mean it I asked in q and a couple of weeks ago and they thought I was speaking double Dutch or something
[Xperia Z Original Android Development] [NUT]:
Here you go. Be sure to have a backup of /system created before you flash this zip, just to be on the safe side, it should work OK but i did NOT test it yet, my bootloader is unlocked, I have no need for this flashable recovery myself thanks to DooMLoRD's kernel.

This actually contains the CWM 6.0.3.0 build by DooMLoRD :)

[EDIT]

That actually spawned the idea to create the second file.

Flash UPDATE_CWM_6_0_3_0.zip ONLY TO UPDATE. You need to have done the initial setup by Krabappel2548 and cpasjuste when using this updater!

The same applies to this ZIP: Be sure to have a backup of /system created before you flash this zip, just to be on the safe side, it should work OK but i did NOT test it yet, my bootloader is unlocked, I have no need for this flashable recovery myself thanks to DooMLoRD's kernel.

See a few posts later for the updated zips.
[Xperia Z Original Android Development] venky716:
I flashed the FTF using flashtool and did not wipe cache.

Then i installed first CWM and later TWRP via install.bat but i still cannot load into recovery.

I tried force shutdown (power + vol up) then started using power + vol down did not boot into recovery then tried booting into recovery using ROM toolbox then again it started normally.

Is there anything else i can try ?

---------- Post added at 07:15 PM ---------- Previous post was at 06:52 PM ----------

Ok now i flashed the original FTF for my phone which is India unbranded from here http://xdaforums.com/showthread.php?t=2212694

I was able to boot into TWRP recovery, although i had installed CWM after installing TWRP ... weird ...:confused:

Hope i'll be able to get into recovery again ...will keep u guys updated
[Xperia Z Original Android Development] Maddhouse:
Thanks for the update version but I have a system 7 error, aborting

Mounting system

Removing old clockwork

Changing permissions

Failed some permissions wasn't changed

7 error

But when I rebooted version number is on 3.0 instead on 2.8
[Xperia Z Original Android Development] [NUT]:
Funny, I must have made a typo there :p I'll fix it later and update the zips.

---------- Post added at 10:45 PM ---------- Previous post was at 10:41 PM ----------

Check with root explorer if you have recovery.tar, ric, charger and chargemon (and chargemon.stock) inside /system/bin. If so, open chargemon as text. If it's a script check the contents of /cache and see if there is a folder called lost+found in there.

Report your findings here please, I'll try to help you the best I can to get your recovery back.
[Xperia Z Original Android Development] [NUT]:
As promised, try these, they should work.
[Xperia Z Original Android Development] venky716:
I flashed a few mods now i'm getting optimizing application each time i reboot is it because i did not clear cache ?

Is there a workaround ?
[Xperia Z Original Android Development] defsix:
I wiped the cache when doing it.

Sent from my brain via my keyboard on my Xperia Z
[Xperia Z Original Android Development] venky716:
[/COLOR]

Check with root explorer if you have recovery.tar, ric, charger and chargemon (and chargemon.stock) inside /system/bin. If so, open chargemon as text. If it's a script check the contents of /cache and see if there is a folder called lost+found in there.

Report your findings here please, I'll try to help you the best I can to get your recovery back.

I have recovery,tar,ric,charger and chargemon/stock inside system/bin.

I didn't completely get the second point but i opened chargemon as text and searched for /cache i did find it but there is no lost+found in it.

---------- Post added at 12:29 AM ---------- Previous post was at 12:25 AM ----------

I too wiped cache the second time around.

The other problem 'optimising application' each time i reboot is it because of not clearing cache after flashing a mod or something else?

also have u tried wiping cache in recovery ?
[Xperia Z Original Android Development] defsix:
I have recovery,tar,ric,charger and chargemon/stock inside system/bin.

I didn't completely get the second point but i opened chargemon as text and searched for /cache i did find it but there is no lost+found in it.

---------- Post added at 12:29 AM ---------- Previous post was at 12:25 AM ----------

I too wiped cache the second time around.

The other problem 'optimising application' each time i reboot is it because of not clearing cache after flashing a mod or something else?

also have u tried wiping cache in recovery ?[/QUOTE]

I usually get that after wiping dalvik cache, i can't remember did I get that message after flashing and wiping cache.

Are you sure you deselected everything except cache?

Sent from my brain via my keyboard on my Xperia Z
[Xperia Z Original Android Development] venky716:
[/QUOTE]

I usually get that after wiping dalvik cache, i can't remember did I get that message after flashing and wiping cache.

Are you sure you deselected everything except cache?

Sent from my brain via my keyboard on my Xperia Z[/QUOTE]

Getting 'Optimizing Applications' after flashing a mod is normal, but i get it even if i reboot without flashing or getting into recovery . SIMPLE REBOOT.

Yes i deselected everything except cache and selected wipe cache, i think i had one file in the selected column don't remember which file though.