Oct 19, 2013

android internal SD card format

I've formatted the internal SD card on Windows computer. After that the phone (Android 4.0.3 ICS) did not recognize it. The phone is rooted and doing format from the shell (adb shell, while connected in CWM recovery mode) solved the problem:

busybox mkfs.vfat /dev/block/mmcblk0p19

Need to know the exact partition though - in my case mmcblk0p19. Then the /emmc mounted successfully.

My setup

1|shell@android:/ # cat proc/partitions
cat proc/partitions
major minor  #blocks  name

 179        0    3866624 mmcblk0
 179        1         20 mmcblk0p1
 179        2        300 mmcblk0p2
 179        3     133120 mmcblk0p3
 179        4          1 mmcblk0p4
 179        5      12288 mmcblk0p5
 179        6       4096 mmcblk0p6
 179        7       4096 mmcblk0p7
 179        8       3072 mmcblk0p8
 179        9       3072 mmcblk0p9
 179       10       3072 mmcblk0p10
 179       11       4096 mmcblk0p11
 179       12       8192 mmcblk0p12
 179       13      20480 mmcblk0p13
 179       14       4096 mmcblk0p14
 179       15     196608 mmcblk0p15
 179       16      81920 mmcblk0p16
 179       17    1048576 mmcblk0p17
 179       18    1179648 mmcblk0p18
 179       19    1155072 mmcblk0p19
 179       32   31166976 mmcblk1
 179       33   31162880 mmcblk1p1

shell@android:/ # ls -la /dev/block/mmcblk*
ls -la /dev/block/mmcblk*
brw------- root     root     179,   0 2013-10-19 13:06 mmcblk0
brw------- root     root     179,   1 2013-10-19 13:06 mmcblk0p1
brw------- root     root     179,  10 2013-10-19 13:16 mmcblk0p10
brw------- root     root     179,  11 2013-10-19 13:06 mmcblk0p11
brw------- root     root     179,  12 2013-10-19 13:06 mmcblk0p12
brw------- root     root     179,  13 2013-10-19 13:06 mmcblk0p13
brw------- root     root     179,  14 2013-10-19 13:06 mmcblk0p14
brw------- root     root     179,  15 2013-10-19 13:06 mmcblk0p15
brw------- root     root     179,  16 2013-10-19 13:06 mmcblk0p16
brw------- root     root     179,  17 2013-10-19 13:06 mmcblk0p17
brw------- root     root     179,  18 2013-10-19 13:06 mmcblk0p18
brw------- root     root     179,  19 2013-10-19 13:06 mmcblk0p19
brw------- root     root     179,   2 2013-10-19 13:06 mmcblk0p2
brw------- root     root     179,   3 2013-10-19 13:06 mmcblk0p3
brw------- root     root     179,   4 2013-10-19 13:06 mmcblk0p4
brw------- root     root     179,   5 2013-10-19 13:06 mmcblk0p5
brw------- root     root     179,   6 2013-10-19 13:06 mmcblk0p6
brw-rw---- system   system   179,   7 2013-10-19 13:06 mmcblk0p7
brw------- root     root     179,   8 2013-10-19 13:06 mmcblk0p8
brw------- root     root     179,   9 2013-10-19 13:06 mmcblk0p9
brw------- root     root     179,  32 2013-10-19 13:06 mmcblk1
brw------- root     root     179,  33 2013-10-19 13:06 mmcblk1p1

shell@android:/ # df
df
Filesystem             Size   Used   Free   Blksize
/dev                   313M    64K   313M   4096
/mnt/asec              313M     0K   313M   4096
/mnt/obb               313M     0K   313M   4096
/system               1007M   539M   467M   4096
/data                    1G   983M   150M   4096
/cache                 188M     6M   182M   4096
/cust                   79M    17M    61M   4096
/mnt/sdcard              1G    80M     1G   4096
/mnt/sdcard2            29G    10G    19G   32768
/mnt/secure/asec        29G    10G    19G   32768
/mnt/asec/com.mxtech.videoplayer.ad-1    18M    16M     1M   512
/mnt/asec/com.opera.browser-2    17M    15M     1M   512
/mnt/asec/com.ichi2.anki-1     6M     4M     1M   512
/mnt/asec/com.coolbeans.ledtester-1     2M    28K     1M   512

shell@android:/ # mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p17 /system ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p18 /data ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p15 /cache ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p16 /cust ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/vold/179:19 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fm
ask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=
remount-ro 0 0
/dev/block/vold/179:33 /mnt/sdcard2 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,f
mask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors
=remount-ro 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=10
15,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,er
rors=remount-ro 0 0
tmpfs /mnt/sdcard2/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.mxtech.videoplayer.ad-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000
,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-1 /mnt/asec/com.opera.browser-2 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0
222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/com.ichi2.anki-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,fmask=0222
,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/com.coolbeans.ledtester-1 vfat ro,dirsync,nosuid,nodev,relatime,uid=1000,f
mask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

1|shell@android:/ # fdisk /dev/block/mmcblk0p19
fdisk /dev/block/mmcblk0p19

The number of cylinders for this disk is set to 36096.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p
p

Disk /dev/block/mmcblk0p19: 1182 MB, 1182793728 bytes
4 heads, 16 sectors/track, 36096 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

                 Device Boot      Start         End      Blocks  Id System

Command (m for help):

No comments:

Post a Comment