rm: cannot lstat `sharedir': Input/output error

Solution Verified - Updated -

Issue

Failed to remove directory which is the mount point of a cifs shared

[root@localhost /]# rm sharedir
rm: cannot lstat `sharedir': Input/output error

[root@localhost /]# ls -al
total 214
drwxr-xr-x  32 root   root  4096 Jun 16 16:26 .
drwxr-xr-x  32 root   root  4096 Jun 16 16:26 ..
-rw-r--r--   1 root   root     0 Nov  8  2010 .autofsck
drwxr-xr-x   2 root   root  4096 Dec 19  2006 .automount
-rw-r--r--   1 root   root     0 Sep  7  2009 .autorelabel
drwxr-xr-x   2 root   root  4096 Jun 16 16:23 bin
drwxr-xr-x   4 root   root  1024 Sep  7  2009 boot
?---------   ? ?      ?        ?            ? sharedir

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.