adb shell ls /dev/block avnft1i cardblksd cardblksd1 loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7 mtdblock0 mtdblock1 mtdblock2 mtdblock3 mtdblock4 mtdblock5 mtdblock6 mtdblock7 mtdblock8 platform adb shell cat /proc/partitions major minor #blocks name 31 0 8192 mtdblock0 - bootloader.img 31 1 8192 mtdblock1 - logo.img 31 2 8192 mtdblock2 - aml_logo.img 31 3 8192 mtdblock3 - recovery.img 31 4 8192 mtdblock4 - boot.img 31 5 1048576 mtdblock5 - "system" system.img ubifs 31 6 262144 mtdblock6 - "cache" cache.img yaffs2 31 7 1048576 mtdblock7 - "userdata" data.img ubifs 31 8 14360576 mtdblock8 - internal media storage 250 32 13402112 avnftli - internal system storage 250 33 13382145 avnftli1 - internal system storage 253 0 500224 cardblksd - /external_sdcard 253 1 232942 cardblksd1 - /external_sdcard c:\cygwin\adb>adb shell parted /dev/block/mtdblock8 print Model: Unknown (unknown) Disk /dev/block/mtdblock8: 14.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 16.5MB 13.7GB 13.7GB primary ------ c:\cygwin\adb>adb shell /tmp/fdisk.sh The number of cylinders for this disk is set to 1668. 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): Selected partition 1 Command (m for help): Command action e extended p primary partition (1-4) Partition number (1-4): First cylinder (1-1668, default 1): Last cylinder or +si ze or +sizeM or +sizeK (3-1668, default 1668): Using default value 1668 Command (m for help): Selected partition 1 Hex code (type L to list codes): Changed system type of partition 1 to b (Win95 FAT32) Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table c:\cygwin\adb>adb shell parted /dev/block/mtdblock6 print Error: /dev/block/mtdblock6: unrecognised disk label c:\cygwin\adb>adb shell parted -s /dev/block/mtdblock6 mkfs 1 yaffs2 Error: /dev/block/mtdblock6: unrecognised disk label c:\cygwin\adb>adb shell parted -s /dev/block mtdblock6 mkfs 1 fat32 Error: Error opening /dev/block: Invalid argument c:\cygwin\adb>adb shell parted -s /dev/block/mtdblock6 mkfs 1 fat32 Error: /dev/block/mtdblock6: unrecognised disk label c:\cygwin\adb>adb shell parted -s /dev/block/mtdblock6 mklabel msdos c:\cygwin\adb>adb shell parted -s /dev/block/mtdblock6 mkfs 1 yaffs2 Error: Partition doesn't exist. c:\cygwin\adb>adb shell parted -s /dev/block/mtdblock6 print Model: Unknown (unknown) Disk /dev/block/mtdblock6: 268MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags c:\cygwin\adb>adb shell ls /dev/block avnftli loop0 loop4 mtdblock0 mtdblock4 mtdblock8 avnftli1 loop1 loop5 mtdblock1 mtdblock5 platform cardblksd loop2 loop6 mtdblock2 mtdblock6 cardblksd1 loop3 loop7 mtdblock3 mtdblock7 c:\cygwin\adb>adb shell cat /proc/partitions major minor #blocks name 31 0 8192 mtdblock0 31 1 8192 mtdblock1 31 2 8192 mtdblock2 31 3 8192 mtdblock3 31 4 8192 mtdblock4 31 5 1048576 mtdblock5 31 6 262144 mtdblock6 31 7 1048576 mtdblock7 31 8 14360576 mtdblock8 250 32 13402112 avnftli 250 33 13382145 avnftli1 253 0 500224 cardblksd 253 1 232942 cardblksd1 c:\cygwin\adb>adb shell fdisk -l /dev/block/avnftli Disk /dev/block/avnftli: 13.7 GB, 13723762688 bytes 255 heads, 63 sectors/track, 1668 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/block/avnftli1 3 1668 13382145 b Win95 FAT32 c:\cygwin\adb>adb shell fdisk -l /dev/block/avnftli1 Disk /dev/block/avnftli1: 13.7 GB, 13703316480 bytes 255 heads, 63 sectors/track, 1666 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System c:\cygwin\adb>adb shell fdisk -l /dev/block/mtdblock5 Disk /dev/block/mtdblock5: 1073 MB, 1073741824 bytes 255 heads, 63 sectors/track, 130 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/block/mtdblock5 doesn't contain a valid partition table c:\cygwin\adb>adb shell fdisk -l /dev/block/mtdblock6 Disk /dev/block/mtdblock6: 268 MB, 268435456 bytes 255 heads, 63 sectors/track, 32 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System c:\cygwin\adb>adb shell fdisk -l /dev/block/mtdblock7 Disk /dev/block/mtdblock7: 1073 MB, 1073741824 bytes 255 heads, 63 sectors/track, 130 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/block/mtdblock7 doesn't contain a valid partition table c:\cygwin\adb>adb shell fdisk -l /dev/block/mtdblock8 Disk /dev/block/mtdblock8: 14.7 GB, 14705229824 bytes 255 heads, 63 sectors/track, 1787 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/block/mtdblock8p1 3 1668 13382145 b Win95 FAT32