Skip all this lengthy and difficult process, and partition your sd card via customized cwm 3.0.1.3 available in this thread:
http://xdaforums.com/showthread.php?t=969076
Blay0 initially wrote this guide, but later he provided the customized cwm which includes automatic block alignment. so you do not need to do manual work
I love all this lengthy and difficult process because we know what exactly we're doing step by step and i prefer to know what things are happening.
thanks for link but sorry, i'm using Samsung Galaxy that must Re-Partition it.
this solution can help us too and i think it is a general partitioning for any android devices based on Linux.
and i tried it without any problem on my External SD card re-partitioning.
and now i need to repartition Internal SD via CWM and shell using busybox commands here mentioned.
of course in link you suggested there is a customized CWM just for Legend & didn't work on Galaxy.
please anybody help to Re-Partition Internal SD and solution for 0 Cylinders appeared in shell when using "n" command to add a new partition.
---------- Post added at 01:12 AM ---------- Previous post was at 12:34 AM ----------
& for now...
I used "C" switch in "Fdisk" to set Cylinders.
then it tells me "Device contains neither a valid DOS partition table, nor SUN, OSF or GPT disklabel"
Building a new DOS disklabel. changes will remain in memory only, until you decide to write them."
& then....
i used "O" switch to create a new empty DOS partition table.
& then....
by "n" creating 2 new primary partitions by defining first and last cylinders.
and then "t" by "mkfs.vfat" make it "win 95 FAT32 <LBA>
& at last....
by "w" the partition table has been alerted.
but...
but...
fdisk: WARNING: rereading partition table failed, kernel still uses old table: NOT a typewriter.
~ #
-------------------
now i don't know what to do?
what is your suggestion?
I'm trying re-partition Internal SD.