Fedora的。 删除包含美元符号的文件

无法删除文件或包含它的目录。

输出ls -la:

-????????? ? ? ? ? ? 1221036243.V905I191359M574755.domain.com:2$ 

更新1

 [root@domain Maildir]# chmod -R 777 cur chmod: cannot access `cur/1221036243.V905I191359M574755.domain.com:2$': No such file or directory 

更新2

 [root@domain Maildir]# rm -rf cur rm: cannot remove `cur': Directory not empty rm -rf 1221036243.V905I191359M574755.domain.com:2$ rm -rf 1221036243.V905I191359M574755.domain.com:2\$ 

没有输出。

更新3

 [root@domain cur]# getfacl . # file: . # owner: root # group: root user::rwx group::rwx other::rwx 

更新4

 [root@domain /]# umount backup [root@domain /]# fsck /dev/md119 fsck from util-linux 2.19.1 e2fsck 1.41.14 (22-Dec-2010) /dev/md119: clean, 1487811/183148544 files, 80994051/732566603 blocks [root@domain /]# mount backup 

更新5

 [root@domain /]# fsck -f /dev/md119 fsck from util-linux 2.19.1 e2fsck 1.41.14 (22-Dec-2010) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Problem in HTREE directory inode 180886324: block #10437 has bad min hash Invalid HTREE directory inode 180886324 (/.snapshots/daily.2/h1/mailboxs/magazin/Maildir/cur). Clear HTree index<y>? yes Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/md119: ***** FILE SYSTEM WAS MODIFIED ***** /dev/md119: 1487811/183148544 files (0.1% non-contiguous), 80980327/732566603 blocks 

而且非常感谢Michael Hampton用他的fsck -f /dev/md119

您需要使用-f选项运行fsck ,才能真正执行文件系统检查。

问题是你有读取权限的目录,但没有执行,没有写权限。 执行访问将取代“?” 有用的数据,写访问将允许你删除文件。

写入权限不足以删除目录条目。 执行权限也是必需的。