I have some files that appear to have no inode numbers. To complicate the matter, the filenames have UTF8 (I think) characters.
I am trying to delete them. In fact, and this might make things easier, I'm trying to delete their parent directory.
I don't know what to try next, please help.
Thanks,
Ryan
Ok here are the symptoms:
1) rm appears to have no effect. so does unlink. so does rmdir on the parent directory.
$ ls
Andre?? 3000 Feat. Kelis Les Mise??rables ???????????? ??? ?????????????????? ???????????????
$ rm -rf Andr�\ 3000\ Feat.\ Kelis
$ ls
Andre?? 3000 Feat. Kelis Les Mise??rables ???????????? ??? ?????????????????? ???????????????
2) More pushy rm options lead to more mystery:
$ rm -d Andr�\ 3000\ Feat.\ Kelis
rm: cannot remove `Andre\314\201 3000 Feat. Kelis': No such file or directory
3) Really can't find them?! Bc they think they're there:
$ find . -print
.
find: ./: No such file or directory
find: ./Andr� 3000 Feat. Kelis: No such file or directory
find: ./: No such file or directory
find: ./ : No such file or directory
find: ./Les Mis�rables: No such file or directory
4) How come they have no inodes?
$ ls -ial
total 40
5783555 drwxr-xr-x 10 farl farl 36864 Feb 1 21:53 .
5783553 drwxr-xr-x 3 farl 121 4096 May 21 2008 ..
? ?--------- ? ? ? ? ? Andre?? 3000 Feat. Kelis
? ?--------- ? ? ? ? ? Les Mise??rables
? ?--------- ? ? ? ? ? ???????????? ???
? ?--------- ? ? ? ? ? ??????????????????
? ?--------- ? ? ? ? ? ???????????????
$ ls -Qi
0 "Andre\314\201 3000 Feat. Kelis"
0 "Les Mise\314\201rables"
0 "\344\275\220\346\235\221\346\262\263\345\206\205 \345\256\210"
0 "\345\256\207\345\244\232\347\224\260\343\203\222\343\202\253\343\203\253"
0 "\346\227\251\347\250\262\347\224\260\345\244\247\345\255\246"
5) fsck says everything is ok
$ sudo fsck.ext3 /dev/sdb2
e2fsck 1.40-WIP (14-Nov-2006)
/dev/sdb2: clean, 60692/59834368 files, 74016803/119652120 blocks
$ sudo fsck.ext3 -vf /dev/sdb2
e2fsck 1.40-WIP (14-Nov-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
60693 inodes used (0.10%)
5639 non-contiguous inodes (9.3%)
# of inodes with ind/dind/tind blocks: 32097/910/0
74016804 blocks used (61.86%)
0 bad blocks
16 large files
59067 regular files
1556 directories
0 character device files
0 block device files
0 fifos
6044 links
60 symbolic links (0 fast symbolic links)
0 sockets
--------
66727 files
