Please correct me if I misunderstand anything.
There are 2 system partitions.
These system partitions are virtual and exist in the 3.7Gb partition of the sdcard.
Before enabling TDB:
The applications are installed into the 3.7Gb storage.
Phone setting is stored in the 3.7Gb storage.
Both roms in separate system partitions share the same applications and phone setting.
After enabling TDB:
Each rom has its own application and phone setting.
The applications are installed into the rom's system partition (and also the phone setting).
Questions:
1) Formatting the sdcard in CWM will delete the whole sdcard content(both roms, applications, personal folder, etc.)? -edit- I have tested this and found the answer myself. It will delete everything on the sdcard.
2) Before enabling TDB, is there a way to format only the 3.7Gb partition storage?
3) After enabling TDB, if I want to install a new rom into the system partition 1, will it also remove all applications and phone setting in the same system partition 1?
4) After enabling TDB, is there a way to format by system partition(remove the rom, application and phone setting)?
Thank you.
1) if you format sdcard ALL user's files are deleted: do it if you want a new clean user space, otherwise be aware that this operation erases all your files (your music files, your pictures, your movies, and so on)
2) you can format system partition (system1 or system2 or both) and so on from the "mounts and storage" menu of the cwm recovery .. but do it carefully and safely: make a full nandroid backup before doing this (through "backup and restore" menu in the cwm recovery) .. otherwise you can simply make a full wipe (data, cache, dalvik cache): it's not the same, but surely it is simpler and safer
3) no: if you have just enabled TDB, when you flash another rom on the same partition that you usually use, you can simply flash it without wiping data and cache .. in most cases it is safe: you MUST wipe data, cache and dalvik before flashing a completely different rom, such as a Cyanogenmod rom on a (previously installed) Miui .. in these cases you can't simply flash the rom, 'cause the system files are very different and if you don't wipe all before flashing the new different rom, you risk to brick your xiaomi phone
4) If I understood what you mean (you mean "remove the other rom to free and erase one partition"?), I really don't know, but I'm quite sure this is the shortest way to brick the phone .. ;-) otherwise, if you mean "format system partition of one of the two roms, without erasing its partition", then, please, see points 1 e 2
Hope it helps
bye