I have 2 files in a directory named App on my Ubuntu mahcine. I want to remove those 2 files completely from that directory, but when I try to remove them using rm -rf, they are not deleted.
I can't even see these 2 files in the App folder in the GUI. ls al in the directory returns:
ls: cannot access Notepad_verify���,;()p_151003101035_Results_2800.rpt: No such file or directory ls: cannot access M J_g ;w-%()�t�{,l]_120424113032_Results_2800.rpt: No such file or directory total 24 drwxrwxrwx 2 root root 20480 Oct 7 16:19 . drwxr-xr-x 24 root root 4096 Oct 7 2015 .. -????????? ? ? ? ? ? M J_g ;w-%()?t?{,l]_120424113032_Results_2800.rpt -????????? ? ? ? ? ? Notepad_verify???,;()p_151003101035_Results_2800.rpt If I try rm -rf, then command runs successfully but the files are not deleted. They are still in the 'App' directory.
I also tried to remove the complete directory.
With rm -rf App/, I get:
rm: cannot remove ‘AppData/’: Directory not empty And rm -rf App/* seems to run successfully but the files are still in the App folder.
I can't even display the permission or time & date details. I can't use rm, mv, or cp commands on these files.
How can I delete these files?
fsckreport a clean filesystem?fsckon which? I ran 'fsck' on my current directory where these 2 files lies. It shows me like this.: fsck from util-linux 2.20.1 e2fsck 1.42.9 (4-Feb-2014) /dev/sda8 is mounted. e2fsck: Cannot continue, aborting. Is this what you need?or something else? please let me know.df /path/to/App. Can you create a file and delete it? Trytouch foo; rm fooin theAppdirectory. Also, try unmounting the filesystem where this is mounted, and runningfsckon it (it will be the/dev/sdXfrom the output ofdf).umount /dev/sdc1then, if umount correctlyfsck /dev/sdc1accept all. remount, files should be deletable.