You can follow these steps to check your Android NAND chip partition which checks bad blocks:
1.for your data safety,backup your data to pc or cloud first.
2.boot to recovery.
3.unmount all partition in recovery.
4.connect your phone to pc.
5.execute adb shell
.
6.use cd
command go to your partition directory,usual in:
/dev/block/platform/soc.0/<chip ID>/by-name
or like:
/dev/block/platform/msm_sdcc.1/by-name
for example:
cd /dev/block/platform/soc.0/12345678.sdhci/by-name
after enter directory,you can execute ls
command show all partition name,like system,cache,userdata,etc.
7.execute e2fsck
command with -cfv
parameter and partition name,for example,you want check userdata ( /data ) partition with check bad blocks:
e2fsck -cfv userdata
or system partition:
e2fsck -cfv system
Additional Information:
The -c
parameter for e2fsck
is check for bad blocks and add them to the badblock list, you can execute e2fsck -h
get more information.
fsck
in ADB while in recovery mode? It might not work, but then it might.fsck
, and it is the only mode in which these protected partitions are accessible.fdisk
forfsck
?