Also to contribute a bit:
I think a small change needs to be done in the FAQ regarding partition naming scheme. Because there is a certain configuration that is not covered at all and the directions are not very clear to people without technical knowledge. With this addendum half the installation questions would go away:
1) Internal Storage only phone (no SD card inside phone): Internal storage is mmcblk0. Partitions depending on setup are: 1/2/3 if you deleted the partition table and made new PRIMARY partitions or 5/6/7 if you resized "My Storage" and created the ext4 and linux swap partitions after it. This happens because the default setup of the phone is 1 Extended partition with 2 logical partitions inside it("My Storage" one and the hidden one for reseting to factory settings) (For more info on partition tables in general, use google.). So possible partition names are mmcblk0p1/mmcblk0p2/mmcblk0p3 or mmcblk0p5/mmcblk0p6/mmcblk0p7 (fat32/ext4/swap).
2) Internal Storage AND SD Card phone (SD card installed in phone): Internal storage is mmcblk1 and SD card is mmcblk0. So everything stands like described above but the block number is reversed. If the card is installed then the Internal Storage becomes mmcblk1 and the SD card is mmcblk0. The SD card should never have extended/logical partitions so it's always mmcblk0p1/2/3
This also creates an issue that if you install with a card in or out then you have to stick with this configuration or change the configuration files everytime you decide to boot the phone in the other configuration (with or without).
Now regarding the configuration files:
"startup.txt" : the partition should point to the ext4 one (This is the partition holding the operating system). So for our Phone case 1 (see above) it's mmcblk0p2 or mmcblk0p6. For the Phone case 2, it's mmcblk1p2 or mmcblk1p6 if you installed in Internal Storage or mmcblk0p2 if you installed on SD Card.
"/system/etc/vold.fstab" : This file mounts the External SD card. You need "dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.1/mmc_host/mmc1" if you want to mount "My Storage" as an SD Card for the Phone case 1. For the Phone case 2 I am unsure of the device assignment because I have no SD card to test myself.
"init.rc" : The line "mount vfat /dev/block/mmcblk1p5 /storage" mounts as /storage whatever you wish. The external SD fat32 partition or the "My Storage" partition. Depending on what you mounted as External storage in "/system/etc/vold.fstab" you can mount the other here by changing the line appropriately. Use the names above to mount what you want (I've written all possibles combinations already).
"/system/etc/fstab": This ones in mounting your linux swap partition. For Phone case 1 it's mmcblk0p3 or mmcblk0p7 and for case 2 it's mmcblk1p3 or mmcblk1p7 if you're using Internal Storage or mmcblk0p3 if you're using SD card.
Edited by Nodens, 29 November 2011 - 09:01 AM.