sudo topi@genesi:~$ sudo fdisk /dev/mmcblk0 [sudo] password for topi: Sorry, try again. [sudo] password for topi: WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/mmcblk0: 8011 MB, 8011120640 bytes 246 heads, 40 sectors/track, 1590 cylinders Units = cylinders of 9840 * 512 = 5038080 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk0p1 1 3 13736 83 Linux /dev/mmcblk0p2 4 1570 7709640 83 Linux Command (m for help): d 2 Partition number (1-4): 2 Command (m for help): d Selected partition 1 Command (m for help): p Disk /dev/mmcblk0: 8011 MB, 8011120640 bytes 246 heads, 40 sectors/track, 1590 cylinders Units = cylinders of 9840 * 512 = 5038080 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System Command (m for help): x Expert command (m for help): h Number of heads (1-256, default 246): 255 Expert command (m for help): x Command action b move beginning of data in a partition c change number of cylinders d print the raw data in the partition table e list extended partitions f fix partition order g create an IRIX (SGI) partition table h change number of heads i change the disk identifier m print this menu p print the partition table q quit without saving changes r return to main menu s change number of sectors/track v verify the partition table w write table to disk and exit Expert command (m for help): s Number of sectors (1-63, default 40): 63 Warning: setting sector offset for DOS compatiblity Expert command (m for help): c Number of cylinders (1-1048576, default 1590): 906 Expert command (m for help): r Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-906, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-906, default 906): +64M Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (10-906, default 10): Using default value 10 Last cylinder, +cylinders or +size{K,M,G} (10-906, default 906): 902 Command (m for help): p Disk /dev/mmcblk0: 8011 MB, 8011120640 bytes 255 heads, 63 sectors/track, 906 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk0p1 1 9 72261 83 Linux /dev/mmcblk0p2 10 902 7173022+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. topi@genesi:~$ sudo fdisk /dev/mmcblk0 WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): c Changed system type of partition 1 to c (W95 FAT32 (LBA)) Command (m for help): a Partition number (1-4): 1 Command (m for help): p Disk /dev/mmcblk0: 8011 MB, 8011120640 bytes 255 heads, 63 sectors/track, 973 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/mmcblk0p1 * 1 9 72261 c W95 FAT32 (LBA) /dev/mmcblk0p2 10 902 7173022+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. topi@genesi:~$ sudo mkfs.vfat -F 32 -n boot /dev/mmcblk0p1 mkfs.vfat 3.0.9 (31 Jan 2010) topi@genesi:~$ sudo mkfs.ext3 -L rootfs /dev/mmcblk0p2 mke2fs 1.41.12 (17-May-2010) Filesystem label=rootfs OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 448800 inodes, 1793255 blocks 89662 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1837105152 55 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: done Creating journal (32768 blocks):