p1=remaining (21GB) as fat, p2=8GB as ext3, p3=512MB as swap, p4=128MB as ext3
sfdisk -l /dev/mmcblk0 | grep mmcblk | grep -v Empty | tail -n 1 | awk '{print $3;}'
974974+1=974975 974975/8=121871.88 121871*8=974968
size=128MB=128*1024KB=131072KB=131072/32 blocs=4096 blocs
4096+6=4102 blocs
end bloc=974974 size=4102
beginning=974974-4102=970872
size=512MB=512*1024KB=524288KB=524288/32 blocs=16384 blocs
end bloc=970872 size=16384
beginning=970872-16384=954488
size=8GB=8*1024MB=8192MB=8192*1024KB=8388608KB=838 8608/32 blocs=262144 blocs
end bloc=954488 size=262144
beginning=954488-262144=692344
end bloc=692344 beginning=0 (*)
size=692344-0 blocs=692344 blocs