USB Drive - Not able to change file permissions












1















Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while attempting to use:



sudo chown (...)


To change the ownership of a file inside of a USB drive, it was unsuccessful, as the file had the immutable flag set in its extended attributes. This was the solution that worked, removing the flag via:



sudo chattr -i (Path_To_File)


As this was fixed, I basically put this in the back of my mind where I would remember it in case of repetition of the error. Recently, I was formatting a USB custom, and ran into the same error, except this time, nothing that was suggested to fix said error the previous time, has worked. Here's your command output that I know you all love:



sudo chown david:david ~/USB5/Format/type.cr


Please note that I have checked this command, and neither the (~) general path, nor the specific path work. The following is my output:



Operation Not Permitted


Of course, I have tried the fix from before, and the file does not have the flag. What can I do to fix this?



Suggested answer below:



sudo mkdir /media/flash
sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111


This just hangs on the second command, I left the computer for over 2 hours, just hanging.



EDIT: Changing to EXT4 Did nothing, same error.










share|improve this question

























  • which filesystem are you using on your USB drive?

    – syss
    Mar 7 '16 at 13:42











  • @syss For now, FAT32, however eventually I will format to NTFS for specific use

    – David
    Mar 7 '16 at 18:43








  • 1





    Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

    – syss
    Mar 7 '16 at 19:00













  • Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

    – acejavelin
    May 4 '16 at 15:10
















1















Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while attempting to use:



sudo chown (...)


To change the ownership of a file inside of a USB drive, it was unsuccessful, as the file had the immutable flag set in its extended attributes. This was the solution that worked, removing the flag via:



sudo chattr -i (Path_To_File)


As this was fixed, I basically put this in the back of my mind where I would remember it in case of repetition of the error. Recently, I was formatting a USB custom, and ran into the same error, except this time, nothing that was suggested to fix said error the previous time, has worked. Here's your command output that I know you all love:



sudo chown david:david ~/USB5/Format/type.cr


Please note that I have checked this command, and neither the (~) general path, nor the specific path work. The following is my output:



Operation Not Permitted


Of course, I have tried the fix from before, and the file does not have the flag. What can I do to fix this?



Suggested answer below:



sudo mkdir /media/flash
sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111


This just hangs on the second command, I left the computer for over 2 hours, just hanging.



EDIT: Changing to EXT4 Did nothing, same error.










share|improve this question

























  • which filesystem are you using on your USB drive?

    – syss
    Mar 7 '16 at 13:42











  • @syss For now, FAT32, however eventually I will format to NTFS for specific use

    – David
    Mar 7 '16 at 18:43








  • 1





    Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

    – syss
    Mar 7 '16 at 19:00













  • Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

    – acejavelin
    May 4 '16 at 15:10














1












1








1








Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while attempting to use:



sudo chown (...)


To change the ownership of a file inside of a USB drive, it was unsuccessful, as the file had the immutable flag set in its extended attributes. This was the solution that worked, removing the flag via:



sudo chattr -i (Path_To_File)


As this was fixed, I basically put this in the back of my mind where I would remember it in case of repetition of the error. Recently, I was formatting a USB custom, and ran into the same error, except this time, nothing that was suggested to fix said error the previous time, has worked. Here's your command output that I know you all love:



sudo chown david:david ~/USB5/Format/type.cr


Please note that I have checked this command, and neither the (~) general path, nor the specific path work. The following is my output:



Operation Not Permitted


Of course, I have tried the fix from before, and the file does not have the flag. What can I do to fix this?



Suggested answer below:



sudo mkdir /media/flash
sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111


This just hangs on the second command, I left the computer for over 2 hours, just hanging.



EDIT: Changing to EXT4 Did nothing, same error.










share|improve this question
















Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while attempting to use:



sudo chown (...)


To change the ownership of a file inside of a USB drive, it was unsuccessful, as the file had the immutable flag set in its extended attributes. This was the solution that worked, removing the flag via:



sudo chattr -i (Path_To_File)


As this was fixed, I basically put this in the back of my mind where I would remember it in case of repetition of the error. Recently, I was formatting a USB custom, and ran into the same error, except this time, nothing that was suggested to fix said error the previous time, has worked. Here's your command output that I know you all love:



sudo chown david:david ~/USB5/Format/type.cr


Please note that I have checked this command, and neither the (~) general path, nor the specific path work. The following is my output:



Operation Not Permitted


Of course, I have tried the fix from before, and the file does not have the flag. What can I do to fix this?



Suggested answer below:



sudo mkdir /media/flash
sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111


This just hangs on the second command, I left the computer for over 2 hours, just hanging.



EDIT: Changing to EXT4 Did nothing, same error.







usb permissions chown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:24









Community

1




1










asked Mar 7 '16 at 13:16









DavidDavid

1,71652040




1,71652040













  • which filesystem are you using on your USB drive?

    – syss
    Mar 7 '16 at 13:42











  • @syss For now, FAT32, however eventually I will format to NTFS for specific use

    – David
    Mar 7 '16 at 18:43








  • 1





    Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

    – syss
    Mar 7 '16 at 19:00













  • Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

    – acejavelin
    May 4 '16 at 15:10



















  • which filesystem are you using on your USB drive?

    – syss
    Mar 7 '16 at 13:42











  • @syss For now, FAT32, however eventually I will format to NTFS for specific use

    – David
    Mar 7 '16 at 18:43








  • 1





    Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

    – syss
    Mar 7 '16 at 19:00













  • Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

    – acejavelin
    May 4 '16 at 15:10

















which filesystem are you using on your USB drive?

– syss
Mar 7 '16 at 13:42





which filesystem are you using on your USB drive?

– syss
Mar 7 '16 at 13:42













@syss For now, FAT32, however eventually I will format to NTFS for specific use

– David
Mar 7 '16 at 18:43







@syss For now, FAT32, however eventually I will format to NTFS for specific use

– David
Mar 7 '16 at 18:43






1




1





Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

– syss
Mar 7 '16 at 19:00







Then you might want to take a look at this questions: askubuntu.com/questions/118199/… askubuntu.com/questions/11840/… Basically you need to remount your partition with the correct rights.

– syss
Mar 7 '16 at 19:00















Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

– acejavelin
May 4 '16 at 15:10





Fat and NTFS are not native Linux file system types, therefore do not support Linux file attributes. Use a native Linux file system like Ext2/3/4 or F2FS.

– acejavelin
May 4 '16 at 15:10










2 Answers
2






active

oldest

votes


















0














I'm using Sparky linux (Debian testing), but I had the same problem and this may work for you.



After trying all the command line suggestions and not having any success, what worked for me was simply using Gparted and formatting the drive to ext4 and then doing a reformat to fat32 again and all is well.



It was kind of strange as I had been using this 16gb Adata USB3 for a couple of years and never had any issues. Hope it works for you.






share|improve this answer































    0














    HOW CAN I ASK MY OWN QUESTION HERE






    share|improve this answer








    New contributor




    Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      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%2f743055%2fusb-drive-not-able-to-change-file-permissions%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      I'm using Sparky linux (Debian testing), but I had the same problem and this may work for you.



      After trying all the command line suggestions and not having any success, what worked for me was simply using Gparted and formatting the drive to ext4 and then doing a reformat to fat32 again and all is well.



      It was kind of strange as I had been using this 16gb Adata USB3 for a couple of years and never had any issues. Hope it works for you.






      share|improve this answer




























        0














        I'm using Sparky linux (Debian testing), but I had the same problem and this may work for you.



        After trying all the command line suggestions and not having any success, what worked for me was simply using Gparted and formatting the drive to ext4 and then doing a reformat to fat32 again and all is well.



        It was kind of strange as I had been using this 16gb Adata USB3 for a couple of years and never had any issues. Hope it works for you.






        share|improve this answer


























          0












          0








          0







          I'm using Sparky linux (Debian testing), but I had the same problem and this may work for you.



          After trying all the command line suggestions and not having any success, what worked for me was simply using Gparted and formatting the drive to ext4 and then doing a reformat to fat32 again and all is well.



          It was kind of strange as I had been using this 16gb Adata USB3 for a couple of years and never had any issues. Hope it works for you.






          share|improve this answer













          I'm using Sparky linux (Debian testing), but I had the same problem and this may work for you.



          After trying all the command line suggestions and not having any success, what worked for me was simply using Gparted and formatting the drive to ext4 and then doing a reformat to fat32 again and all is well.



          It was kind of strange as I had been using this 16gb Adata USB3 for a couple of years and never had any issues. Hope it works for you.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 2 '16 at 20:46









          Michael BakerMichael Baker

          1




          1

























              0














              HOW CAN I ASK MY OWN QUESTION HERE






              share|improve this answer








              New contributor




              Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                HOW CAN I ASK MY OWN QUESTION HERE






                share|improve this answer








                New contributor




                Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  HOW CAN I ASK MY OWN QUESTION HERE






                  share|improve this answer








                  New contributor




                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  HOW CAN I ASK MY OWN QUESTION HERE







                  share|improve this answer








                  New contributor




                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 16 mins ago









                  Takara CreekmoreTakara Creekmore

                  11




                  11




                  New contributor




                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Takara Creekmore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      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%2f743055%2fusb-drive-not-able-to-change-file-permissions%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

                      香粉寮

                      GameSpot