Linux – How to remove a corrupted file in Linux

corruptioninodelinux

The power went out at home and my Linux server (Plugbox Linux) went down. After it came back up, one of the files on the USB drive that was connected is corrupt. "ls -il" gives this:

 ? -????????? ? ?  ?         ?            ? server.prefs

How can I remove this file? I googled a bit and found out how to delete a file by inode number, but I can't even get the inode number of this file.

Any ideas?

Best Answer

Did you try fsck on that unit?