One of my friends doesn't have an hdd , so I will install linux distro on a usb stick. It will be a full install just like installing to hdd but it will install on a flash stick instead of hdd. The problem here: USB 2.0 sticks are very slow , If you write a lot on it , it will wear out quickly because if have limited number of write cycles
so I want to do a full system install on a usb stick, and make it something, like read only filesystem so that any changes like installing packages will written on ram , at the end before I shutdown run a script to write all the changes on the flash drive over the old system. this is good for flash sticks because all writes are in ram and then are written to flash drive only ONCE per session when you shutdown. I think this is possible because Puppy Linux does a similar thing when you shutdown it asks you to save all the changes you made to a sfs file and it will be loaded next time you boot. I want to do the same thing but instead of the sfs file I want the changes to be written over the old system , also I don't want to run the full system on ram like puppy. I read about overlayfs and rsync , but didn't quite understand , I need some help here.
I tried the following options:
install the system on flash stick and use it just like HDD ? I tried, but was painfully slow. Maybe because of the simultaneous read and writes.
live CD was very fast, but the customization I made will be lost if I shutdown.
live cd with persistence was very slow because changes are continuously written to the usb stick, and there's hidden services that always write logs something like that.