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.

  • @[email protected]
    link
    fedilink
    English
    33 days ago

    It probably depends on what software you’re running and what it does. I don’t 100% know how to do this, but this is what I’d aim for:

    Everything on the physical drive is read-only. On startup, it creates a RAMFS and copies any files that change as part of the software you’re running there and points to that for all temporary files, etc.

    That way the whole physical device is read only and anything that needs to change does so in memory only.