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.
sudo rm -rf fileA
on file A just shows no output at all, not even an error message.
This also shows nothing:
For file B,
sudo rm -rf also shows nothing, while
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
My filesystem here is ntfs. Now, fileB
s name isResized-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