mke2fs android block device

Android也可以format filesystem

用df看有哪些filesystem
$ ./adb shell
~ # df 
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   415204        48    415156   0% /dev
/dev/block/mmcblk0p7    201568      4228    197340   2% /cache
/dev/block/mmcblk0p10 13574488     33668  12851260   0% /data
/dev/block/mmcblk1p1  15631532  13720164   1911368  88% /external_sd
/dev/block/mmcblk0p9    838552    116812    721740  14% /system

針對某個filesystem format
# mke2fs /dev/block/mmcblk0p10
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
863264 inodes, 3447808 blocks
172390 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3531603968
106 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
done

This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

這次是遇到Galaxy Tab 7.7在wipe data/factory時候會一直重開機(就陷入重開機循環@@)
檢查一下mount point /data下面的資料
最近安裝的一個程式是一個不安全的apk檔案
不確定是否是它造成
但是只要想要rm這個/data/data/xxx資料匣就有問題(reboot loop...)
試過更換recovery也無法wipe他
甚至把/data所在的dev更換掉也沒用(cp /dev/block/mmcblk0p7 /dev/block/mmcblk0p10)
用dd拷貝mmcblk0p7給mmcblk0p10也沒用
輾轉之下....
找了這個solution....
直接重mke2fs mmcblk0p10...成功!!