I have an external USB drive mounted to my 14.0.4 server (which lacks any GUI that I'm aware of). The contents of this drive were created while it was attached to a windows desktop. That computer has since been converted into this 14.0.4 server. I'm attempting to do some basic cleanup (deletions, reorganization) and one folder is giving me fits.
If I attempt to rm -rf the folder, it will tell me that one directory is not empty, and the other encountered an input/output error:
root@swerver:/media/Cavalry# rm -rf .ReadyDLNA/ rm: cannot remove ‘.ReadyDLNA/art_cache/tmp/mnt/sdb1/My Music/Gogol Bordello - Gypsy Punks (Underdog World Strike)’: Input/output error rm: cannot remove ‘.ReadyDLNA/art_cache/tmp/mnt/sdb1/My Music/Gogol Bordello - Multi Kontra Culti vs. Irony’: Directory not empty
If I descend into the "My Music" folder which is the parent of the two offending items in order to get a better look at them, I actually find a bit more stuff there:
total 33325 drwxrwxrwx 1 root root 49152 Nov 11 18:31 . drwxrwxrwx 1 root root 0 Nov 10 23:15 .. -rw-rw-rw- 1 root root 5 Nov 11 18:29 Bloc Party - Silent Alarm -rw-rw-rw- 1 root root 2270543 Jan 6 2009 Bloc Party - Silent Alarm Remixed -rw-rw-rw- 1 root root 2189756 Jan 6 2009 Breeders - Pod -rw-rw-rw- 1 root root 2430533 Jan 6 2009 Cake - Comfort Eagle -rw-rw-rw- 1 root root 2230473 Jan 6 2009 Clap Your Hands Say Yeah - Clap Your Hands Say Yeah -rw-rw-rw- 1 root root 1386336 May 25 2014 Dead Milkmen - Eat Your Paisley! -rw-rw-rw- 1 root root 1887902 May 25 2014 Dead Milkmen - Stoney's Extra Stout (Pig) -rw-rw-rw- 1 root root 3479647 May 25 2014 De Facto - Legende Du Scorpion A Quatre Queues -rw-rw-rw- 1 root root 2614188 May 25 2014 De facto - Megaton Shotblast -rw-rw-rw- 1 root root 1893161 May 25 2014 Deftones - Around The Fur -rw-rw-rw- 1 root root 4954770 May 25 2014 Elliott Smith - Songs From a Basement on the Hill -rw-rw-rw- 1 root root 4326380 May 25 2014 Faith No More - Angel Dust -rw-rw-rw- 1 root root 2334275 May 25 2014 Frank Black - Teenager of the Year -rw-rw-rw- 1 root root 2046463 Nov 11 18:29 Girl Talk - Secret Diary d????????? ? ? ? ? ? Gogol Bordello - Gypsy Punks (Underdog World Strike) drwxrwxrwx 1 root root 4096 Nov 11 18:37 Gogol Bordello - Multi Kontra Culti vs. Irony
Attempting to remove the offending items produces similar output. Attempting to remove this other stuff produces different errors:
rm: cannot remove ‘Bloc Party - Silent Alarm’: No such file or directory rm: cannot remove ‘Bloc Party - Silent Alarm Remixed’: No such file or directory rm: cannot remove ‘Breeders - Pod’: No such file or directory
Those files obviously are there. I am doing this as root. I am unable to move or rename the files: No such file or directory. I am able to echo/redirect contents into the files to overwrite them without issue. I am able to use programs like nano to open them and save them without error. I just can't delete them.