yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
can't format /data

Hi Community and thanks to Phistachio for the great HowTo.

I had a big problem with my /data partition. I can't wipe or format /data

If I flash with Odin it always hang on DATAFS (data.img).

I also tryed with Pit and Re-Partition

What could I do?

THX!

EDIT: Recovery and Download work. Format system/cache/dalvik - work
[Galaxy S II Q&A, Help & Troubleshooting] vektek:
+1 me too
[Galaxy S II Q&A, Help & Troubleshooting] sheked:
I have exactly the same problem.
[Galaxy S II Q&A, Help & Troubleshooting] slk-A4:
Hi,

I've got the same problem:

I can get into recovery

I can flash the kernel

I can flash the bootloader

I cannot flash the rom package but at the end the installation hangs when the datafs is flashed, I can wait for an hour or so, and the installationproces does not proceed.

This is what Odin reports:

<ID:0/003> DO NOT TURN OFF TARGET!!

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

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

<ID:0/003> boot.bin

<ID:0/003> NAND Write Start!!

<ID:0/003> Sbl.bin

<ID:0/003> param.lfs

<ID:0/003> zImage

<ID:0/003> factoryfs.img

<ID:0/003> data.img

Who can help, please.....
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
Who also does Flash Siyah 3.1rc6 and Hydrog3n today?

If yes, which siyah version - when downloaded?
[Galaxy S II Q&A, Help & Troubleshooting] vektek:
Siyah 3.1rc6 but not hydro
[Galaxy S II Q&A, Help & Troubleshooting] Azure Flame Kite:
It seems Siyah is causing a NAND_rw corruption.. Odin can't read/write files correctly.
[Galaxy S II Q&A, Help & Troubleshooting] sheked:
I flashed Siyah 3.1rc6, and Hydrog3n 18.04 today too.
[Galaxy S II Q&A, Help & Troubleshooting] ICDeadPpl:
Could someone please post the kernel from the first post packed as a zip file? Preferably without password. What's the deal with the passwords on kernel files anyway?

I can't seem to unpack the 7zip on my Ubuntu system... Tried passwords "samfirmware.com" and " intratech@XDA", neither works...
[Galaxy S II Q&A, Help & Troubleshooting] mahtew:
also datafs problem; LPQ+siyah 3.1rc6;

I've tried to flas LPS via mobileOdin, with siyah 3.1rc6 (it was my previous kernel).

Flash compleated, phone boot up (standard google procedure to chose language) - so I switched of the phone and went to CWM. I've tried to do another full wipe. and bam :D

Flashing 2.3x won't help (with repartition) - i have already tried. I have succesfully flashed lps (without data partition) but phone won't boot up. Any one have any idea what to do? :D

siyah downloaded about 18.04.2012
[Galaxy S II Q&A, Help & Troubleshooting] kami2k:
I also did Siyah 3.1rc6 and its not hard bricked :( :( :( :(
[Galaxy S II Q&A, Help & Troubleshooting] jxzcvk:
My phone is still bricked from rc6, is anyone working on a fix for this or am I pretty much screwed?
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
I don't think, that anybody can fix it. It looks like an distroyed partition table. I had an similar prob with an old microSD. No chance to fix. Only Warrenty was the fix.

I hope anybody could fix, but I'm realist. So I try Warrenty, ...

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] ninbert:
im flashing in odin right now the first steps and its stuck on datafs write

<ID:0/003> data.img.

what can be the problem?

should i flash with repartition and pit. ?

or maybe i should change the bootloader first?
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
Pls read. I tested all yesterday within 6 hours. Also Flash with Pit and Re-Partition. Also Bootloader. Nothing work :(

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] ninbert:
is your rom booting up but stuck on the samsung galaxy s II picture? or or your odin fails the flash?

ive tried some othe odim stock firmwares that come with only PDA ticking in odin and it flashed them but the rom wasnt boot up its was stuck on the samsung galaxy picture.

as i tried pda, csc and phone ticking in odin. its stuck on datafs write.
[Galaxy S II Q&A, Help & Troubleshooting] mahtew:
did someone try to flashing firmaware with Heimdall? it uses the same protocol as Odin. but maybe this can do something?

is there a way, to create flashable Partiton Table for i9100? - since it can be broken, probably can also be repaired :D
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
Stock at Logo is only the result from unwriteable data partition.

Format data didn't also work in cwm

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] ninbert:
so maybe we should use JIG and try to flash the stock rom we have received when we bought the phone and use the warranty.
[Galaxy S II Q&A, Help & Troubleshooting] mahtew:
jig won't help. jtag probably can help, but there is no confirmation about that.

flashing stock ROM also won't help - if U facing same issue, data partition can't be flashed :(
[Galaxy S II Q&A, Help & Troubleshooting] Twelvefold:
Exact same thing with Hydrogen 14/04 and siyah 3.1 rc6
[Galaxy S II Q&A, Help & Troubleshooting] jdb264c:
This seems like a fantastic guide, but my problem is that I can't get into download mode. The jig I have doesn't work anymore since upgrading to ICS, and my SGS2 was the faulty type that needed the jig to get into download mode :(
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
For me, Jig work also with ICS (no counter reset, but download work.

Tryed put phone off - plugin Jig - press power.

If it didn't do anything seems like death

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] jdb264c:
Then unfortunately death it is... From the very start, I could never use that button shortcut to enable recovery/download mode but had to use the jig, and from what I read on some forum, there was a batch or two from Samsung that had this.
[Galaxy S II Q&A, Help & Troubleshooting] slk-A4:
Siyahkernel causes SGSII to be bricked......

Gokhanmoral seems to acknowledge that there is a problem, this is what he says on his site www.gokhanmoral.com:

SiyahKernel v3.1rc6

Posted on April 17, 2012

If you are using rc6 and camera app doesn’t work install v3.1 immediately without wiping any data or installing anything else.

We should find an expert who knows how to format the internal SD card. I hope, there is some expert on this wonderfull forum.
[Galaxy S II Q&A, Help & Troubleshooting] ninbert:
1. so you guys want to say that if i flashed ics rom in the past, the jig will not reset the counter and there is no way to revive my warranty?

2. is there any way to get to the partition and backup data that is on the internal sdcard?
[Galaxy S II Q&A, Help & Troubleshooting] playerjohnson:
phone shuts down unless plugged in to chager/usb

Can anyone help... no matter what rom I flash and i have tried many including stock and stock kernels... my galaxy s2 will turn off after a few moments off charger...if i keep it on charger or usb it will work fine....
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
How should it work? We can't write in data partition, so we can't flash back to original.

I had reset the counter via jig (flash old bootloader via Odin - put device off - plugin jig - wait till jig boot automatic - counter is reset - flash new ics bootloader)

I also can't save or erase my internal SD. Testes with custom Kernel, and QtADB

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] ninbert:
i can flash with odin the stock carrier rom that i received with my phone. it will flash it but not boot up the rom and then use the jig to reset counter.

otherwise you think i need to prepare some money for the repair?
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
I dosn't say, that I flash a hole Rom - my SGSII is also bricked. I flashed only the old bootloader, so the jig could reset the counter.

For Prepair: just wait! gokhanmoral has locate the prob, he would TRY to fix it. Let us see, what the week brings with it, ...

For me I also hab an water damage - so I think my warranty was dead - so my SGSII seems totaly dead without any fix by the great XDA-Community

Criminal23
[Galaxy S II Q&A, Help & Troubleshooting] happytrousers:
Can't De-Brick

Help needed please.

My GS11 is bricked I think, I can get in download mode & that’s all. I have tried all the different steps in your excellent guide but if I try the PIT & re-partition method Odin reports Failed & if I try any of the other flashing methods all Odin reports is <OSM> All threads completed. (succeed 0 / failed 0) so I am stuck. Any ideas please?
[Galaxy S II Q&A, Help & Troubleshooting] Mario1968:
Maybe the battery is dead? Can you try another one battery?

Inviato dal mio Galaxy S2 con Tapatalk2®

XWLA4

Siyah 2.6.14+Morpheus 0.7.5

Jkay 13.6.4
[Galaxy S II Q&A, Help & Troubleshooting] Arnadel:
Flashing I9000's rom. I can't get into recovery and download mod.

Soft brick or hard brick ? :(
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
:thumbup: :banghead: nice to hear those funny thinks in this bad times :D

EDIT: try the jig - think it will help

Gesendet von meinem GT-I5800 mit Tapatalk 2
[Galaxy S II Q&A, Help & Troubleshooting] lfabresm:
JTAG is the only solution :(

---------- Post added at 04:56 PM ---------- Previous post was at 04:53 PM ----------

If the solutions mentioned here, are not working for you, JTAG is the only way to fix a hardbricked phone
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
I9100G version included in the guide :)
[Galaxy S II Q&A, Help & Troubleshooting] Azure Flame Kite:
Phistacio I tried, but again no luck. Here's what I could troubleshoot:

Please correct me if I'm wrong..:o my theory is that the internal SD is faulty. CWM can't write any ROM properly into my system, hence the bootloop.

The internal SD itself works fine though as a storage.

Odin flashes work because there's not any storage involved, you put in the .tar file(s) and flash. CWM however is dependent on some type of storage, either internal or external. Since Odin flashes work, the problem isn't in the system but rather the internal SD.
[Galaxy S II Q&A, Help & Troubleshooting] caioluizdangelo:
I hope never need to use but is always good to know there is a light in the end of the tunnel.
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
First of @ll THX for reply!

I tryed to flash XXKI3 / XXLPH multi Part and XWLP7 one Part all in Odin. hang on DATAFS (also tryed with Pit + Re-Partition)

Also tryed restore Recovery in CWM - stock at data.

Try to format/wipe data in CWM - hang
[Galaxy S II Q&A, Help & Troubleshooting] Arthur King:
Thanks!!! My S2 its alive!!! Ty so much :)
[Galaxy S II Q&A, Help & Troubleshooting] happytrousers:
happytrousers

Originally Posted by happytrousers

Help needed please.

My GS11 is bricked I think, I can get in download mode & that’s all. I have tried all the different steps in your excellent guide but if I try the PIT & re-partition method Odin reports Failed & if I try any of the other flashing methods all Odin reports is <OSM> All threads completed. (succeed 0 / failed 0) so I am stuck. Any ideas please?

In which ROM were you before bricking? What ROM are you trying to flash?

I was using XWLP7 Rom before flashing then i tried to Root the Phone using the Insecure Kernel_I9100XWLP7 that’s where it just hung on the Triangle.

I then tried to flash the recovery package which includes: CODE_I9100XXKI3_CL577579_REV02_user_low_ship.tar MODEM_I9100XXKI3_REV_02_CL1062028.tar.md5 u1_02_20110310_emmc_EXT4.pit GT-I9100_OLD_BOOTLOADER GT-I9100-CSC-MULTI- OXAKI3.tar

That failed, I then tried flashing the bootloader in the PDA on Odin it starts but after a few seconds Odin says <OSM> All threads completed. (succeed 0 / failed 0)

Hope you can help, Thanks in advance. Steve.
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
Your theory is quite flawless, and makes perfect sense! +1

External SD would be quite a nice solution. Look around for some cards, they can be as cheap as 5-10£, but I would recommend the one I'm using, a Samsung 32GB Class 10. www.mymemory.co.uk is a nice site and is quite cheap, that's where I bought my card.

But to have a definite answer, I would have to look deep into your exact ROM and kernel, but unfortunately nor do I own a good build environment nor coding skills & knowledge :o :(

Try flashing the XXLPH Bootloader (in the bootloader part of ODIN) and the XXLPH files in the same flash.

Please flash XXLPH (ICS Version). First without the .PIT and repartition, and then with.
[Galaxy S II Q&A, Help & Troubleshooting] pakoulinos:
hello, it seems to have aforementioned NAND rw corruption on my galaxy s2...!!i enter in download mode, then i plug in the phone on the pc...and a message says that the device is not recognised..!!i have the usb drivers that you say....what i must do...plz help
[Galaxy S II Q&A, Help & Troubleshooting] pakoulinos:
???????????
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
Try switching USB ports and cables.
[Galaxy S II Q&A, Help & Troubleshooting] yamen.meddeb:
me too help plz
[Galaxy S II Q&A, Help & Troubleshooting] pakoulinos:
i have allready did it...!! also in different comptuters...
[Galaxy S II Q&A, Help & Troubleshooting] Azure Flame Kite:
I ordered an SD from Amazon, it's 8GB.. quite a nice SD. But as I said, the problem doesn't lie in the ROM or CWM because any ROM and any CWM that I try has the same problem. In fact, all other functions of CWM work just fine, except the reading/writing from the internal storage.

.PIT, repartition and the bootloader restore the system to stock, meaning it also clears any system corruptions. The only thing this method doesn't wipe is the internal storage, that needs to be manually wiped. But I did all that and the problem still persists. Meaning that it's not a system problem at all.

Odin flashes work fine and that indicates that the system itself has no corruptions.

This leads me to believe that the internal storage is the problem here.. the user partition of the internal storage may be corrupt, so reading/writing the ROM to my system isn't possible.

But there's a dedicated partition to the external storage (/sdcard) which has never been used before. So in theory, CWM should be able to read/write stuff from that storage.

I can prove that by my knowledge of a particular user who had the same problem as me with CWM and his storage :) His issues were resolved by flashing from the external storage.

I want to flash MIUI and some MIUI ROMs really require the external storage to my knowledge.

None of this would've happened if I'd taken my own advice and flashed MIUI from the beginning -_-
[Galaxy S II Q&A, Help & Troubleshooting] happytrousers:
Thank you Phistachio

Please flash XXLPH (ICS Version). First without the .PIT and repartition, and then with.[/QUOTE]

Phistachio you are a superstar! Thank you so much for all your help. My SG11 lives to fight another day.
[Galaxy S II Q&A, Help & Troubleshooting] Criminal23:
After 10min standing at DATAFS I turn off :(
[Galaxy S II Q&A, Help & Troubleshooting] nightwish26:
HELP

Hi Phistachio. I have a problem with the phone. I followed all the steps but the phone freezes in ODIN. It is installed to "data.img", and from there everything freezes! Help me please because I do not know what to do!!

PS-I am new to this area so dont mind the mistakes they make
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
You both have the exact same issue... It's related to the SD card AFAIK and accordong to Azure Flame Kite's feedback & info. Currently I do not know any fix besides re flashing thr bootloader, kernel and recovery package with .PIT and repartition.

Both of you, let's try the opposite now. Flash the GB package. Doubt it's gonna work, but at this time it's worth a try.

Report back on your developments! :)

Phistachio you are a superstar! Thank you so much for all your help. My SG11 lives to fight another day.[/QUOTE]

Cheers! :D
[Galaxy S II Q&A, Help & Troubleshooting] playerjohnson:
battery was dead...
[Galaxy S II Q&A, Help & Troubleshooting] erezhazan1:
Is it safe to do a full wipe on the 3.1.2 ?
[Galaxy S II Q&A, Help & Troubleshooting] TonyK2005:
Hi guys, I have a soft bricked Galaxy S 2 & would be grateful for any help.

Right, let me fill you in on the details;

I have been running custom roms for a few months now without any problems but the other day I downloaded a rom I had used before & did the usual user data/cache/dalvik wipe & proceeded to install the new rom. Once it had finished (unusually quickly) my phone entered a bootloop. I booted into recovery & tried restoring a nandroid but I got exactly the same issue.

I came across this thread & carried out the recovery procedure but ODIN hangs on data.img (with both GB & ICS).

I have managed to flash the newest Orange UK ICS (LPB) but it seems as though the phone is failing to initialise the firmware after the flash via ODIN. The big android robot fills the screen & the progress bar hangs after around 5 mins. If I pull the battery & reboot, I go straight to stock recovery.

I have already sourced a jtag service provider in the UK just incase :(

Any thoughts??

Thanks in advance.
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
Which ROM did you flash unusually quickly? Sometimes you need to double flash..

Now I'm understanding where all this "can't get past from data.img" fiasco comes from : from a bad ROM CWM flash. That probably corrupts the SD card, so when ODIN flashes the image to flash data, it fails, because the SD card itself if corrupted. It is quite weird tho, a nandroid backup should restore successfully...

Unfortunately, I did not come up with any solution, but a JTAG...

The other solution would be to send your or others' phone (the ones who can't flash data.img) to a dev so he could investigate why data is unflashable at this moment...
[Galaxy S II Q&A, Help & Troubleshooting] TonyK2005:
NVM, looks like its to do with Siyah v3.1rc6 http://xdaforums.com/showthread.php?t=1615058

Damaged emmc which even jtag cannot help (some have sent it to be jtagged & had it returned with message "return to Samsung").

Replacing the motherboard seems the only viable option if there is a binary count & you cant return for warranty repair :(

*regarding the bold quote, if I can flash LPB through ODIN & it passes the data.img part then surely there is some hope that the emmc is not corrupt? I dont know lol.

When ODIN passes the LPB firmware, I get this message when it boots into recovery;

E:failed to mount /data (Unknown error: 0)

Copying media files..

Sucessfully copied media files.

#Manual Mode#

--Updating applications--

E:failed to mount /data (Unknown error: 0)

E:install_application_for_customer:Can't mount /data.

your storage not prepared yet. please use UI menu for format and reboot actions.

copy application failed.

==Appling Multi-CSC...

Installing Multi-CSC

Can't access to '/system/csc/ORA/system/'.

Succesfully applied multi-CSC.

*2 lol, Once after flashing LPB and then Siyah kernel, I managed to get the phone to start booting the firmware but it only got as far as the 'S' logo screen but still, a step in the right direction. I cant for the life of me remember exactly what I did though (something to do with the dual boot feature within Siyah) but surely another sign that the internal SD is not beyond repair??
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
This is making me confus. Seriously. Siyah and Samsung gotta get their stuff together! :rolleyes:

I've only taken a glance on that thread, now I read it, thanks for referencing it again!

What's weird tho is, emmc is the external SD card, and the internal SD card is mnt/sdcard... :O

Yep, the fail to mount /data just proves our point. What I think : Siyah bricks the mount storage by literally erasing everything, and not leaving the files required to have it working, so it erases /data's precious files. THEREFORE, the /data partition is erased from the partition table, which a .PIT would SUPPOSEDLY fix.

Nice work! I believe what you have to do now is flash the XXLPB kernel. If you can, extract zImage, tar it again, and flash it in PDA, so you can replace Siyah with a fresh and healthy kernel. If that works, it only proves that the kernel is behind all this. It's not allowing the data partition to be written, all due to a bug in the Siyah kernel.
[Galaxy S II Q&A, Help & Troubleshooting] Azure Flame Kite:
MicroSD didn't work. Instead, I opened up the logs in CWM and I got a whole bunch of errors:

something's wrong here ._.
[Galaxy S II Q&A, Help & Troubleshooting] Phistachio:
Couldn't help it :p

Back to work and OT.

block7mmcblk10p9 is the default boot partition. Why does it fail to mount /data on it? :confused: I believe it is Kernel related.

set_perm: chown of /system/xbin/Invoke-as to 0 0

failed: No such file or directory -> Here, superuser isn't getting its desired permissions to invoke the file, but also isn't locating the file.

Let's forget that now. I have an idea. It should work. I don't know why I didn't come up with it before.

Flash CM9 resurrection edition. It'll flash the XXKPH bootloader, and updated and fresh CM9 and most importantly, a fresh CWM. From there you can try flashing everything else, but you'll be on ICS ground.

As it's an ODIN flashable package, it'll be forced to your phone, and no su perms will be required, so it'll flash. Now, to see if after you flash it, if CWM will maintain the same permission problems.
[Galaxy S II Q&A, Help & Troubleshooting] thejaredhuang:
I'm having this problem with my Note. I have a NAND r/w problem so I think I need to flash the bootloader but I can't find one anywhere. Any other suggestions?
[Galaxy S II Q&A, Help & Troubleshooting] lordmorgul:
Nothing seems to work for me :-(

I followed all the steps in the OP, all steps until the kernel flash kept failing. The kernel flash finally worked, so I went back to the first step, but still kept getting 'failed' messages. So I finally flashed the bootloader and I also get 'failed'...

Here's the log after trying to flash the bootloader:

<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> GT-I9100_OLD_BOOTLOADER.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/006> Odin v.3 engine (ID:6)..
<ID:0/006> File analysis..
<ID:0/006> SetupConnection..
<ID:0/006> Initialzation..
<ID:0/006> Get PIT for mapping..
<ID:0/006> Firmware update start..
<ID:0/006> Sbl.bin
<ID:0/006> NAND Write Start!!
<ID:0/006>
<ID:0/006> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)

Is there any hope for me? Am I doing something wrong? Just got the S2 yesterday :-(
[Galaxy S II Q&A, Help & Troubleshooting] TonyK2005:
I am not quite 100% sure but I think on that release of Siyah, it switched the mounts for internal/external SD so emmc would be refering to the internal SD.

Your logic seems absolutely spot on and I will try what you have suggested above & report back with the results but I am resigned to the fact that the internal SD is beyond repair :(

I have flashed the LPB kernel, along with others (NEAK, SPEEDMOD etc) but still get the boot into recovery scenario & recovery cannot do anything. It hangs when trying to delete user data, flashes roms in 5 secs etc etc.

I will try the CM9 route you mentioned ;)
[Galaxy S II Q&A, Help & Troubleshooting] aaaaleon:
before recovering my phone with the softbrick fix, anything flashed with odin was not function. only cwm flashing worked.

with this softbrick fix, i did manage to get on your xxlph, but i cannot stick with this rom*no camera mute and no root, so no titanium backup*

i want to flash my stock gingerbreak xxki3 back, is there anyway to do it? *i have the .tar file already*

thank you!!