Template:FAQ/Questions/two partitions on the

Two partitions on the flash? Where are the file structures defined?
e.g. &quot;On our actual device implementation for security we have two partitions on the flash: one is read only containing the system and one is rw containing the user data. If we want to do this on the gumstix too, can you tell me the files where the flash structure is defined?&quot;

The partition map is static, defined at compile time in the linux kernel. It's specified in the file drivers/mtd/maps/gumstix-flash.h in the gumstix_flash_partitions array.

We are planning on changing this over time to using a dynamic partition map stored in flash, but this may not happen for a while, and it will be made to be backward-compatible.

You can either change this default partition table here in the code, or you can turn on the &quot;command line partition mapping&quot; option in the linux kernel, and then specify the partition layout through the linux boot command line arguments (ie the u-boot bootargs variable).

If you're booting over the network anyway though, it might well be worth looking into using an NFS root filesystem for the &quot;shared&quot; read-only filesystem, and then use the full flash space with the existing paritioning system for the user data of each device.