yashsingh1/xdaforums huggingface dataset:
[Verizon Droid Charge] quarky42:
In the current CWM (12-9-11) and in the last version, I am still seeing Fix Permissions fail, for me at least.

Here is how I produce the results (which follow):

1. Booted into CWM

2. Selected "Advanced" menu

3. Selected "Fix Permissions"

4. The script ran too fast, so I selected "Show Log" and I see the following information:

Fixing permissions...

/sbin/fix_permissions 2.04 started at 01-14-2012 08:01:37

cat: can't open '/dbdata/system/packages.xml': No such file or directory

cat: can't open '/dbdata/system/packages.xml': No such file or directory

/sbin/fix_permissions 2.04 ended at 01-14-2012 08:01:37 (Runtime:0m0s)

Done!

I am running EP4P Humble 5.0. There *is* a packages.xml and a packages.list in /dbdata/system/ with todays date on them with rw-rw-r-- permissions.
[Verizon Droid Charge] quarky42:
Followup: I tried running fix_permissions from /sbin and it isn't there. Is there a another location it could be in? It seems like it runs from recovery. Is the recovery /sbin different from the system /sbin?

---------- Post added at 10:21 AM ---------- Previous post was at 10:18 AM ----------

I don't see /dbdata in the mounts menu. I guess I can try adb shell from cwm and see what I can see, next.

Edit: /dbdata is empty when booted into CWR and running fix_permissions from the shell in CWR fails

Edit: I finally managed to get fix_permissions running by pushing the fix_permissions script to a temporary location, changed the first line to use: #!/system/bin/sh and setting permissions on the temporary script to 0755. So, this confirms for me that the script works fine when ran from a booted up Charge, but the mount point /dbdata is not mounted while in CWM and thus the script fails if you look at the logs.
[Verizon Droid Charge] imnuts:
I found the problem, and for now, the work around is to manually mount /datadata in the mounts and storage menu before running fix_permissions. I'll fix the script so that it will automatically mount it for you, which it's not currently doing.
[Verizon Droid Charge] quarky42:
I had mounted /datadata and the script still failed... it's the /dbdata that needs to be mounted.... or am I missing something?

Thanks for looking into it!
[Verizon Droid Charge] quarky42:
imnuts: Any news on this? Isn't it the /dbdata mount that needs to be mounted or was I not understanding something?
[Verizon Droid Charge] imnuts:
It is dbdata, but the script isn't setup to look in the proper location. I believe I have it fixed, but just haven't gotten a chance to put together a new file for recovery yet.
[Verizon Droid Charge] quarky42:
When executed from within the regular Android OS the script does work as expected (after changing the first line to use the proper shell for non-CWM usage.)

I believe it is checking in dbdata properly. I believe it is only the /dbdata mount point that needs to be available within CWM for the fix permissions to work, but if I am wrong please correct me. You are far more knowledgeable than I in this, I was just in "troubleshooting mode" and managed to get "fix permissions" to work in the O/S with only a change to the very first line of the script.
[Verizon Droid Charge] imnuts:
That is essentially the issue. /dbdata is mounted as /datadata in recovery though, hence the suggestion above. I just need to make a change so that it can find the file(s) it's looking for in recovery.
[Verizon Droid Charge] quarky42:
*light bulb flicks on* AHH okay. That is what I was missing and not realizing. Thank you for helping me understand.

So having CWM mount it as /dbdata or at a minimum provide a symbolic link for /dbdata to /datadata?
[Verizon Droid Charge] CGfreak102:
Is anyone else having issues with restoring backups?

So far the two times i have done a backup of the eclipse rom and then flash the update, i then try to restore my backup and then my phone soft bricks (just sits at Samsung logo)

The ROM works fine until i try and do the restore.

Not sure if that is enough info or not, but im pretty sure i can replicate the issue.
[Verizon Droid Charge] JihadSquad:
Are you on the latest version? And did you make those backups in the latest version?
[Verizon Droid Charge] CGfreak102:
yes, and yes

Odin'ed this file "1209_charge_recovery.tar.md5" for recovery
[Verizon Droid Charge] trparky:
Yeah, you're not the first one to say that backup/restore is broken in that version of CWM. Many people have downgraded to an older version of CWM because of that.

You can download it at the link below...

http://www.mediafire.com/?klk2az485mdt8u8
[Verizon Droid Charge] buhohitr:
I already learned the hard way: NEVER rely on cw recovery. It's very unreliable. I have tested both version 4(orange) and 5(blue). Version 4 is little bit more better but at the end you can't rely on them. I used "mybackup" and/or Titanium and they never failed me. For a clean install, I just Odin the rom then use "mybackup" checked full restore and that's it. I wish I can depend on cwm recovery, because they could restore very fast. I know that there are some ppl here have good success with them, but for me, I have tested this over and over and over again, at least 2 failed out of 10....just not reliable enough for me to trust.
[Verizon Droid Charge] imnuts:
0302 is posted. Fix permissions works now, as long as you have everything mounted under mounts and storage.
[Verizon Droid Charge] JihadSquad:
This still reads the backups from the last one right? Like it's still 5.x?

Sent from my handheld Linux computer using electromagnetic radiation.
[Verizon Droid Charge] imnuts:
Yes, this is still 5.0.x, so the backup should be compatible with the previous version.
[Verizon Droid Charge] scotttr:
3-2-12? ;)
[Verizon Droid Charge] buhohitr:
NICE JOB with the new cwm. I never believe or depend on this, but I gain back my confidence with this release. I have tried 4 restores, 2 full and 2 with data only and they all successfully done and fast. Now I'm going to go crazy on flashing....since it only take me a few minute to rollback. Thanks.
[Verizon Droid Charge] JihadSquad:
Only problem is there's only like 5 things to flash lol...
[Verizon Droid Charge] buhohitr:
hahaha...you are SO right!
[Verizon Droid Charge] quarky42:
Thank you very much for fixing it. It seems to work great now. (No surprise, I'm sure).
[Verizon Droid Charge] 71CH:
I don't suppose theres a way to do this without odin or on a mac?
[Verizon Droid Charge] imnuts:
I believe Heimdall is available for OS X that you could use to flash the extracted recovery.bin file.
[Verizon Droid Charge] cnoevl21:
This may be a stupid question, but is there a way to rename the backup file that doesnt break it? I did a backup and then while attached to my PC I renamed the file. After renaming the file the restore wouldnt work, "md5 read error". I want to be able to flash between roms, but ill never remember which backup is which when all i have to go on is a date. I know i either read or saw on a youtube vid that u can rename the backup file, but i cant find that post/vid to see how they did it, if there is a specific way to rename it.
[Verizon Droid Charge] buhohitr:
Make sure you don't have spaces in your file name. Also CWM manager/Rom manager can help with renaming files.
[Verizon Droid Charge] cnoevl21:
yup, that was the problem. I had a space in the name.
[Verizon Droid Charge] R4e:
Does this work with FP1?
[Verizon Droid Charge] cnoevl21:
Not sure if this matters or not, but when I do a backup I get an error saying it could not backup datadata files, not really sure what that is, but ive done a restore and it seems to still restore everything properly, but i dont know. Figured I'd just post it in case anyone else knows if this is a problem that matters or not lol.
[Verizon Droid Charge] buhohitr:
Yes, I tested last night. cwm backup/restore FP1 that is.
[Verizon Droid Charge] jasaero:
Wanted to post a bit of caution even on the 0302 version and backups. It is the only version I used to do backups for my wifes phone as I was putting FP1 on for her and it bombed both the original before I went to fp1 and one I did of FP1. I am used to CWM being 100% reliable, but have yet to get much luck with CWM on Droid Charge.

It does work for flashing updates and such well, but have yet to find success with backup/restore even though I have never had such problems with that on CWM on other phones.
[Verizon Droid Charge] ztkryan:
Yes odin should reformat your phone to rfs
[Verizon Droid Charge] tdenton1138:
Just make sure you use the pit file when going from ext4 formatted system to an rfs rom
[Verizon Droid Charge] shrike1978:
Completely unnecessary. Odin reformats to rfs if you're flashing an rfs image. The only time you need the PIT is if you have repartitioned your device.
[Verizon Droid Charge] mgavalakis:
Cant Get CWM Up and Runnin :-/

I came from a rooted device to stock FP1. I'm trying to download the latest CWM version 0302. I understand I have to odin to get CWM. When I do, I have everything unchecked except "reset time."

Per Odin, my message is below.

<ID:0/003> File analysis..

<ID:0/003> SetupConnection..

<ID:0/003> Initialzation..

<ID:0/003> Get PIT for mapping..

<ID:0/003> Firmware update start..

<ID:0/003> recovery.bin

<ID:0/003> RQT_CLOSE !!

<ID:0/003> RES OK !!

<ID:0/003> Completed..

<OSM> All threads completed. (succeed 1 / failed 0)

<ID:0/003> Removed!!

When I put the phone in recovery mode (up volume, power, and home) it brings me to something which looks like imnuts previous CWM versions but says "Android System Recovery <3e>. Is this it? They usually have CWM and a version number on it. Plus I'm able to move up and down however can't utilize the power button as an enter key.

Please advise how to get Imnuts CWM working so I could flash a ROM and get rooted again...please!!!!!!!!!!!!!!!!:(
[Verizon Droid Charge] buhohitr:
Your cwm did not stick, what you see is stock recovery. Go here to find out how to make cwm stick:

http://xdaforums.com/showthread.php?t=1560117

Read item# 5
[Verizon Droid Charge] mgavalakis:
Worked great! Thank you!
[Verizon Droid Charge] sprintrjm:
once again another thread on how to flash cwm.. and no instructions.

shakes head again.
[Verizon Droid Charge] buhohitr:
If you read the original post:

"I came from a rooted device to stock FP1. I'm trying to download the latest CWM version 0302. I understand I have to odin to get CWM. When I do, I have everything unchecked except "reset time."

He already knew how to flash cwm through Odin. That's why we don't need to explain how to flash cwm.

Anyway, how nooby are you? to flash cwm you need a tool called Odin. You use Odin to flash cwm. Again, I have to ask, do you know how to use Odin? here is how:

http://xdaforums.com/showthread.php?t=1372414
[Verizon Droid Charge] Ted A:
This stickied thread LOOK Here First,HOW TO'S, Roms/Kernels/Mods/Themes 8.29.11 may be old and marked "no long(er) updated/supported" but it contains detailed How-To's pertaining to DC.

Go to post #4.
[Verizon Droid Charge] iichrisphamii:
wow! thanks. I had the same error code. now, i fixed it. I thought renaming the file would do oit, but i guess it didn't.
[Verizon Droid Charge] JihadSquad:
The download link in OP is down.
[Verizon Droid Charge] jheide44:
EDIT Warning: my first suggestion was dumb, how about this...

http://rootzwiki.com/topic/11327-recovery3-2-12clockworkmod-recovery/

the 0817 link here seems to be working.
[Verizon Droid Charge] JihadSquad:
OK, but if anyone is interested in 0302 just pm me.
[Verizon Droid Charge] tmanschuette:
I also have the 0817 if anyone needs it. I can upload it to Dropbox.

Sent from my SCH-I510 using Xparent Red Tapatalk 2
[Verizon Droid Charge] jheide44:
Did you get nandroid backup restores working on 0302? if so did you have to convert to ext4 fs?

when i first rooted the "blue"/0302 flavored CWM wold not restore nandroid properly...

when the "orange"/0817 worked i walked away form the newer version.

i.e. didn't try real hard to make it work.
[Verizon Droid Charge] JihadSquad:
You have to be on ext4 for 0302. If you are in RFS you can't restore from a nandroid or you will have to flash stock again. It's a consequence of CWM version 5 being the base of 0302, but CWM 4 in 0817 (IIRC).
[Verizon Droid Charge] wolfballz:
All the links to get CWM are dead. Any other way to get it?
[Verizon Droid Charge] NotATreoFan:
Try this link: http://www.mediafire.com/?klk2az485mdt8u8
[Verizon Droid Charge] -Lawless:
the 0817 link still works fine.

It's the only recovery that works for me to restore every time.
[Verizon Droid Charge] NattyBee:
You can get it on market now...
[Verizon Droid Charge] dSlice:
Not us...
[Verizon Droid Charge] robby88:
so i went ahead and tried out the wipe/factory reset and it got stuck on the .android.secure so i pulled the battery then i went to to delete the folder after the pull and everything that was in it was erased already.

i'm guessing that means that it really did wipe everything but it just hangs?

i pulled the battery twice before i went into CWM and wiped each individually (/data, /cache, /datadata, etc...) then went ahead and flashed the new Gummycharge rom and it booted up no problem going threw and setting it all up now
[Verizon Droid Charge] imnuts:
The /sdcard/.android_secure problem is fixed in an upcoming release. I also got rid of the backup/restore menu, though there is a slight bug related to removing it, but something that works itself out somehow :confused: It just redirects you to the home screen for the one menu, but then starts working after that. Not sure why. Will update this when I get a chance.
[Verizon Droid Charge] RaptorMD:
That is great news imnuts, not be pushy, but any eta on the upcoming release :D ?
[Verizon Droid Charge] MCNASTY150:
Well ive tried to use the menu back button still cant get it to go back. maybe did something wrong. any help would be greatly thanked.

nevermind i seen what i did wrong. thanx for all ur work
[Verizon Droid Charge] RaptorMD:
How did you get the back button to work? I have scrolled through the menu a few times which enables the back button feature, but so far none of the physical buttons will take me back.
[Verizon Droid Charge] theramblervison:
ok, so I have used ODIN many times from owning a Fascinate and I got it to flash both the JT root, kernel, cwm pkg and this updated CWM but I don't get a voodoo red I get a yellow CWM and it's broke as hell. I can't get straight into it from rom manager. it shows andy and starts the update for CWM and fails, then I pull battery and when it comes on it's in yellow recovery. What is up, how do I fix?.
[Verizon Droid Charge] RaptorMD:
imnuts is still working hard on CWM, you can get the CWM he put out that is red here http://xdaforums.com/showthread.php?t=1092114 he is working on it but everyone has to be patient.
[Verizon Droid Charge] brian1972ct:
I downloaded the CWM_test.tar file from the OP, flashed with Odin, butit loads in like 7 seconds and I am not getting the red CWM screen on Vol Up/Home/Power On.

Am I missing something?
[Verizon Droid Charge] brian1972ct:
Uh oh, I just flashed it again on Odin, and now I am Soft Bricked.....can anyone help?
[Verizon Droid Charge] RaptorMD:
Not sure if you saw my post above yours, but the CWM in the OP in this thread is not fully working yet (yellow version) there is another CWM (red version) here http://xdaforums.com/showthread.php?t=1092114 its in the OP at the bottom called VoodooChargeCWM-2.tar it lacks the go back from each menu but for the purposes of installing a .zip file you can then pull the battery.
[Verizon Droid Charge] brian1972ct:
Whew, thanks I am d/l it now.
[Verizon Droid Charge] brian1972ct:
Strange I just downloaded it, but when I extract it, I am only left with a Recovery file not a .tar I need to flash with Odin?
[Verizon Droid Charge] brian1972ct:
Strange, that it is listed as .tar for the download, but once I extract it, it is just one recovery file.
[Verizon Droid Charge] imnuts:
you don't extract it to flash unless you are using Heimdall...
[Verizon Droid Charge] brian1972ct:
Well changing USB ports did the trick, I have the yellow CWM now : )
[Verizon Droid Charge] >DARKMAN<:
DO NOT USE ROM MANAGER! it is not compatible with the charge.

Sent from my Voodoo Charge
[Verizon Droid Charge] asenduk:
crap!

just did a wipe and now its stuck at formatting/sdcard..
[Verizon Droid Charge] RaptorMD:
Battery pull and start over :(
[Verizon Droid Charge] asenduk:
phew!!!!!!
[Verizon Droid Charge] Z51:
wipe function doesnt work
[Verizon Droid Charge] NattyBee:
Pooh, my bad, I meant to say you can get it from Rom manager lol
[Verizon Droid Charge] dSlice:
That doesn't either it bricks the phone.
[Verizon Droid Charge] NattyBee:
Hmmm...odd, that's how I installed it... But then again, I paid for the touch recovery... Not sure if that makes a difference...
[Verizon Droid Charge] dSlice:
Well you have a Note 2... the Charge(which forms you are in) is a unique little phone.
[Verizon Droid Charge] JihadSquad:
The charge is like the inbred kid of the galaxy s and s2. Most stuff like that doesn't work for us.
[Verizon Droid Charge] NattyBee:
Oh crap, sorry guys...I didn't notice this was a charge thread...it popped up under my "participated" on Tapatalk...I was just in a similar thread for the note 2 so I thought it was that....I got rid of my Charge like a year ago lol my sincere apologies
[Verizon Droid Charge] mattkilla420:
uninstall CWM and unroot?

how would i go about uninstalling CWM and Unrooting my phone? just need to know because this is a company phone and if i ever part ways with them i need to know how to return to factory condition.
[Verizon Droid Charge] hoppermi:
Just use Odin to flash stock firmware. Will return to stock and will wipe data.
[Verizon Droid Charge] mattkilla420:
Thank you very much I figured that out after you had posted it thankfully I took a back up last night before I rooted or flash any ROM. So I have a good strong backup of FP 8. I'm use to safestrap for my Droid Razr Maxx which allows you to have multiple roms loaded on different slots does clockworkmod only have one slot? Just trying to familiarize myself with the differences
[Verizon Droid Charge] mattkilla420:
I'm having big problems loading up CWM. it acts like sometimes it wants to work and sometimes it doesn't some threads I see say wait till the second Samsung some say wait till the first Samsung and after it flickers. I've tried it about 20 times and only been successful about 4 times. it's getting to be a very neg issue, I saw where to use aDB to make the recovery stick but aDB is not working on my computer I also saw where to change the permissions on the stock recovery so that it won't load up. but I'm wondering the best method to load up CWM because I've seen about 5 different ways that people say work none of them seem to work very well for me

---------- Post added at 03:14 PM ---------- Previous post was at 02:51 PM ----------

I figured out my problem and finally got CWM to stick my only question now is do I need to mount system in order to restore a backup?
[Verizon Droid Charge] mattkilla420:
I'm trying to restore my stock rom and I'm getting md5 mismatch. The only backup that works is one I just made. I followed all steps, wiped factory, wiped dvalik and cache, mounted system and none of the backups work except for the one I just made, md5 mismatch can someone help me please
[Verizon Droid Charge] hoppermi:
Sounds like you will need to use Odin to restore back to stock
[Verizon Droid Charge] mattkilla420:
And what file would i flash on odin? My cwm baxkups won't work right? I suppose I need to find the latest version of fp8 and flash it using ODIN. Which means I lose my customization so far what would cause the md5 to not match? I restored a back up earlier today and it works fine but for some reason now its not working anyone else have any ideas before I flash stock back using ODIN I would really like to get these CWM backups working
[Verizon Droid Charge] mattkilla420:
Does rom manager work with this cwm? Im on 0817 (orange) cwm. I saw there is a 5.Something out but is that only for s3 and s4? Is 0817 the latest and greatest for the charge?
[Verizon Droid Charge] dwitherell:
I would stay away from rom manager. There was another cwm recovery (0302) that came out after - some liked it some didn't. Most of the wonkiness stemmed from backup/restore functions, which I never really used so I didn't have an issue with either myself.
[Verizon Droid Charge] dwitherell:
Theres a file in /system/etc called install-recovery.sh that, when unedited, overwrites custom recoveries with stock recovery - sounds like this may have been the culprit for you.

To get into recovery I tend to cheat - if I'm rooted (pretty sure you need su for it) and what not I'll open terminal emulator and type

reboot recovery

(though you may need to type su and hit enter first)

Or use adb via a pc to do the same.

Instead of a backup of a stock rom, I would just keep a flashable of a stock rom I could flash if needed. Never had great luck with backups, so I just stopped using them lol - sort of the lazy solution :)
[Verizon Droid Charge] mattkilla420:
Yea the install.recovery.sh is what I removed permissions from and changed the ext to .bak seems to work. Eclipse rom has a recovery option on the reboot screen. Awesome.
[Verizon Droid Charge] mattkilla420:
cwm problems

okay i know you said you don't use backups and restores very much so maybe someone else can chime in? my md5 mismatch i think was b/c i renamed the backup, i got that sorted out. I am attempting to restore my stock backup to get a few more pieces of info, and everytime i get stuck at- restoring data.... I then tried to restore eclipse backup that i had just been running and same thing stuck at - restoring data... now when i am doing restore's I am mounting /system and /data . Am i supposed to be doing this? this was the process for flashing roms so i figured it be the same for backups. Appreciate any help as Im stuck at work with no ODIN and just trying to get something back up.

Edit* this time i did not mount /data and the backup restore worked. Looks like my md5 problem might have been bc the data/cache had not been fully cleared, or so i think. Would still like some input from someone who has experience with backups and restores on cwm 0817.
[Verizon Droid Charge] suzook:
it works for me on the red version. Yellow is a no go though.
[Verizon Droid Charge] RaptorMD:
Correct, you can get the red CWM, I attached a copy I got from here http://xdaforums.com/showthread.php?t=1092114 imnuts knows the yellow CWM formatting does not work.

The file below is the RED CWM that you can use the formatting function in.
[Verizon Droid Charge] imnuts:
Updated the OP with what is hopefully a working version of CWM for people to use. I removed the Backup/Restore menu, so you can't break your phone that way at least. I also have button mappings working, the mapping is in the OP. Also fixed is the hang when wiping data on /sdcard/.android_secure. Not sure why it was happening, but it shouldn't happen anymore.
[Verizon Droid Charge] iHTC:
Any reason when i flash this with odin, then i use adb reboot recovery i get to stock recovery every time? Did i miss a step? Flashed with odin using pda button. Thanks for the hard work!
[Verizon Droid Charge] RaptorMD:
Thanks imnuts, so we are good to go with your latest CWM, I would like to suggest you update your OP here http://xdaforums.com/showthread.php?t=1092114&highlight=Reboot+Recovery if you haven't already this way users get the latest one.

So we no longer run into the fail to mount sdcard when doing a factory reset in CWM Recovery? Or did you post the adb instructions just as a precaution?
[Verizon Droid Charge] distortedloop:
Check for a file called install- recovery.sh in the /etc folder. It runs at every boot and reflashes the stock recovery if the one have doesn't pass a hash check.

Rename it, then flash CWR again and it should stick

Sent from Thunderbolt
[Verizon Droid Charge] uefcommad:
is there another way other then renaming this file i get a error message when i try
[Verizon Droid Charge] SpiffyRob:
Deleted. When ODIN fails 12 times, try it a 13th, I guess. :)