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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content