UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. k7paul
    3. Best
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 0

    Posts

    Recent Best Controversial
    • How to resize root partition (preferably) before or (less preferably) after install?

      Hi all,

      I have just installed the Ubuntu touch 20.04 on my OnePlus 5T, and realised that the root partition was created very small:

      phablet@ubuntu-phablet:~$ df -h
      Filesystem                          Size  Used Avail Use% Mounted on
      udev                                3.7G  744K  3.7G   1% /dev
      tmpfs                               769M  4.8M  765M   1% /run
      /dev/sda13                          111G  2.6G  103G   3% /userdata
      /dev/sde21                          2.9G  2.7G  190M  94% /
      /dev/loop0                          457M  295M  153M  66% /android
      [...]
      

      I have found some instructions to resize the partition, however they seem to be targeted at situations where / is mounted over the loop from a file in /userdata (e.g. system.img). However, on my phone this does not seem to be the case: the only loop device mounted in a 457MB partition mounted at /android; the actual root is on /dev/sde21 (see above), and the partition table on /dev/sde is wild! Also I am curious where the 6 storage devices come from (sda..sdf), but that's another story.

      So the question is: is it possible to (a) read some info somewhere on why so many partitions are created during the installation, and (b) during the partitioning stage alter the size of the root partition? I was using ubports-installer on Mac OS, and it obviously didn't give those options.

      Thank you!

      posted in Oneplus 5/5T resizing root partition install fdisk
      K
      k7paul