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 568 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

          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