Let's say I have two flash memory devices 1GB capacity each. Let's also say each device contains one big file ~ 1GB size. Assuming, I have limited (64MB) RAM and no hard disk drive, what is the shortest way to swap this two files ?
I mean: if file
a is on device
b is on device
B, I want swap operation to place
I know there is no exact linux tool to do that according to this discussion.
I am interested in shortest way to achieve my goal. If that way will be too long, I probably will have to implement my own dedicated solution that will perform swap chunk by chunk, am I right ?