automount USB stick ext4 on Fedora XFCE

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root



# df -T
/dev/sdc5 ext4 11093936 27736 10499316 1% /run/media/username/My-USBLinux
/dev/sdc1 vfat 4087992 357920 3730072 9% /run/media/username/MyUSB


Mount directory:



# ls -l /run/media/username
drwxr-xr-x 3 username username 4096 1. led 1970 MyUSB
drwxr-xr-x 3 root root 4096 21. čen 11.19 My-USBLinux


Is any solution to automont ext4 under username ?







share|improve this question























    up vote
    0
    down vote

    favorite












    I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root



    # df -T
    /dev/sdc5 ext4 11093936 27736 10499316 1% /run/media/username/My-USBLinux
    /dev/sdc1 vfat 4087992 357920 3730072 9% /run/media/username/MyUSB


    Mount directory:



    # ls -l /run/media/username
    drwxr-xr-x 3 username username 4096 1. led 1970 MyUSB
    drwxr-xr-x 3 root root 4096 21. čen 11.19 My-USBLinux


    Is any solution to automont ext4 under username ?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root



      # df -T
      /dev/sdc5 ext4 11093936 27736 10499316 1% /run/media/username/My-USBLinux
      /dev/sdc1 vfat 4087992 357920 3730072 9% /run/media/username/MyUSB


      Mount directory:



      # ls -l /run/media/username
      drwxr-xr-x 3 username username 4096 1. led 1970 MyUSB
      drwxr-xr-x 3 root root 4096 21. čen 11.19 My-USBLinux


      Is any solution to automont ext4 under username ?







      share|improve this question











      I have USB stick with two partitions VFAT and ext4. When I plug in stick, VFAT partition is RW automounted but ext4 partition is RO for user because is mounted under root:root



      # df -T
      /dev/sdc5 ext4 11093936 27736 10499316 1% /run/media/username/My-USBLinux
      /dev/sdc1 vfat 4087992 357920 3730072 9% /run/media/username/MyUSB


      Mount directory:



      # ls -l /run/media/username
      drwxr-xr-x 3 username username 4096 1. led 1970 MyUSB
      drwxr-xr-x 3 root root 4096 21. čen 11.19 My-USBLinux


      Is any solution to automont ext4 under username ?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 21 at 10:08









      perLHawk

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You can use chown to change the owner of the /run/media/username/My-USBLinux folder






          share|improve this answer





















          • Unfortunately, it does not work.
            – perLHawk
            Jun 22 at 5:32










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451060%2fautomount-usb-stick-ext4-on-fedora-xfce%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You can use chown to change the owner of the /run/media/username/My-USBLinux folder






          share|improve this answer





















          • Unfortunately, it does not work.
            – perLHawk
            Jun 22 at 5:32














          up vote
          0
          down vote













          You can use chown to change the owner of the /run/media/username/My-USBLinux folder






          share|improve this answer





















          • Unfortunately, it does not work.
            – perLHawk
            Jun 22 at 5:32












          up vote
          0
          down vote










          up vote
          0
          down vote









          You can use chown to change the owner of the /run/media/username/My-USBLinux folder






          share|improve this answer













          You can use chown to change the owner of the /run/media/username/My-USBLinux folder







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 21 at 12:23









          Jan

          111




          111











          • Unfortunately, it does not work.
            – perLHawk
            Jun 22 at 5:32
















          • Unfortunately, it does not work.
            – perLHawk
            Jun 22 at 5:32















          Unfortunately, it does not work.
          – perLHawk
          Jun 22 at 5:32




          Unfortunately, it does not work.
          – perLHawk
          Jun 22 at 5:32












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451060%2fautomount-usb-stick-ext4-on-fedora-xfce%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay