Removing file issue

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi all,

We got a complaint from a customer that he could not remove a certan directory.

After investigating me noticed that there is a hidden file (best guess)

ls on the file says:
ls: can not access class taxonomy.php: Input - / output error

when running ls -l:
ls: can not access class taxonomy.php: Input - / output error
total 0
-????????? ? ? ? ? ? class-taxonomy.php

rm says:
rm: can not remove aClass-taxonomy.phpâ: Input - / output error

I have searched on google and found all kinds command for rm but none are working.

Any one have a clue on how to remove this file/dir ?

Kind regards,
 
Did you try removing the parent folder. Its not hidden its more like corrupt. I would just try an rm -rf on a parent folder
 
Strange the only other thing I suggest you could try is running a fsck on the drive but I would only try it in single user mode. I am not sure what else to try.
 
It's definitely a corrupt file issue; probably the Directory file is corrupt. Hopefully fsck will fix it, but it could be a drive going bad. As chatwizrd points out, do NOT run fsck on a mounted drive while in multi-user mode; this should be done manually from the datacenter in single-user mode (server will not be online).

Jeff
 
Back
Top