Nokia-N900:~# sfdisk -uM /dev/mmcblk1 << EOF > ,<10000>,C > ,<2000>,L > ,,L > ,, > EOF
Checking that no-one is using this disk right now ... OK Disk /dev/mmcblk1: 486192 cylinders, 4 heads, 16 sectors/track Old situation: Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End MiB #blocks Id System /dev/mmcblk1p1 0+ 15193- 15194- 15558136 b W95 FAT32 /dev/mmcblk1p2 0 - 0 0 0 Empty /dev/mmcblk1p3 0 - 0 0 0 Empty /dev/mmcblk1p4 0 - 0 0 0 Empty trailing junk after number sfdisk: bad input