Can't write on FAT32 partition although having rw mount option [Ubuntu 18]?












0















I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo. I added an fstab option rw to make it writable but still it doesn't work.










share|improve this question



























    0















    I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo. I added an fstab option rw to make it writable but still it doesn't work.










    share|improve this question

























      0












      0








      0








      I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo. I added an fstab option rw to make it writable but still it doesn't work.










      share|improve this question














      I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo. I added an fstab option rw to make it writable but still it doesn't work.







      partitioning permissions mount fstab






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 28 at 9:09









      DeadDead

      5314




      5314






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like



          target=/dev/...
          mntdir=the directory where it should be mounted
          sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir





          share|improve this answer
























          • I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

            – Dead
            Jan 28 at 15:23











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113469%2fcant-write-on-fat32-partition-although-having-rw-mount-option-ubuntu-18%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like



          target=/dev/...
          mntdir=the directory where it should be mounted
          sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir





          share|improve this answer
























          • I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

            – Dead
            Jan 28 at 15:23
















          1














          Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like



          target=/dev/...
          mntdir=the directory where it should be mounted
          sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir





          share|improve this answer
























          • I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

            – Dead
            Jan 28 at 15:23














          1












          1








          1







          Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like



          target=/dev/...
          mntdir=the directory where it should be mounted
          sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir





          share|improve this answer













          Read man mount, especially the "Mount options for fat" part. You can use the uid= and gid= options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like



          target=/dev/...
          mntdir=the directory where it should be mounted
          sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 28 at 14:58









          waltinatorwaltinator

          22.4k74169




          22.4k74169













          • I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

            – Dead
            Jan 28 at 15:23



















          • I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

            – Dead
            Jan 28 at 15:23

















          I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

          – Dead
          Jan 28 at 15:23





          I changed both uid and gid to 1000 (my user id) and now it works! Thank you so much!

          – Dead
          Jan 28 at 15:23


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113469%2fcant-write-on-fat32-partition-although-having-rw-mount-option-ubuntu-18%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀