After more than a decade of apathy and negligence, I'm finally cleaning up and organizing the data in my life e.g. running fslint on my venerable NAS (Debian with mdm), finishing getting rsnapshot setup, et al.
One step was moving data from an external HDD to my NAS. While cleaning up said data now on my NAS, I encountered a directoryish that I can't delete despite every trick I know. Thoughts on how i can get it deleted? Note at the end where I tried to take the inode route, it said it's both a directory and not a directory in the output. Odd, right? I can cd into it, but ls -lah does not yield . nor ..
# ls
'Fran?ois Couperin'
#ls -lah
ls: 'Fran?ois Couperin': No such file or directory
total 0
drwxr-xr-x+ 3 jdoe jdoe 0 Nov 4 02:11 .
drwxr-xr-x+ 3 jdoe jdoe 0 Nov 3 11:40 ..
drwxr-xr-x 3 jdoe jdoe 0 Aug 15 2014 'Fran?ois Couperin'
# rm F*
rm: cannot remove 'Fran?ois Couperin': Is a directory
# rm -r F*
rm: cannot remove 'Fran?ois Couperin': No such file or directory
# rm -rfi F*
rm: descend into directory 'Fran?ois Couperin'? y
rm: cannot remove 'Fran?ois Couperin': No such file or directory
# find -maxdepth 1 -name F*
./Fran?ois Couperin
# find -maxdepth 1 -name F* -delete
find: cannot delete ‘./Fran?ois Couperin’: No such file or directory
# ls -il
ls: 'Fran?ois Couperin': No such file or directory
total 0
239210 drwxr-xr-x 3 jdoe jdoe 0 Aug 15 2014 'Fran?ois Couperin'
# find . -inum 239210 -exec rm -i {} \;
rm: cannot remove './Fran?ois Couperin': Is a directory
find: ‘./Fran?ois Couperin’: Not a directory
# cd Fran\?ois\ Couperin/
.../Music/Fran?ois Couperin# ls -lah
ls: cannot open directory '.': No such file or directory
Filesystem on the NAS is jfs. Client OS happens to be Ubuntu at the moment.
Origin was a CD rip (François Couperin was a baroque composer), more than likely ripped on a Mac. If it matters, it was originally on a Fat32 partition on the external drive before I brought it over to my jfs NAS yesterday. (I regularly used 4 different OSes any given day at the time, hence the use of Fat32.) My guess is that I ripped it on my MacbookPro with some auto CD/track naming, and when it go ripped to the Fat32 partition, Fat32 didn't like the the special character in François. Sadly I cannot check and see how well I can interact with the original directory on the external HDD's Fat32 partition, as after copying everything over to the NAS, I zeroed it out. Regardless, I've now got this directory on my NAS I seemingly can't get rid of.