Remove files with strange name, no inode name, and not shown by ls











up vote
0
down vote

favorite












Edit: I am not sure if my choice to post the question on stackoverflow is right. Maybe this question is not appropriate here? Should it be migrated to superuser? Any other suggestions?



It all started in windows
, where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below Windows example. The error messages I got when trying to remove them were either "Permission required" or "The file name is too long".
Ok, I said, I will turn to linux (actually, I just opened the MobaXterm terminal, thinking it would be a 5 seconds job).



I navigated to the incriminated folder, and just typed



ls -l


to find out that the command returned the names of all the other files in the folder, while fo the files "from the 80s" it listed the following message:



"ls: ./0: No such file or directory"


The same message was shown for all the files from the 80s. Following the suggestion from some other forum, I tried to get the inode name for the files using



ls -li


But (as expected) I got the inode number for all the files excepted those "from the 80s", for which I still got the message



ls: ./a: No such file or directory


Thinking I was smart, I tried to work on the creation date. I found a suggestion on how to remove files created before a given date here.
I created the timestamp file as suggeste (with the same date); then, as a check, I just run the find part, without executing the removal part. What I got was the list of a few files older than the timestamp and a series of messages like the one shown below



find: ./a: No such file or directory


So: what should I try now? I am open to solutions in windows or ubuntu.










share|improve this question




























    up vote
    0
    down vote

    favorite












    Edit: I am not sure if my choice to post the question on stackoverflow is right. Maybe this question is not appropriate here? Should it be migrated to superuser? Any other suggestions?



    It all started in windows
    , where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below Windows example. The error messages I got when trying to remove them were either "Permission required" or "The file name is too long".
    Ok, I said, I will turn to linux (actually, I just opened the MobaXterm terminal, thinking it would be a 5 seconds job).



    I navigated to the incriminated folder, and just typed



    ls -l


    to find out that the command returned the names of all the other files in the folder, while fo the files "from the 80s" it listed the following message:



    "ls: ./0: No such file or directory"


    The same message was shown for all the files from the 80s. Following the suggestion from some other forum, I tried to get the inode name for the files using



    ls -li


    But (as expected) I got the inode number for all the files excepted those "from the 80s", for which I still got the message



    ls: ./a: No such file or directory


    Thinking I was smart, I tried to work on the creation date. I found a suggestion on how to remove files created before a given date here.
    I created the timestamp file as suggeste (with the same date); then, as a check, I just run the find part, without executing the removal part. What I got was the list of a few files older than the timestamp and a series of messages like the one shown below



    find: ./a: No such file or directory


    So: what should I try now? I am open to solutions in windows or ubuntu.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Edit: I am not sure if my choice to post the question on stackoverflow is right. Maybe this question is not appropriate here? Should it be migrated to superuser? Any other suggestions?



      It all started in windows
      , where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below Windows example. The error messages I got when trying to remove them were either "Permission required" or "The file name is too long".
      Ok, I said, I will turn to linux (actually, I just opened the MobaXterm terminal, thinking it would be a 5 seconds job).



      I navigated to the incriminated folder, and just typed



      ls -l


      to find out that the command returned the names of all the other files in the folder, while fo the files "from the 80s" it listed the following message:



      "ls: ./0: No such file or directory"


      The same message was shown for all the files from the 80s. Following the suggestion from some other forum, I tried to get the inode name for the files using



      ls -li


      But (as expected) I got the inode number for all the files excepted those "from the 80s", for which I still got the message



      ls: ./a: No such file or directory


      Thinking I was smart, I tried to work on the creation date. I found a suggestion on how to remove files created before a given date here.
      I created the timestamp file as suggeste (with the same date); then, as a check, I just run the find part, without executing the removal part. What I got was the list of a few files older than the timestamp and a series of messages like the one shown below



      find: ./a: No such file or directory


      So: what should I try now? I am open to solutions in windows or ubuntu.










      share|improve this question















      Edit: I am not sure if my choice to post the question on stackoverflow is right. Maybe this question is not appropriate here? Should it be migrated to superuser? Any other suggestions?



      It all started in windows
      , where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below Windows example. The error messages I got when trying to remove them were either "Permission required" or "The file name is too long".
      Ok, I said, I will turn to linux (actually, I just opened the MobaXterm terminal, thinking it would be a 5 seconds job).



      I navigated to the incriminated folder, and just typed



      ls -l


      to find out that the command returned the names of all the other files in the folder, while fo the files "from the 80s" it listed the following message:



      "ls: ./0: No such file or directory"


      The same message was shown for all the files from the 80s. Following the suggestion from some other forum, I tried to get the inode name for the files using



      ls -li


      But (as expected) I got the inode number for all the files excepted those "from the 80s", for which I still got the message



      ls: ./a: No such file or directory


      Thinking I was smart, I tried to work on the creation date. I found a suggestion on how to remove files created before a given date here.
      I created the timestamp file as suggeste (with the same date); then, as a check, I just run the find part, without executing the removal part. What I got was the list of a few files older than the timestamp and a series of messages like the one shown below



      find: ./a: No such file or directory


      So: what should I try now? I am open to solutions in windows or ubuntu.







      windows ubuntu inode mobaxterm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 at 13:52

























      asked Nov 17 at 12:34









      Fabio Marroni

      310415




      310415





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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: 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%2fstackoverflow.com%2fquestions%2f53351309%2fremove-files-with-strange-name-no-inode-name-and-not-shown-by-ls%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53351309%2fremove-files-with-strange-name-no-inode-name-and-not-shown-by-ls%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

          Paul Cézanne

          UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

          Angular material date-picker (MatDatepicker) auto completes the date on focus out