OSX: Can't remove or hide 'filename'.extension/zone.identifier












2















Okay I got one for you guys. I am using OS X Mountain Lion, with a Windows 7 partition in Bootcamp. In Windows 7, I used Paragon to be able to write to my HFS partition, where my home folder in OSX is located. I did this because I wanted a unified home folder (one downloads folder, one movies folder etc.).



After succeeding in setting this up (I thought), I booted in OSX again. I noticed that along with my files that I downloaded in Windows, a file named exactly the same appeared as well, only with a /zone.identifier suffix. I have no idea what this file is and/or does.



Anyway I thought oh well, I'll just delete it whenever I boot into OSX after downloading stuff in Windows. I was wrong. When I try to move it to the trash I get this exact message:




The operation can't be completed because one or more items can't be found.
(Error code -43)




I tried dragging to the trash, command-dragging to the trash, right clicking and selecting 'Move to trash', and I tried using terminal to either delete (sudo rm -rf path/to/file) or hide (chflags hidden path/to/file). After trying to rm -rf I get nothing, it just goes to a new line. After trying to hide with chflags hidden I get this error: No such file or directory.



Again, I have no idea what this file is, I have never seen it and a google search didn't help me much either, I just found that it was some kind of metadata file, but nothing about trying to delete them.



TLDR: OSX basically says I am crazy and a file doesn't exist, so I can't hide or remove it.










share|improve this question

























  • You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

    – Lri
    Aug 9 '13 at 14:33











  • Can you run ls -aF on one of the directories and add it to the question?

    – spuder
    Aug 9 '13 at 15:23
















2















Okay I got one for you guys. I am using OS X Mountain Lion, with a Windows 7 partition in Bootcamp. In Windows 7, I used Paragon to be able to write to my HFS partition, where my home folder in OSX is located. I did this because I wanted a unified home folder (one downloads folder, one movies folder etc.).



After succeeding in setting this up (I thought), I booted in OSX again. I noticed that along with my files that I downloaded in Windows, a file named exactly the same appeared as well, only with a /zone.identifier suffix. I have no idea what this file is and/or does.



Anyway I thought oh well, I'll just delete it whenever I boot into OSX after downloading stuff in Windows. I was wrong. When I try to move it to the trash I get this exact message:




The operation can't be completed because one or more items can't be found.
(Error code -43)




I tried dragging to the trash, command-dragging to the trash, right clicking and selecting 'Move to trash', and I tried using terminal to either delete (sudo rm -rf path/to/file) or hide (chflags hidden path/to/file). After trying to rm -rf I get nothing, it just goes to a new line. After trying to hide with chflags hidden I get this error: No such file or directory.



Again, I have no idea what this file is, I have never seen it and a google search didn't help me much either, I just found that it was some kind of metadata file, but nothing about trying to delete them.



TLDR: OSX basically says I am crazy and a file doesn't exist, so I can't hide or remove it.










share|improve this question

























  • You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

    – Lri
    Aug 9 '13 at 14:33











  • Can you run ls -aF on one of the directories and add it to the question?

    – spuder
    Aug 9 '13 at 15:23














2












2








2


1






Okay I got one for you guys. I am using OS X Mountain Lion, with a Windows 7 partition in Bootcamp. In Windows 7, I used Paragon to be able to write to my HFS partition, where my home folder in OSX is located. I did this because I wanted a unified home folder (one downloads folder, one movies folder etc.).



After succeeding in setting this up (I thought), I booted in OSX again. I noticed that along with my files that I downloaded in Windows, a file named exactly the same appeared as well, only with a /zone.identifier suffix. I have no idea what this file is and/or does.



Anyway I thought oh well, I'll just delete it whenever I boot into OSX after downloading stuff in Windows. I was wrong. When I try to move it to the trash I get this exact message:




The operation can't be completed because one or more items can't be found.
(Error code -43)




I tried dragging to the trash, command-dragging to the trash, right clicking and selecting 'Move to trash', and I tried using terminal to either delete (sudo rm -rf path/to/file) or hide (chflags hidden path/to/file). After trying to rm -rf I get nothing, it just goes to a new line. After trying to hide with chflags hidden I get this error: No such file or directory.



Again, I have no idea what this file is, I have never seen it and a google search didn't help me much either, I just found that it was some kind of metadata file, but nothing about trying to delete them.



TLDR: OSX basically says I am crazy and a file doesn't exist, so I can't hide or remove it.










share|improve this question
















Okay I got one for you guys. I am using OS X Mountain Lion, with a Windows 7 partition in Bootcamp. In Windows 7, I used Paragon to be able to write to my HFS partition, where my home folder in OSX is located. I did this because I wanted a unified home folder (one downloads folder, one movies folder etc.).



After succeeding in setting this up (I thought), I booted in OSX again. I noticed that along with my files that I downloaded in Windows, a file named exactly the same appeared as well, only with a /zone.identifier suffix. I have no idea what this file is and/or does.



Anyway I thought oh well, I'll just delete it whenever I boot into OSX after downloading stuff in Windows. I was wrong. When I try to move it to the trash I get this exact message:




The operation can't be completed because one or more items can't be found.
(Error code -43)




I tried dragging to the trash, command-dragging to the trash, right clicking and selecting 'Move to trash', and I tried using terminal to either delete (sudo rm -rf path/to/file) or hide (chflags hidden path/to/file). After trying to rm -rf I get nothing, it just goes to a new line. After trying to hide with chflags hidden I get this error: No such file or directory.



Again, I have no idea what this file is, I have never seen it and a google search didn't help me much either, I just found that it was some kind of metadata file, but nothing about trying to delete them.



TLDR: OSX basically says I am crazy and a file doesn't exist, so I can't hide or remove it.







windows macos






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 17 '14 at 10:11









Der Hochstapler

68.1k50230286




68.1k50230286










asked Aug 9 '13 at 13:54









user244506user244506

1112




1112













  • You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

    – Lri
    Aug 9 '13 at 14:33











  • Can you run ls -aF on one of the directories and add it to the question?

    – spuder
    Aug 9 '13 at 15:23



















  • You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

    – Lri
    Aug 9 '13 at 14:33











  • Can you run ls -aF on one of the directories and add it to the question?

    – spuder
    Aug 9 '13 at 15:23

















You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

– Lri
Aug 9 '13 at 14:33





You could try quitting and reopening Finder or running chflags nosappend,noschg in single user mode.

– Lri
Aug 9 '13 at 14:33













Can you run ls -aF on one of the directories and add it to the question?

– spuder
Aug 9 '13 at 15:23





Can you run ls -aF on one of the directories and add it to the question?

– spuder
Aug 9 '13 at 15:23










2 Answers
2






active

oldest

votes


















0














NTFS has "alternate streams" which are similar to "forks" in HFS, except they can be multiple and named – more like "extended attributes", in fact. For example, almost all Windows browsers mark downloaded files by creating a stream named Zone.Identifier, so that Windows Explorer will know it's a downloaded file and will verify signatures, ask for confirmation when running, etc.



The alternate streams are accessed as regular files with a special name like filename:streamname – for example, the web browser just creates a file called myfile:Zone.Identifier when it wants to add a stream. Since HFS doesn't support streams the way NTFS would, but it does allow filenames with :s in them, you end up with a strange file instead.



Note that Finder swaps : and / when listing files, for historical reasons (related to Mac OS X being Unix and older versions not). So if it shows myfile/Zone.Identifier, you actually need to use



rm myfile:Zone.Identifier





share|improve this answer


























  • Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

    – user244506
    Aug 9 '13 at 19:25





















0














After trying everything possible under OSX, using the method below was the only way I was able to delete the annoying file tagged as: xx.Zone.Identifier



Try this:




  1. Restart in Windows

  2. Open the drive where the folder/file (zone.identifier) you trying to delete is located.
    In my case it was located: external drive/.Trashes/501/XXX

  3. Make sure that that under options you select: view all files (in order to view all hidden files)

  4. Search for your specific folder/file (in my case was a jpg image located under the Picture folder)

  5. Delete


Done.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f629954%2fosx-cant-remove-or-hide-filename-extension-zone-identifier%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














    NTFS has "alternate streams" which are similar to "forks" in HFS, except they can be multiple and named – more like "extended attributes", in fact. For example, almost all Windows browsers mark downloaded files by creating a stream named Zone.Identifier, so that Windows Explorer will know it's a downloaded file and will verify signatures, ask for confirmation when running, etc.



    The alternate streams are accessed as regular files with a special name like filename:streamname – for example, the web browser just creates a file called myfile:Zone.Identifier when it wants to add a stream. Since HFS doesn't support streams the way NTFS would, but it does allow filenames with :s in them, you end up with a strange file instead.



    Note that Finder swaps : and / when listing files, for historical reasons (related to Mac OS X being Unix and older versions not). So if it shows myfile/Zone.Identifier, you actually need to use



    rm myfile:Zone.Identifier





    share|improve this answer


























    • Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

      – user244506
      Aug 9 '13 at 19:25


















    0














    NTFS has "alternate streams" which are similar to "forks" in HFS, except they can be multiple and named – more like "extended attributes", in fact. For example, almost all Windows browsers mark downloaded files by creating a stream named Zone.Identifier, so that Windows Explorer will know it's a downloaded file and will verify signatures, ask for confirmation when running, etc.



    The alternate streams are accessed as regular files with a special name like filename:streamname – for example, the web browser just creates a file called myfile:Zone.Identifier when it wants to add a stream. Since HFS doesn't support streams the way NTFS would, but it does allow filenames with :s in them, you end up with a strange file instead.



    Note that Finder swaps : and / when listing files, for historical reasons (related to Mac OS X being Unix and older versions not). So if it shows myfile/Zone.Identifier, you actually need to use



    rm myfile:Zone.Identifier





    share|improve this answer


























    • Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

      – user244506
      Aug 9 '13 at 19:25
















    0












    0








    0







    NTFS has "alternate streams" which are similar to "forks" in HFS, except they can be multiple and named – more like "extended attributes", in fact. For example, almost all Windows browsers mark downloaded files by creating a stream named Zone.Identifier, so that Windows Explorer will know it's a downloaded file and will verify signatures, ask for confirmation when running, etc.



    The alternate streams are accessed as regular files with a special name like filename:streamname – for example, the web browser just creates a file called myfile:Zone.Identifier when it wants to add a stream. Since HFS doesn't support streams the way NTFS would, but it does allow filenames with :s in them, you end up with a strange file instead.



    Note that Finder swaps : and / when listing files, for historical reasons (related to Mac OS X being Unix and older versions not). So if it shows myfile/Zone.Identifier, you actually need to use



    rm myfile:Zone.Identifier





    share|improve this answer















    NTFS has "alternate streams" which are similar to "forks" in HFS, except they can be multiple and named – more like "extended attributes", in fact. For example, almost all Windows browsers mark downloaded files by creating a stream named Zone.Identifier, so that Windows Explorer will know it's a downloaded file and will verify signatures, ask for confirmation when running, etc.



    The alternate streams are accessed as regular files with a special name like filename:streamname – for example, the web browser just creates a file called myfile:Zone.Identifier when it wants to add a stream. Since HFS doesn't support streams the way NTFS would, but it does allow filenames with :s in them, you end up with a strange file instead.



    Note that Finder swaps : and / when listing files, for historical reasons (related to Mac OS X being Unix and older versions not). So if it shows myfile/Zone.Identifier, you actually need to use



    rm myfile:Zone.Identifier






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 9 '13 at 15:19

























    answered Aug 9 '13 at 15:10









    grawitygrawity

    241k37508562




    241k37508562













    • Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

      – user244506
      Aug 9 '13 at 19:25





















    • Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

      – user244506
      Aug 9 '13 at 19:25



















    Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

    – user244506
    Aug 9 '13 at 19:25







    Hey man, first of thanks for your help. When I try to remove it in terminal it outputs this. In the first line I just dragged my file into the terminal window and pressed enter, and in the second line I tried your method, or at least I think I did. Also, in Finder it shows "iTunes64Setup.exe/Zone.Identifier". When I drag it into terminal it shows the same, but seems to transform / into :

    – user244506
    Aug 9 '13 at 19:25















    0














    After trying everything possible under OSX, using the method below was the only way I was able to delete the annoying file tagged as: xx.Zone.Identifier



    Try this:




    1. Restart in Windows

    2. Open the drive where the folder/file (zone.identifier) you trying to delete is located.
      In my case it was located: external drive/.Trashes/501/XXX

    3. Make sure that that under options you select: view all files (in order to view all hidden files)

    4. Search for your specific folder/file (in my case was a jpg image located under the Picture folder)

    5. Delete


    Done.






    share|improve this answer






























      0














      After trying everything possible under OSX, using the method below was the only way I was able to delete the annoying file tagged as: xx.Zone.Identifier



      Try this:




      1. Restart in Windows

      2. Open the drive where the folder/file (zone.identifier) you trying to delete is located.
        In my case it was located: external drive/.Trashes/501/XXX

      3. Make sure that that under options you select: view all files (in order to view all hidden files)

      4. Search for your specific folder/file (in my case was a jpg image located under the Picture folder)

      5. Delete


      Done.






      share|improve this answer




























        0












        0








        0







        After trying everything possible under OSX, using the method below was the only way I was able to delete the annoying file tagged as: xx.Zone.Identifier



        Try this:




        1. Restart in Windows

        2. Open the drive where the folder/file (zone.identifier) you trying to delete is located.
          In my case it was located: external drive/.Trashes/501/XXX

        3. Make sure that that under options you select: view all files (in order to view all hidden files)

        4. Search for your specific folder/file (in my case was a jpg image located under the Picture folder)

        5. Delete


        Done.






        share|improve this answer















        After trying everything possible under OSX, using the method below was the only way I was able to delete the annoying file tagged as: xx.Zone.Identifier



        Try this:




        1. Restart in Windows

        2. Open the drive where the folder/file (zone.identifier) you trying to delete is located.
          In my case it was located: external drive/.Trashes/501/XXX

        3. Make sure that that under options you select: view all files (in order to view all hidden files)

        4. Search for your specific folder/file (in my case was a jpg image located under the Picture folder)

        5. Delete


        Done.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jul 1 '14 at 16:55









        Jason Aller

        2,22652121




        2,22652121










        answered Jul 1 '14 at 16:02









        user340300user340300

        1




        1






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f629954%2fosx-cant-remove-or-hide-filename-extension-zone-identifier%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 reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?