How to delete corrupt file on Debian

Link
Link used Ask the Experts™
on
Have a telecommunication server that switched over to its backup. After the switchover we noticed a couple of files that can't be deleted.

[root@LABSYS2 log]# ls -ltr
ls: cannot access 1000025.DBG: Input/output error
ls: cannot access 10002CB.AUD: Input/output error
total 769808
-????????? ? ?          ?            ?            ? 10002CB.AUD
-????????? ? ?          ?            ?            ? 1000025.DBG

I tried to find the inode of the file and use it to delete but "ls -il" did not return inodes  (it only did for other files in dir)

ls -li
find ./ -inum <inode number> -exec rm -i {} \;

Please offer any suggestions.

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dr. KlahnPrincipal Software Engineer
Commented:
Have you fscked the drive?  That'd be my first approach.  That may clear up the issue by itself.
Commented:
Will try that and let you know results, thx.
Commented:
turned out to be a more in depth solution having to do with stale nfs file handle and problem was solved with a vendor specific procedure.

Author

Commented:
Sorry for the VERY late closure on this!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial