I see ghost files in red colour inside some of my directories:
[drey@cyan|23:54|~/downloads]ls -la
ls: cannot access teamviewer9_linux.deb: No such file or directory
total 1318096
drwxrwx--- 1 root plugdev 8192 Sep 30 23:32 .
drwxrwx--- 1 root plugdev 4096 Sep 25 14:06 ..
drwxrwx--- 1 root plugdev 4096 Aug 6 15:04 fl
-rwxrwx--- 1 root plugdev 1329594368 Sep 2 00:24 linuxmint-17-mate-32bit-v2.iso
-rwxrwx--- 1 root plugdev 20118938 Sep 30 23:32 skype-debian_4.3.0.37-1_i386.deb
-????????? ? ? ? ? ? teamviewer9_linux.deb
[drey@cyan|23:54|~/downloads]ls -la teamviewer9_linux.deb
ls: cannot access teamviewer9_linux.deb: No such file or directory
[drey@cyan|23:54|~/downloads]
I think it can be some type of disk failure, should I use fsck --force
?
- How did I create them?
How can I get rid of them?
$ smartctl -a /dev/sda
didn't show any serious failure symptoms (5,197,198,199 all equal zero).
P.S.: I've tried touch /forcefsck
and reboot. Now I have unreadable downloads dir:
[drey@cyan|18:44|~]ls -l ~/downloads
lrwxrwxrwx 1 drey drey 16 Feb 8 2013 /home/drey/downloads -> /data/downloads/
[drey@cyan|18:45|~]ls -l ~/downloads/
ls: reading directory /home/drey/downloads/: Input/output error
total 0
/data
is NTFS partition:
/dev/sda3 on /data type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
NTFS check gone good:
[drey@cyan|18:52|~]sudo ntfsfix /dev/sda3
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda3 was processed successfully.
chmod 0777 ~/downloads
) – Raza Sep 30 '14 at 15:33fsck
will clear it up. – Barmar Sep 30 '14 at 15:48stat()
the directory entry. You can also see those if you ls a directory for which you have read but not x search permission. However, there maybe possibility of corruption and should examine /var/log/messages or dmesg for any failure – Raza Sep 30 '14 at 15:53chmod
may cause further damage, it's best to not advise unless your sure, or to say, "I think". – slm Sep 30 '14 at 16:23