Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
adv1sory
Old
#1  
Senior Member - OP
Thanks Meter 55
Posts: 210
Join Date: Dec 2011
Default [q] for entropy

Is there a script or app one can use to determine if their eMMC is damaged from previous kernels?

Sent from my GT-N7000 using Tapatalk 2
 
porcusor
Old
#2  
Member
Thanks Meter 24
Posts: 97
Join Date: Mar 2010
Location: Bucharest
I don't think there is, and if it was, it would be unsafe. To see if the chip has bad blocks, you have to actually try to read them and if the read process for each block returns successful then the block is not damaged. But if the block IS damaged, then you won't get an error, the chip will just LOCK and you will have yourself a bricked phone.
The Following User Says Thank You to porcusor For This Useful Post: [ Click to Expand ]
 
adv1sory
Old
#3  
Senior Member - OP
Thanks Meter 55
Posts: 210
Join Date: Dec 2011
Im willing to take that risk lol. It irks me thinking that im a flash away from bricking.

Its like having a few days to live and not knowing when its going to be over.

Sent from my GT-N7000 using Tapatalk 2
 
porcusor
Old
#4  
Member
Thanks Meter 24
Posts: 97
Join Date: Mar 2010
Location: Bucharest
I'm in this situation too. I flashed the LPY rom and reverted to GB soon after that because of the battery getting drained too fast, AND because of this emmc bug..
The simplest way to do this, as I said before, is to have the /data, /system, /cache and /efs read (not sure about the latter, but I tried and it survived).
login as root in a terminal on your phone (I used terminal emulator), get root by using the "su" command, then type these commands, one at a time.

DO NOT USE THESE COMMANDS ON YOUR DEVICE! THEY WILL BRICK YOUR PHONE! THERE - I WARNED YOU!

time dd if=/dev/block/mmcblk0p7 of=/dev/null

time dd if=/dev/block/mmcblk0p9 of=/dev/null

time dd if=/dev/block/mmcblk0p1 of=/dev/null

time dd if=/dev/block/mmcblk0p10 of=/dev/null

The "time" in front of each command is just for "fun" as it will return the time it needed to do the operation, and it will also give you an average read speed result.

I did this on /cache and /efs but I'm not going further

One more thing - I believe the test will be more accurate if you add bs=1 after each command. Example:
time dd if=/dev/block/mmcblk0p1 of=/dev/null bs=1

This way it will read one block at a time, but it will take longer. Reading /efs on my phone (20 MB of data), it took 43 seconds at 475 kB/s speed. If you run it on /data, expect it to finish in 75 minutes. You can always check if the phone is locked by dragging down the notification bar. Also, I'm not sure if the device will just freeze, or if it will get stuck at the next reboot in case bad blocks are encountered.
Again - Please reconsider doing this, it's not safe at all!!!

*ALL OF THE ABOVE IS BASED ON MY AVERAGE EXPERIENCE IN LINUX AND THIS ALONE IS A REASON TO NOT TRY WHAT I POSTED!!
The Following User Says Thank You to porcusor For This Useful Post: [ Click to Expand ]
 
adv1sory
Old
#5  
Senior Member - OP
Thanks Meter 55
Posts: 210
Join Date: Dec 2011
Interesting. But id prefer an answer without bold red text saying not to do it.

Sent from my GT-N7000 using Tapatalk 2
 
porcusor
Old
#6  
Member
Thanks Meter 24
Posts: 97
Join Date: Mar 2010
Location: Bucharest
sorry mate, just copy/paste the commands in a notepad window and stare at them - they will look better. I thought you were willing to take the risk? Does having to read red text look more scary than bricking your phone? I suggest you leave this behind and enjoy your Note..
 
adv1sory
Old
#7  
Senior Member - OP
Thanks Meter 55
Posts: 210
Join Date: Dec 2011
Youre right. My mood changed on the subject. Im crossing my fingers and hoping for the best instead. Thanks though.. :)

Sent from my GT-N7000 using Tapatalk 2
 
Zamboney
Old
#8  
Senior Member
Thanks Meter 71
Posts: 376
Join Date: Feb 2012
Mission accomplished

Sent from my GT-N7000 using Tapatalk 2
 
priyanv
Old
#9  
priyanv's Avatar
Senior Member
Thanks Meter 33
Posts: 233
Join Date: Jan 2012
Location: Chennai
I hope OP can get some info from this thread...
http://forum.xda-developers.com/show....php?t=1633943
There's an app mentioned in there for finding damaged portion...
Sent from my GT-N7000 using xda premium
Current : SGnote
Rom: Rocket rom ICS V3
Kernel: speedmod k3-3

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more