yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S III] worldwidepmp:
Are you gonna call the OP an idiot like you did in that other thread?
[Sprint Samsung Galaxy S III] jamcar:
people are still unbricking
[Sprint Samsung Galaxy S III] humdrum2009:
$50.00 bounty claimed

Thanks clark44 for the help phone unbricked.
[Sprint Samsung Galaxy S III] Skunk Ape1:
I've have to say that the dev's on this forum have been very helpful with this issue. I have to give them all props for working together to get this resolved. Thanks to all of you.

________________

Just Flash It !!!
[Sprint Samsung Galaxy S III] gr33nd3vil:
He didnt fix the problem other devs did
[Sprint Samsung Galaxy S III] jbadboy2007:
Yes even though ive been sitting back with my popcorn watching this thread the devs have been amazing.
[Sprint Samsung Galaxy S III] mrcollpepper:
+1

sent from your moms room.
[Sprint Samsung Galaxy S III] worldwidepmp:
Yeah, but did you notice that devs who did help him didn't kick him in the balls while he was down like you were doing?

Sent from my Jelly Beaned Kindle Fire!
[Sprint Samsung Galaxy S III] teh roxxorz:
Regardless, tis why we're a community. Wrongs were made, but live an etch a sketch lifestyle: shake it up, keep going.
[Sprint Samsung Galaxy S III] lopezpm:
Totally agree.

It's unbelievable how smart the devs are. You guys are geniuses. I didn't use this my self but read everything in sight to avoid problems. Anyway great job guys, way to come together.
[Sprint Samsung Galaxy S III] teh roxxorz:
Well I and othesr were just trying to help. I mean yes we root and 96% KNOW what is at risk, and bad things happen. Glad to see that some were able to unbrick. An unfortunate event, but we don't learn from being right all the time. :)
[Sprint Samsung Galaxy S III] sjr19:
Very good point sir. Some of these devs don't even have the phone yet and people seem to think it's just gonna be flawless. Just be thankful we have devs working to let the phone work to its full potential.
[Sprint Samsung Galaxy S III] rwright64:
My number one rule is to never flash anything right away. Take your time and have a little patience. The only thing the op did wrong was he didn't test it first. Huge mistake and hopefully a lesson learned. I'm also very hesitant to flash anything made by someone who isn't a recognized contributor or developer.
[Sprint Samsung Galaxy S III] teh roxxorz:
To the latter part of your message, perhaps look to see things that dev has produced and see how the ran. i say this for example, not just because clark44 isn't a recognized dev/contributor, but I was flashing things from him on the original evo and he's safe. Though i do understand your concern, so i just say 'scope them out,' to find a happy medium.
[Sprint Samsung Galaxy S III] jfin79:
I will pay also if someone can unbrick my phone
[Sprint Samsung Galaxy S III] jfin79:
How did Clark44 unbrick it
[Sprint Samsung Galaxy S III] il buono:
I scoped jamcar since the Epic 4G Touch and I decided to wait when this first popped up...thank goodness I did. However, I do miss calk's format all since it saved some precious seconds.

Sent from my SPH-L710
[Sprint Samsung Galaxy S III] jamcar:
I can make ROMs this was my first time with the partitions and I thought it was formatted like the majority of android devices, but it wasn't which caused the brick
[Sprint Samsung Galaxy S III] PhantomHacker:
Come on bro... you put quadrant scores in the op of your rom.
[Sprint Samsung Galaxy S III] jamcar:
Is that bad? Usually if I don't people request it.....
[Sprint Samsung Galaxy S III] teh roxxorz:
Just mainly stating that quadrant scores aren't really an accurate measure of the performance of a rom. Quadrant can be affected by governor, temperature, etc.
[Sprint Samsung Galaxy S III] strongsteve:
Seems like a real nightmare.
[Sprint Samsung Galaxy S III] jfin79:
Clark44 fixed my brick for me in under an hour Thanks man and to all to the devs who helped figure this mess out thank you also.If anyone needs his help clark44xda@gmail.com
[Sprint Samsung Galaxy S III] K.0.0.L.:
Crap I took my 32GB to exchange and they gave me a 16Gb cause the 32 haven't hit the store yet. So I settle with the 16GB and they offer free 32GB sd card. I should of wait for the fix. I am soo piss off at my self and JAMCAR
[Sprint Samsung Galaxy S III] strongsteve:
Surely this should have been successfully tested before posting??
[Sprint Samsung Galaxy S III] peanut1596:
Lol, you can't be mad at jamcar. He clearly states that he isn't responsible for your ****. Same thing with everything you do on this site. Nobody is responsible for your brick but you.
[Sprint Samsung Galaxy S III] jamcar:
I tested it but by it took me a while to see it was a brick and other people used it
[Sprint Samsung Galaxy S III] jamcar:
just for a count how many people are still bricked?
[Sprint Samsung Galaxy S III] jfin79:
It would of helped with more detailed adb instructions but we live we learn I knew when I dl it was on me learned a valuable lesson thanks jamcar not mad at all just glad I got my phone back up
[Sprint Samsung Galaxy S III] Bizdady:
To be fair there are ton of adb tutorials out there and in all honesty should be something you should try to familiarize yourself with before hand.
[Sprint Samsung Galaxy S III] jfin79:
I did but the file make-extfs was a bad dl file and I was unaware you needed to run adb mount and a few other things that could of helped so I am aware of my short comings but if I was knowledgeable enough I would of helped everybody here to the best of my ability to get there device back up
[Sprint Samsung Galaxy S III] humdrum2009:
I donated $50.00 to Clark for his help .

Unbricking my phone.

It was much deserved.
[Sprint Samsung Galaxy S III] jfin79:
Me too agreed worth it
[Sprint Samsung Galaxy S III] Bizdady:
I could only imagine the panic. I got a prl error on day 2 of root and i started sweating bricks. Wifey just gave me that "i told you not to be f*©€n with that stuff" look lol. Glad you guys got back up and running though. No doubt i would have also offered a reward if I were in your shoes.
[Sprint Samsung Galaxy S III] teh roxxorz:
If you can still boot into recovery, you can try using adb there, as adb can see the phone in recovery.
[Sprint Samsung Galaxy S III] jamcar:
sense when???? do you have to do anything special as mine wont work.

im at the first screen ( reboot recovery, install aip from sdcard, wipe data, wipe cache, backup and restore, mounts and storage, advance)

and then i did adb kill-server then adb devices and nothing comes up
[Sprint Samsung Galaxy S III] teh roxxorz:
In the past, I haven't had to do anything. Simply connect via usb and good to go. If you're on windows, in device manager, you should see it as samsung adb interface [similar to that name] if the correct drivers are installed. regardless of linux or windows, you have the correct drivers installed an can verify?

Also have to tried to flash the stock boot, system, ect via odin?
[Sprint Samsung Galaxy S III] jamcar:
anyway to change the /data so it is read and writable? (the way it is supposed it be)
[Sprint Samsung Galaxy S III] Bizdady:
I think you have to be on V4 of cwm for adb to work. Im on v4 and have used adb in recovery to push files.
[Sprint Samsung Galaxy S III] shiftr182:
I tried adb in recovery, but was told adb wasnt found or something like that.
[Sprint Samsung Galaxy S III] jamcar:
i have good drivers as i have used adb (when fully booted) and yes the drivers are good, i flashed stock boot.img, insecire boot.img, CWM, full restore, all with ODIN
[Sprint Samsung Galaxy S III] teh roxxorz:
Hmm; assuming you get adb to work, you could try mounting the /data on the phone, see if that works, or adb remount, to mount the system, then see if you can engage the partition manually.
[Sprint Samsung Galaxy S III] jamcar:
what would happen if i flashed a "data.ext4.tar" with ODIN in the PDA button? the data.ext4.tar looks to be a nandroid back fromn CWM

adb remount = error: device not found
[Sprint Samsung Galaxy S III] shiftr182:
Try it. I will
[Sprint Samsung Galaxy S III] PhantomHacker:
Can you get into download mode?
[Sprint Samsung Galaxy S III] teh roxxorz:
You're on the latest cwm like other stated?

And well, if it goes through, you may have a recovered device, potentially. Assuming it sticks and you flashed the data partition a working previous version.
[Sprint Samsung Galaxy S III] jamcar:
if i mount it with CWM it still is a read only file system
[Sprint Samsung Galaxy S III] teh roxxorz:
Awkward; well then like I and PhantomHacker are asking > can you still get into download mode and visible via odin?

Because if you can still get into recovery, it sounds like you're soft bricked, and still hope.
[Sprint Samsung Galaxy S III] jamcar:
yes! full CWM and download mode. but the /data has changed to a read only file system so nothing boots

and the ODIN restore does not a data.img (like on the E4GT)
[Sprint Samsung Galaxy S III] jamcar:
if we had the .pit i could of flashed that already and be out of this but we dont....
[Sprint Samsung Galaxy S III] joetemp75:
Im odin the stock rom now I will report back to see if it fixes it
[Sprint Samsung Galaxy S III] jamcar:
best of luck. just a btw i've done that now like 7 or 8 times no boot :( the reason is the ODIN restore doesnt touch /data but we need it to
[Sprint Samsung Galaxy S III] bbelos:
Did you already try flashing the full stock tar from odin? http://xdaforums.com/showthread.php?t=1737859
[Sprint Samsung Galaxy S III] PhantomHacker:
Can you send me the script that caused you to brick?
[Sprint Samsung Galaxy S III] jfin79:
My wife said the same thing then when I got it fixed she said you better not hack it again lol but I showed her Samsung updates rooted insecure kernels and she said Samsung will let you root it but sprint won't that doesn't make any sense so I'm good again on the rooting
[Sprint Samsung Galaxy S III] 916homie:
When are you going to have a rom come out Steve
[Sprint Samsung Galaxy S III] strongsteve:
Working on it... for sure
[Sprint Samsung Galaxy S III] 916homie:
Kool can't wait for your work #1 on the e4gt
[Sprint Samsung Galaxy S III] EJayMz:
I can't believe people are still bricking with this. Insane...
[Sprint Samsung Galaxy S III] adventuressmalik:
Works wonders

I had just sent PM to Jamcar, he promptly guided me

Thanks[/QUOTE]

It should be the first post, then run that recovery then use adb to push the make extf file then flash stock recovery then wipe user data /factory reset

did that, only adb shell was little confusing and S3 is alive, came t know when using recovery I did factory reset/ erase data

earlier it was giving error now cleared up.

Please make some changes ( I realised later but could be a little confusing)

adb push make_ext4fs /tmp/

adb shell # Verify "~ #" prompt

chmod 755 /tmp/make_ext4fs

/tmp/make_ext4fs /dev/block/mmcblk0p15

sync

as just (if you mention as code)

adb push make_ext4fs /tmp/

adb shell

chmod 755 /tmp/make_ext4fs

/tmp/make_ext4fs /dev/block/mmcblk0p15

sync

A big thanks to you, You save my worries.
[Sprint Samsung Galaxy S III] tymansdaddy:
Does this actually work now? Last time it bricked my phone.
[Sprint Samsung Galaxy S III] teh roxxorz:
Its still not working.
[Sprint Samsung Galaxy S III] Ralphie1:
Good lesson in there read and read some more then reread. Glad you all got a resolution.:good:
[Sprint Samsung Galaxy S III] jfin79:
Doesn't work you will brick your device
[Sprint Samsung Galaxy S III] Bizdady:
Maybe its time the subject is edited and this is closed?
[Sprint Samsung Galaxy S III] tymansdaddy:
Why is this link open? It's still bricking people's phone. You'd figure the OP would delete to prevent that. Well goes to show some people don't care about ruining people's phones. You'd figure in a development forum they would remove on pure principle. Just my 2 cents.
[Sprint Samsung Galaxy S III] Skunk Ape1:
The link has been gone for awhile. Chill...

_______________

Just Flash It !!!
[Sprint Samsung Galaxy S III] Skunk Ape1:
Wrong thread sorry....
[Sprint Samsung Galaxy S III] jamcar:
yes i'll PM it to you
[Sprint Samsung Galaxy S III] jamcar:
yes! but that doesnt have a data.img to reset /data so no boot
[Sprint Samsung Galaxy S III] teh roxxorz:
This is why when twrp gets completely fixed, we'll be cooking with gas. At work, but I'll see if I can track one down.

I have a complete files at home [which doesn't help now] obviously.
[Sprint Samsung Galaxy S III] jamcar:
what would TWRP do for us? ( i dont know what it can do, or what it's capabilities are, as i have never used it) could it help us boot?
[Sprint Samsung Galaxy S III] joetemp75:
will sprint fix it with the custom count at 2?
[Sprint Samsung Galaxy S III] jamcar:
depends on who the person is. i've had help when my E4GT (sII) count was at 98 but then they said they wouldn't help me when i was on the epic 4g (sI) and that count was only at 1.
[Sprint Samsung Galaxy S III] teh roxxorz:
Well TWRP, like amon RA, lets you back up selected partitions, including the data and boot. There is a thread on rootzwiki with instructions of how to get it working. Now if someone who has a working device did the back > sent you the boot.img > flashed via adb / odin / ect, you may be able to get it booting.

Edit: link > http://rootzwiki.com/topic/29370-twrp-for-the-sgsiii-t-mo-should-work-for-sprint-and-att-too/
[Sprint Samsung Galaxy S III] jamcar:
when you get off work could you try that?
[Sprint Samsung Galaxy S III] teh roxxorz:
I could; though I linked the thread in my previous post to the thread to speed up the process. Its still a bit buggy, but it SHOULD get the job done, as its a feature of twrp.

I'd do it here but the network is terrible and need to finish engineering out these cycle times for this system. :p
[Sprint Samsung Galaxy S III] jamcar:
oooooooooh i didnt see your edit for the link i'll check it out.

EDIT i wont be able to do it as ADB doesnt want to work :(
[Sprint Samsung Galaxy S III] teh roxxorz:
Right, i figured that as much; You'll have to most likely get someone with a working device to get it to you. :(
[Sprint Samsung Galaxy S III] bbelos:
May I ask where your update binary came from?
[Sprint Samsung Galaxy S III] PhantomHacker:
You said you have flashed an insecure boot.img?
[Sprint Samsung Galaxy S III] bbelos:
If you can flash zips in CWM , the twrp recovery can be made into a installer zip easy enough.
[Sprint Samsung Galaxy S III] shiftr182:
I have my bricked S3 with TWRP on it. What do I need to do now? Im in the same boat as Jamcar.
[Sprint Samsung Galaxy S III] bbelos:
Are you able to use adb in recovery? When you have both data and system mounted, what is the result of the following 2 commands: "mount" and "df", i'm curious.
[Sprint Samsung Galaxy S III] jamcar:
how is the brick? what does it entail? what is the reason you cant boot?

could you try?

yes i have!
[Sprint Samsung Galaxy S III] jamcar:
in order to do "mount" you need root or adb shell but i get error: device not found. no ADB commands will see it, i always get error: device not found
[Sprint Samsung Galaxy S III] shiftr182:
with twrp adb doesnt work. with cwm v4 adb works. I bricked using the same script you did.
[Sprint Samsung Galaxy S III] jamcar:
im in CWM v4 and i dont have adb
[Sprint Samsung Galaxy S III] shiftr182:
~ # 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)

/dev/block/mmcblk0p17 on /cache type ext4 (rw,nodev,noatime,nodiratime,user_xatt

r,barrier=1,data=ordered)

~ #

~ # df

df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 849028 48 848980 0% /dev

/dev/block/mmcblk0p17

846632 17276 829356 2% /cache

~ #
[Sprint Samsung Galaxy S III] jamcar:
what exactly are you doing to get adb to work?
[Sprint Samsung Galaxy S III] bbelos:
That's without data or system mounted. Are you able to type "mount /data" and "mount /system" and rerun those commands?

---------- Post added at 12:12 PM ---------- Previous post was at 12:09 PM ----------

Here's the twrp recovery as a cwm flashable zip. It works on my phone. I've never used it before but it has a file browser and some other random stuff.

Sprint-SGS3-twrp-recovery.zip
[Sprint Samsung Galaxy S III] jamcar:
thanks i'll flash it now!
[Sprint Samsung Galaxy S III] shiftr182:
~ # 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)

/dev/block/mmcblk0p17 on /cache type ext4 (rw,nodev,noatime,nodiratime,user_xatt

r,barrier=1,data=ordered)

/dev/block/mmcblk0p15 on /data type ext4 (ro,relatime,user_xattr,barrier=1,data=

ordered)

/dev/block/mmcblk0p14 on /system type ext4 (rw,relatime,user_xattr,barrier=1,dat

a=ordered)

~ # df

df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 849028 48 848980 0% /dev

/dev/block/mmcblk0p17

846632 17276 829356 2% /cache

/dev/block/mmcblk0p15

12631592 162792 12468800 1% /data

/dev/block/mmcblk0p14

1511856 1076732 435124 71% /system

~ #
[Sprint Samsung Galaxy S III] jamcar:
according to them someone could back up there data partition. but we need data.img not boot.img

i've flashed both the stock and insecure boot.img(s) and of course no boot :(

just for everyone to know this ISN'T a hard brick it is very far from one, we just dont have the file(s) we need to fix this
[Sprint Samsung Galaxy S III] bbelos:
This is interesting because it doesn't look like any of your partitions were wiped at all. Has file size usage very similar to what the stock rom uses. I'm not sure what the wipe zip actually did. With system still mounted, can you give me the results of a "ls -l /system" and "ls -l /data". Please just put in a pastebin.

@Jamcar: Still interested to hear where your update-binary came from.
[Sprint Samsung Galaxy S III] jamcar:
i pulled them from the stock LF9 ROM because it also already formats the /system
[Sprint Samsung Galaxy S III] jamcar:
wait if i have a nandroid could i take the data.ext4.tar unzip the .tar so it is a data.ext4 then so a program like imgburn to turn that into a data.img the use odin to flash it??? could that work? what do you guys think about?
[Sprint Samsung Galaxy S III] shiftr182:
I dont know how to use pastebin, but here:

~ # ls -l /system

ls -l /system

-rw-r--r-- 1 root root 12 Aug 1 2008 CSCVersion.txt

-rw-r--r-- 1 root root 321 Aug 1 2008 SW_Configuration.xml

drwxr-xr-x 2 root root 4096 Jan 1 1970 T9DB

drwxr-xr-x 2 root root 12288 May 23 2012 app

drwxr-xr-x 2 root shell 4096 May 23 2012 bin

-rw-r--r-- 1 root root 5649 May 23 2012 build.prop

drwxr-xr-x 2 root root 4096 May 23 2012 cameradata

drwxr-xr-x 2 root root 4096 Jan 1 1970 csc

drwxr-xr-x 12 root root 4096 Jan 1 1970 etc

drwxr-xr-x 2 root root 4096 May 23 2012 fonts

drwxr-xr-x 2 root root 8192 May 23 2012 framework

drwxr-xr-x 2 root root 4096 May 23 2012 hdic

drwxr-xr-x 8 root root 12288 May 23 2012 lib

drwxr-xr-x 4 root root 4096 May 23 2012 media

drwxr-xr-x 3 root root 4096 May 23 2012 preloaddata

drwxr-xr-x 5 root root 4096 May 23 2012 tts

drwxr-xr-x 8 root root 4096 May 23 2012 usr

drwxr-xr-x 4 root shell 4096 May 23 2012 vendor

drwxr-xr-x 3 root root 4096 May 23 2012 voicebargeindata

drwxr-xr-x 4 root root 4096 May 23 2012 vsc

drwxr-xr-x 4 root root 4096 May 23 2012 wakeupdata

drwxr-xr-x 2 root shell 4096 May 23 2012 xbin

~ # ls -l /data

ls -l /data

drwx------ 303 root root 20480 Jan 1 1970 lost+found

~ #
[Sprint Samsung Galaxy S III] krazeekirk:
yes ppl its a full brick.. i tried using odin it passes but when it reboots it just sticks... had to get it exchanged luckly i was in my return /exchange period at sams got a new one today ..
[Sprint Samsung Galaxy S III] teh roxxorz:
I think It could work, but I wouldn't know anything of the 'quality' of the img, if you know what I mean. But I think it COULD work.
[Sprint Samsung Galaxy S III] jamcar:
i think it COULD too but this is a soft brick (had it happen on the sII and fixed it) but i dont want to make it a hard brick
[Sprint Samsung Galaxy S III] jamcar:
the ODIN file you flashed doesn't have a data.img which is what we need to fix this! it is not a hard brick, it is a soft brick but we need to make the files to fix it
[Sprint Samsung Galaxy S III] jamcar:
could we try this

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

and make a .pit file. i mean i cant it wont boot ( by it i mean my phone, this wont work if the phone is already bricked)
[Sprint Samsung Galaxy S III] mkasick:
1. Odin L710VPALEN.

2. Three-finger boot into stock recovery (not CWM), and select "wipe data/factory reset".

Does that fix it?

---------- Post added at 03:28 PM ---------- Previous post was at 03:18 PM ----------

Are you sure /data was unmounted before performing the format?

Mind you, CWM's /emmc is linked to /data, so if the update.zip is run from the internal SD card, /data will be mounted and trounced over as part of the format, leading to all sorts of hell.
[Sprint Samsung Galaxy S III] jamcar:
ui_print("FORMATTING Data");

unmount("/data");

format("ext4", "EMMC", "/dev/block/mmcblk0p15");
[Sprint Samsung Galaxy S III] jamcar:
it didn't work ODIN gave me a run time error before it flashed.
[Sprint Samsung Galaxy S III] bbelos:
I already showed him the script, which is why mkasick responded. Please try his suggestion to repair your data partition. Once you are able to boot into the stock rom again, you can reflash cwm, etc and then restore your previous backup.
[Sprint Samsung Galaxy S III] mkasick:
This isn't guaranteed to un-mount /data if the partition is busy. For example, if update-binary's current working directory is set to /emmc.

Anyways, did the wipe from stock recvoery work? It should do a reformat, properly.
[Sprint Samsung Galaxy S III] jamcar:
ok it is ODINing it now
[Sprint Samsung Galaxy S III] bbelos:
Flash TeamEpic-Sprint-SGS3-stock-boot-and-recovery.tar.md5 from here: http://www.epiccm.org/2012/06/sprint-sgs3-stock-restore.html
[Sprint Samsung Galaxy S III] mkasick:
I know you know this, but to clarify for others, stock recovery is included in the L710VPALEN stock tar image.

So if you're doing a full flash anyways, it shouldn't be necessary to additionally flash the stock recovery.
[Sprint Samsung Galaxy S III] jamcar:
i ODIN back to stock and it went into recovery mode and now say installing update
[Sprint Samsung Galaxy S III] mkasick:
OK, that's probably fine, /cache partition wasn't wiped then. However, it's quite likely it won't boot when the update is done, so you'll have to go back into stock recovery again (should be manual mode this time) and do a data wipe.
[Sprint Samsung Galaxy S III] teh roxxorz:
So have you made any progress? Looking back now that I'm out of my meeting, and seems partially my method and another have helped?
[Sprint Samsung Galaxy S III] jamcar:
it has been 20 minutes and it still says installing update, and the status bar at the bottom hasn't moved at all in the last 20 minutes. now what?!?!?!?!

i hoping your backing up the data partition idea will work! but i havent gotten it from anyone....

EDIT: it was now been 33minutes and still no progress

EDIT it has now been 45 minutes and still no progress
[Sprint Samsung Galaxy S III] mkasick:
1. Hold vol-down, home, and power until you get the vibrate, which should force a reboot. Keep holding then until you get into download mode again.

2. Odin up CWMv4.

3. Reboot into CWM. Select "wipe cache partition".

4. Verify the /cache partition actually wiped, e.g.,

adb shell
mount -r /dev/block/mmcblk0p17 /cache
find /cache

Should be empty, or at least not contain a file called "command" and an update.zip.

5. If, and only if the cache wipe didn't work:

adb shell
mount -ro remount /cache
dd if=/dev/zero of=/dev/block/mmcblk0p17 bs=256k

but be super-crazy-careful with that command.

Now, with an empty /cache:

6. Odin L710VPALEN.

7. Three-finger boot into stock recovery (not CWM), and select "wipe data/factory reset".

That should format both /data and /cache, and such should be stated on the screen. However, if for some reason it doesn't wipe cache, do a "wipe cache partition" too.