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

    Proper way to mount sd card on Redmi Note 9 Pro

    Scheduled Pinned Locked Moved Solved Xiaomi Redmi Note 9 Pro/Pro Max/9S & Poco M2 Pro
    6 Posts 2 Posters 5.1k 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.
      • JakubJ Offline
        Jakub
        last edited by

        When the sd card is inserted into phone, it isn't recognized automatically, after mounting it to folder which owner is phablet it isn't possible to change ownership from root back to phablet.
        Before the mount:
        c209fb53-a488-4032-bd10-e61019dcdaec-image.png
        c296405c-1c93-40e1-9ffd-c116385f8add-image.png
        I mounted the sd card with sudo mount /dev/mmcblk0p1 ~/sd and can access files without problems, but doesn't have write privileges.
        After the mount:
        d51e12f3-64f1-4b8b-971f-14b9a66f6622-image.png
        When using:

        sudo chown phablet sd
        sudo chmod 777 sd
        

        Output from chown command:
        73c6faba-d994-49a5-9892-fa517858f610-image.png
        Nothing happens and folder stays as root with only read privileges.
        Is there a way to mount sd card so that it also shows in app External drives and can be accessed without problems for reading and writing? Thanks for all suggestions, I tried many approaches for this and wasn't able to success.

        Xiaomi Redmi Note 9 Pro (OTA-25) - daily driver

        1 Reply Last reply Reply Quote 0
        • JakubJ Offline
          Jakub
          last edited by

          Update: When sd card is inserted into USB card reader and formatted in UT and then put back into phone it is recognized without problem and can be accessed and written to. But after reboot it isn't mounted nor recognized when inserted into phone.

          Xiaomi Redmi Note 9 Pro (OTA-25) - daily driver

          1 Reply Last reply Reply Quote 0
          • JakubJ Jakub marked this topic as a question on
          • N Offline
            nitanmarcel
            last edited by

            The sdcard will be properly fixed in the next OTA relase. If you want to test it now you can install the development channel from the settings app 🙂

            JakubJ 1 Reply Last reply Reply Quote 1
            • JakubJ Offline
              Jakub @nitanmarcel
              last edited by

              @nitanmarcel Thanks, will try that, I was also thinking that maybe adding sd card into fstab file could help, but on the other side I am not sure if that would give me write permissions or it would be the same as if mounting it manually.

              Xiaomi Redmi Note 9 Pro (OTA-25) - daily driver

              N 1 Reply Last reply Reply Quote 0
              • MrT10001M MrT10001 referenced this topic on
              • N Offline
                nitanmarcel @Jakub
                last edited by

                @jakub Nah, the issue was with udisk udev. And actually I don't recommend it but you can fix the issue in stable and rc too.

                sudo mount -o rw,remount /
                sudo nano /lib/udev/rules.d/99-android.rules
                

                Replace ENV{UDISKS_SYSTEM}="1" with ENV{UDISKS_SYSTEM}="0"

                Save and reboot.

                JakubJ 1 Reply Last reply Reply Quote 1
                • JakubJ Offline
                  Jakub @nitanmarcel
                  last edited by

                  @nitanmarcel Looks not that difficult, I have to remember to get it the way it was before the OTA update. Do you have any information when it will be released?

                  Xiaomi Redmi Note 9 Pro (OTA-25) - daily driver

                  1 Reply Last reply Reply Quote 0
                  • JakubJ Jakub has marked this topic as solved on
                  • First post
                    Last post