I'm trying to build a system with a duplicate partition that only one of the partition that is duplicated is mounted to the system.
The scenario is like this: Suppose i have the following partition sda1,sda2,sda3,sda4. sda2 and sda4 are identical (let's say sda4 is my backup partition for sda2). during the init process the userspace will ask the kernel which of the partition to mount sda2/sda4? and he will mount accordingly.
Before I'll start to build it by myself, i wonder if there is a system that doing that or similarly to that. when I'm searching swap partition i get only the classic Linux swap partition result. also i get irrelevant result from my searching keyword and i cant find something similarly system or knowledge.
I'll appreciate any knowledge about the scenario before i start build it