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
. 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
add a comment |
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
. 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
add a comment |
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
. 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
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
. 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
windows ubuntu inode mobaxterm
edited Nov 18 at 13:52
asked Nov 17 at 12:34
Fabio Marroni
310415
310415
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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