• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Read-Only File System: What is it?

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 695 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      justsoup
      last edited by 13 Apr 2024, 22:08

      I have heard a lot of information about Ubuntu Touch's read-only filesystem, but I don't really understand how it works. Is it the same as an immutable distribution, and if so, how do updates actually work on a technical level?

      Also, how is Ubuntu adapted to fit this read-only model?

      A 1 Reply Last reply 14 Apr 2024, 09:29 Reply Quote 0
      • A Offline
        AppLee @justsoup
        last edited by 14 Apr 2024, 09:29

        Hi @justsoup
        The read only filesystem is just the result of a decision to create a stable system partition that the user is not suppose to modify.
        It has several advantages, one them being that updates can be pushed as an image and incremental updates can be used.

        Of course the user should have access to storage for installing apps, personal data and configuration files.
        So basically what is considered the core of the system is on RO partitions and there is a user partition dedicated to user data.

        Ubuntu as all Linux distros can accommodate for RO partitions, the limitation is that when a process requires to write something "permanently" (not in RAM) the file path should be configured into the user data partition.
        This can be done using symlinks or custom paths and because it's all open source, it all can be done.

        Also an operating system defines how the partitions and storage will be used, it also defines a way to install apps and the UI as well as default software and settings. Ubuntu Touch being intended primarily for phones and tablets, narrowing the possibilities was the option to give the user a product that just works. After installation, it just works as intended.
        Of course the user can still choose to mess with the OS, but at their own risk.
        Messing with the RO filesystem means that it may break the update system and force one to reinstall from scratch...

        I hope it clarifies things a bit for you and don't mind some over simplifications 😉

        J 1 Reply Last reply 14 Apr 2024, 19:16 Reply Quote 0
        • J Offline
          justsoup @AppLee
          last edited by 14 Apr 2024, 19:16

          @AppLee Thanks for the response! If I understand you the Ubuntu Touch OS is split between a system and userdata partition, with click apps modifying the userdata partition while system updates modify the system partition.

          A 1 Reply Last reply 14 Apr 2024, 20:49 Reply Quote 0
          • A Offline
            AppLee @justsoup
            last edited by 14 Apr 2024, 20:49

            @justsoup
            Yes, I guess this is a good summary.

            1 Reply Last reply Reply Quote 0
            • C CiberSheep moved this topic from OS on 15 Apr 2024, 00:10
            • K Keneda referenced this topic on 19 Jun 2024, 05:07
            • K Keneda referenced this topic on 22 Jun 2024, 10:21
            3 out of 4
            • First post
              3/4
              Last post