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

    root partition's size on different phone

    Scheduled Pinned Locked Moved Support
    aptopencvroot partitionroot
    13 Posts 6 Posters 3.1k Views 2 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.
    • B Offline
      bigwang @Lakotaubp
      last edited by

      @Lakotaubp Thanks for the reply, but I need to use apt to install, for example, I want to install opencv. Why is there so little root partition capacity? If installing with a large-capacity mobile phone, can the root partition become larger?

      1 Reply Last reply Reply Quote 0
      • B Offline
        bigwang @kugiigi
        last edited by

        @kugiigi Thanks for the reply, but I need to use apt to install, for example, I want to install opencv. Tried some of the methods provided in the community, and it was unsuccessful. Why is there so little root partition capacity? If installing with a large-capacity mobile phone, can the root partition become larger?

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi @bigwang
          last edited by

          @bigwang I think the size is mainly because of the limitation in android-based devices...I believe it's the cache partition which is used for applying updates. These are the commands I used to resize on my Nexus 5. DO THIS AT YOUR OWN RISK AND DON"T BLAME ME FOR ANYTHING THAT WILL HAPPEN :face_with_tears_of_joy:
          This resizes it to 5GB.

          sudo dd if=/dev/null of=/userdata/system.img bs=1MiB seek=5000 count=0
          sudo e2fsck -f /userdata/system.img
          sudo resize2fs -f /dev/loop0
          
          B 1 Reply Last reply Reply Quote 0
          • LakotaubpL Offline
            Lakotaubp
            last edited by

            Or if you insist on using apt you break the system 🙂

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bigwang @kugiigi
              last edited by

              @kugiigi Thanks, I know the risks. But after I executed three commands in sequence, the root partition was still 2G. I don't know what went wrong.WechatIMG2.jpeg WechatIMG1.jpeg

              K 1 Reply Last reply Reply Quote 0
              • B Offline
                bigwang @Lakotaubp
                last edited by

                @Lakotaubp Well, because I have to install OpenCV. If you know how to install or whether the root partition of a large-capacity mobile phone will also become larger, please let me know, thank you.

                AppLeeA 1 Reply Last reply Reply Quote 0
                • AppLeeA Offline
                  AppLee @bigwang
                  last edited by

                  @bigwang
                  You need to install OpenCV ?
                  That is not a utility program, but a library.
                  So if you're trying to build an app using OpenCV then you should start by reading how to make apps for Ubuntu Touch.
                  Dependencies are a bit tricky and you can either copy the binary lib within you click package or compile the library along with your code.

                  If OpenCV is a dependency for another app, then use Libertine container.

                  Understand what is blocking you and follow our instructions. Insisting in your direction won't probably help you achieve your goal. Resizing the rootfs and mounting it RW is 99% a bad idea.

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    stefwe
                    last edited by

                    Camera scanner is using opencv https://open-store.io/app/camerascanner.jonnius

                    if your app also needs opencv you can look there how to handle that dependencie

                    Meizu MX4 16.04 | Nexus 5 16.04

                    1 Reply Last reply Reply Quote 1
                    • K Offline
                      kugiigi @bigwang
                      last edited by

                      @bigwang Sorry, I forgot to say that this doesn't work while booted anymore. It was working before but now it's not. You have to do it in recovery or fastboot

                      1 Reply Last reply Reply Quote 0
                      • dobeyD Offline
                        dobey
                        last edited by

                        Why can't you install OpenCV in libertine?

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post