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

    Resizing root filesystem

    Scheduled Pinned Locked Moved Fairphone 4
    3 Posts 2 Posters 65 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.
      • A Offline
        artur_
        last edited by Moem

        Documenting my solution here in case anyone is facing the same problem.

        Installing Ubuntu Touch on Fairphone 4 will create a root filesystem with almost no free space, making it impossible to install packages. Writing to the root filesystem is not officially supported in Ubuntu Touch and not how it is intended to be used by regular users, but it is needed for example to test things with ubports-qa.

        This may brick your phone, proceed at your own risk

        This will wipe your data as reverting to Android is required.

        1. The FP4 uses dynamic partitions which must be resized with "userspace fastbootd", which also does not work on Ubuntu Touch on the FP4. Therefore one must first revert to Android. (Install Android 11, keep bootloader unlocked.)

        2. Boot to fastbootd.
          a. Boot to "bootloader" mode (with the phone powered off, hold volume down and connect USB; this is the usual "fastboot mode"), then run fastboot reboot fastboot.
          b. Alternatively, set up USB debugging and run adb reboot fastboot.

        3. When the phone shows the fastbootd menu, manually set up partitioning as required by Ubuntu Touch (refer to the actions listed at https://github.com/ubports/installer-configs/blob/master/v2/devices/FP4.yml#L137).
          a. fastboot delete-logical-partition system_ext_a
          b. Repeat the above for system_ext_b, product_a, product_b, system_b, vendor_b, odm_b.
          c. fastboot resize-logical-partition system_a 5368709120 (this is the step we do differently than the installer)
          d. fastboot reboot bootloader

        4. Run the UBports Installer, select the option to bootstrap and to wipe userdata. Unselect the option to set up partitioning. Install as usual. It should detect your device correctly. It will also prompt you to reboot in bootloader mode but you are already in the correct mode for installation so simply click ok.

        A 1 Reply Last reply Reply Quote 2
        • A Offline
          artur_ @artur_
          last edited by

          2.b. should read adb reboot fastboot

          MoemM 1 Reply Last reply Reply Quote 0
          • MoemM Offline
            Moem @artur_
            last edited by

            @artur_ said in Resizing root filesystem:

            2.b. should read adb reboot fastboot

            I've edited that for you. You can do that for your own posts, too. Use the menu with the three dots at the bottom right of your posts.

            Is currently using an Op5t
            Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post