Originally Posted by Bassman449
I have a file on an external hard drive that appears to be corrupted. I tried deleting the file and rm returns
rm: cannot remove : No such file or directory
If I run ls on the directory I can see the file clearly and running ls --size shows it to take one block.
I need a way to delete this file if anyone has any suggestions I appreciate it.
the error message suggests that for some reason the file name being passed to "rm" is an empty string. That's because the error message should be formatted:
rm: cannot remove <filename here>: No such file or directory
but in your message there was nothing there. Another possibility is some binary characters got passed to rm that can't print to the screen