I have two somehow corrupt files in my second hard disk of my laptop, which has dual boot Ubuntu 15.04 and Windows 7.
I keep it mounted as a ntfs formatted partition in media. I share this drive with Windows, in the sense that Windows also mounts it all the time and accesses it.
File A was just a .sh file and appears as a directory in the explorer. File B appears as a file although it was originally a directory.
Running
sudo rm -rf fileA
on file A just shows no output at all, not even an error message.
This also shows nothing:
lsattr fileA
For file B, sudo rm -rf
also shows nothing, while
lsattr fileB
at least shows this:
lsattr: Invalid argument While reading flags on fileB
My HDD is not executable in fstab. I planned to change this at some point, but I don't know if it will have an effect:
UUID=C666BE3C66BE2D55 /media/santiago/1TBHDD ntfs rw,auto,user,fmask=0111,d mask=0000 0 0
Update 1
My filesystem here is ntfs. Now, fileBs name is
Resized-or-Shared-Pictures`
This is the output of ls -lQ Resized-or-Shared-Pictures
-rw-rw-rw- 1 root root 272 Sep 14 11:02 "Resized-or-Shared-Pictures"
However, the output of rm -r
is:
rm: cannot remove ‘Resized-or-Shared-Pictures’: No such file or directory
ls -lQ fileA
. Also, what filesystem is this on? – terdon♦ Sep 18 '15 at 15:34rm -rf
is that-f
suppresses them. Try justrm -r
, and it might give you a useful message. – Tom Hunt Sep 18 '15 at 15:53