Will my OS break if I make it the system Read Only? I am installing a raspberry pi 4 (Raspberry Pi OS (64-bit)) in my car and read on Lemmy that if I make the system files Read Only my system won’t get corrupt when power is abruptly turned off. I will leave the ‘home’ directory read-write. I realize I will have to remove the drive and run updates regularly.

  • lurch (he/him)@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    3 days ago

    idk about Pi OS, but usually it will break, because all sorts of services need to write stuff in /var/ , /tmp/ or other places and they can’t if it’s mounted read-only. You could maybe get away with mounting tmpfs ramdisks in those places, but it will be complicated if the services expect something already there, e.g. database files.