Does booting "persistent live to RAM" achieve the absolute lowest USB flash wear from a Ubuntu Live install with persistence, or are there additional tweaks that can be made to reduce flash writes even further? When I say 'live install with persistence' I mean the mkusb
solution specifically, I'm not hacking some original solution manually.
From what I understand so far, the "persistent live to RAM" option leads to all writes being executed in RAM only and their data being dumped to the actual flash only on OS shutdown. But I'm not so sure that really minimizes total written blocks/cells per session - isn't that a really big chunk of data being written on each shut down, including everything on the root partition whether it was modified or not? Or is it some kind of selective process that skips unchanged data when doing the final dump back to storage? And is there really nothing configured to write logs or updates anywhere else during OS runtime, bypassing the RAM overlay?
toram
. I will have to dive in deeper before any more comments from me. – Terrance Feb 27 '23 at 21:33toram
to work just fine. I got it to load on 22.04 LTS and load completely into RAM without an issue. In theory, if you can get the Persistence andtoram
to work together then yes, it would reduce the amount of writes to the USB drive, but you would have to leave the drive in so the persistent mount is always available for when you make changes and it might crash if removed. Without persistence and without the USB it shouldn't crash the OS. – Terrance Feb 28 '23 at 04:23toram
option when booting. Persistent Live will save to thewritable
partition (AKA casper-rw), if the USB is plugged in, just like any Persistent install. The USB will last forever if it is removed usingsudo umount -lrf /isodevice
after booting to RAM, however, all new data will be lost once the drive is shut down. I have tried running Ubuntu as a server off MicroSD in toram mode. It lasted about six months. – C.S.Cameron Feb 28 '23 at 06:07casper-rw
mount. Temp items will all be handled in RAM and not on the USB. – Terrance Feb 28 '23 at 18:12toram
was incredible for a VM. – Terrance Mar 01 '23 at 01:32