I have devices with SD cards, with several partitions. The first partitions on the card is typically not mounted, and have vfat filesystem.
What I want to achieve is, to create a 1MB free space just before the partition, so I'd like to not just to resize the fs and partition, but also to align them to the end of the available space. I know some GUI based tools do that, but I need to do this on a minimal embedded system, using scripts or ssh connections.
The current map of the SD card (4GB) is.
The idea is to preserve the structure but put raw u-boot at the beginning.