sfdisk /dev/mmcblk0 /dev/mmcblk0p1: 1 65536 c /dev/mmcblk0p2: 65537 884864 83 /dev/mmcblk0p3: 884865 24576 82 w for write
mkfs.vfat -F32 -n MyDocs /dev/mmcblk0p1 mkfs.ext3 -m 0 -l home /dev/mmcblk0p2 mkswap /dev/mmcblk0p3
mkdir /home/user/MyDocs/DCIM
n900:~# fdisk /dev/mmcblk0 The number of cylinders for this disk is set to 977024. 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 Disk /dev/mmcblk0: 32.0 GB, 32015122432 bytes 4 heads, 16 sectors/track, 977024 cylinders Units = cylinders of 64 * 512 = 32768 bytes Device Boot Start End Blocks Id System /dev/mmcblk0p1 2 65537 2097152 c Win95 FAT32 (LBA) /dev/mmcblk0p2 65538 950401 28315648 83 Linux /dev/mmcblk0p3 884866 909441 786432 82 Linux swap /dev/mmcblk0p4 1 1 31+ 83 Linux Partition table entries are not in disk order Command (m for help): x Expert command (m for help): p Disk /dev/mmcblk0: 4 heads, 16 sectors, 977024 cylinders Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID 1 00 0 1 1 3 16 1023 64 4194304 0c 2 00 3 16 1023 3 16 1023 4194368 56631296 83 3 00 3 16 1023 3 16 1023 56631360 1572864 82 4 00 0 2 0 3 16 0 1 63 83 Expert command (m for help):