11
3
Context: I added a drive to my machine, and for whatever reason, I am unable to access a directory(?) on it.
ls -l
ls: cannot access Downloads: No such file or directory
total 56
d????????? ? ? ? ? ? Downloads
drwxr-xr-x 26 user 12288 Aug 12 23:29 foo
ls -a
. .. Downloads foo
cd
bash: cd: Downloads: No such file or directory
touch
touch: cannot touch ‘Downloads’: File exists
mkdir Downloads
mkdir: cannot create directory ‘Downloads’: File exists
cat Downloads
cat: Downloads: No such file or directory
file Downloads
Downloads: cannot open `Downloads' (No such file or directory)
mv Downloads down
mv: cannot stat ‘Downloads’: No such file or directory
Furthermore, the following commands do not remove the file(?), as root or otherwise:
rm Downloads
rm -rf Downloads
rmdir Downloads
One more piece of information, bash auto-completes Downloads, so bash also seems to think it is there.
Perhaps your filesystem has been corrupted. Are you able to do any action in a different OS? – Zumo de Vidrio – 2017-01-12T09:15:04.787
I would say that the metadata is corrupted or unreadable by the current OS. If you "repair" it there, it may work or it may become permanently inaccessible anywhere. Proceed with caution (and backups) – Kit – 2017-05-07T05:21:13.353
Perhaps this is the same as https://askubuntu.com/questions/548930/d-cannot-access-dirname-no-such-device
– Foo Bar – 2017-08-02T20:18:26.000