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

Help resizing the root partitiion

Scheduled Pinned Locked Moved Support
12 Posts 6 Posters 2.2k Views 3 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.
    • P Offline
      padraic
      last edited by 6 Jun 2018, 11:09

      Hi,

      when trying to install the new browser I ran into a problem with not having enough space in /var/cache/apt/archives

      I thought this might have been because I did something foolish with my device (BQ M10 FHD - freiza) but I can see other people having the same problem.

      Looking around the forum I can see that people recommend a couple of things:

      1. sudo apt autoremove or sudo apt-get clean
      2. Resizing the root partition

      The solutions in 1. don't free up enough space.

      For resizing I can see this script being mentioned - https://github.com/timsueberkrueb/plasma-phone-dev-setup/blob/master/usr/bin/resize-root-partition

      Has anyone successfully used it? Is there an alternative?

      Is there a recommended size to change to?

      T 1 Reply Last reply 11 May 2019, 09:39 Reply Quote 3
      • M Offline
        matteo
        last edited by 6 Jun 2018, 16:01

        Hi @padraic,
        to resize the rootfs there is a tool called ATU which can be useful for you at the scope. I can redirect you to the page where there are the steps to be followed and the file to download:

        ATU - All Things Ubuntu

        Matteo

        B 1 Reply Last reply 10 May 2019, 09:03 Reply Quote 0
        • B Offline
          baruchiro @matteo
          last edited by 10 May 2019, 09:03

          @matteo Hi, I just installed this tool, but I cant press on anything

          1 Reply Last reply Reply Quote 0
          • T Offline
            tera @padraic
            last edited by tera 5 Nov 2019, 09:51 11 May 2019, 09:39

            @padraic @baruchiro @matteo Got the same issue on FP2 and solved it by adding this line to /etc/fstab:

            /userdata/system-data//var/cache/apt/archives /var/cache/apt/archives none bind 0 0
            

            Issue then a sudo mount -a and retry installing...

            B 3 Replies Last reply 11 May 2019, 18:19 Reply Quote 0
            • B Offline
              baruchiro @tera
              last edited by 11 May 2019, 18:19

              @tera Can you briefly explain what you have done here?

              1 Reply Last reply Reply Quote 0
              • B Offline
                baruchiro @tera
                last edited by 11 May 2019, 20:21

                @tera I also did not understand if there was a mistake in the characters //?

                /userdata/system-data//var/cache

                T 1 Reply Last reply 12 May 2019, 14:00 Reply Quote 0
                • T Offline
                  tera @baruchiro
                  last edited by tera 5 Dec 2019, 14:01 12 May 2019, 14:00

                  @baruchiro Adding this line will allow you to mount that /var/cache/.. folder inside the larger /userdata partition so there is space available to perform the package installation (double slashes are expected, check similar existing lines in /etc/fstab and note it's a bind mount)
                  Not sure if such change should be made persistant or only considered as a workaround...

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    baruchiro @tera
                    last edited by 13 May 2019, 10:29

                    @tera It did not work, with the following error:

                    mount: special device /userdata/system-data//var/cache/apt/archives does not exist

                    But yesterday I somehow managed to make it work, but then I reinstalled and now I can not.

                    T 1 Reply Last reply 13 May 2019, 15:54 Reply Quote 0
                    • T Offline
                      tera @baruchiro
                      last edited by 13 May 2019, 15:54

                      @baruchiro You may have to create the folders in /userdata/system-data/var/cache/... i do not recall if i did or not on my side

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        baruchiro
                        last edited by 13 May 2019, 16:03

                        Works, Thanks!

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jezek
                          last edited by jezek 27 May 2019, 16:27

                          You can bind /var/cache/apt/archives temporary, using mount -o bind command.

                          # create dir in userdata space 
                          $ sudo mkdir -p /userdata/system-data/var/cache/apt/archives
                          # mount - bind
                          $ sudo mount -o bind /userdata/system-data/var/cache/apt/archives /var/cache/apt/archives/
                          
                          

                          Now your /var/cache/apt/archives has more space until reboot.

                          jEzEk

                          1 Reply Last reply Reply Quote 2
                          • M Offline
                            myii
                            last edited by myii 6 Feb 2019, 16:17 2 Jun 2019, 16:16

                            This has worked for numerous users: https://forums.ubports.com/post/13645.

                            I've found running these commands works more reliably from fastboot mode.

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