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

    How can I get writing access to mounted sd-card?

    Scheduled Pinned Locked Moved Unsolved Support
    3 Posts 2 Posters 276 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.
      • U Offline
        uwahl
        last edited by arubislander

        When having mounted a fat32 formatted 32GB sd card to the folder /media/myfolder with the command

        sudo mount -t vfat /dev/sda /media/myfolder
        

        sda in my case found with the command fdisk -l
        I can correctly read all my files on the sd card, but cannot get write access in order to add files or modify them.
        It would be a great feature to synchronize my phablet files with the ones on the sd card...
        Is there actually a solution?
        pixel 3axl focal rc

        1 Reply Last reply Reply Quote 0
        • T Offline
          tera
          last edited by tera

          Probly the permissions are not allowing it, try:

          sudo chmod 777 /media/myfolder
          
          1 Reply Last reply Reply Quote 0
          • U Offline
            uwahl
            last edited by

            @tera thank you for your answer!
            ...what I tried:
            sudo mount -rw -t vfat /dev/sda /media/myfolder
            ...and after sucessfully mounting
            sudo chmod -v -R 777 /media/myfolder
            ...all folders/ files in /media/myfolder were shown (in terminal!) as being changed from rwx rx rx ---> to rwx rwx rwx.
            So, full of hope, I opened my phone's filemanager and tried to change a file's name in /media/myfolder...
            ...but neither adding a file nor changing its name was accepted by the system...no write access! Also, of course, the contents of files couldn't be changed by e.g. Seabass2-app.
            In spite of the permission changes signaled by the terminal, the files on the SD-card obviously remained unchanged.
            Had no success also when trying a mount-folder in /home/phablet/myfolder...

            The files on the SD card were written by myself with the "external storage"-app on the same phone. So I should be the owner/ root of the files...
            What's wrong with my trials?

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