0

am trying to delete folder in My rhel machine , but is giving error like

rm: cannot lstat `cd1/Linux/nic/UBUNTU11_64/âââ\033\nwâ·.αÃo': Input/output error

folder permissions are rwx to all

thanks mahesh

user1812956
  • 85
  • 1
  • 3
  • 10

2 Answers2

0

It looks like you have a corrupted folder and subfolders. I highly recommend running fsck on the drive and seeing if that either renames the files to something that you can delete or removes the entries entirely.

Nathan C
  • 15,059
  • 4
  • 43
  • 62
0

If the filesystem is verified from fsck, you can use the "-i" flag on rm.

$cd /path/to/directory/ 
$ rm -i *
rm: cannot remove directory File-Path-2.08
rm: remove File-Path-2.08.tar? n
rm: remove Makefile? y 
<etc...>
user176514
  • 71
  • 2
  • 8