7

I am using an USB drive to start a linux system which needs changes from time to time and also writes some logs. Flash drives tend to fail early if there are many write operations. That brought me to an OverlayFS idea:

I want to have a lower filesystem which has the system and an upper filesystem that takes the changes and logs. From time to time, for example once a day, I want to copy the changes from the upper filesystem to the lower filesystem.

OverlayFS does not support writing to the lower filesystem as long as the upper filesystem is mounted. So I would assume, I need to unmount the upper fs and remount the lower fs read-write. But I am not sure what would happen if in that moment a process tries to write something to the fs.

Which would be the best way to do this?

mgabriel
  • 361

0 Answers0