无法删除NTFS分区上的目录

我在一个机器窗口和ubuntu上使用双操作系统。 Windows C:\ProgramData\Folder_name有一个文件夹似乎对我来说是病毒,因为每当我尝试时它都不会被删除。 而且,即使我尝试删除它也会一次又一次地出现。

我试图从ubuntu中删除它。 这有希望! 但今天,我又在同一个位置找到了同一个文件夹。 我再次试图从ubuntu中删除它,使用

 user@user$sudo su root@user$rm -f /location/to/folder rm: cannot remove `/location/to/folder': Is a directory root@user$sudo umount /location/to/folder umount: /location/to/folder: not mounted root@user$rm -r /location/to/folder rm: cannot remove `/location/to/folder': Directory not empty root@user$ls -a /location/to/folder ls: reading directory /location/to/folder: Input/output error 

所以,我尝试卸载它,它说它没有安装。 我试过rm说它是目录。 有人可以帮帮我吗?

编辑:这是不在该目录内的ls -la命令的输出,进入目录并执行ls -la命令给出输入/输出错误。

 drwx------ 1 ashutosh ashutosh 8192 Apr 2 01:01 . drwx------ 1 ashutosh ashutosh 24576 Apr 1 23:15 .. drwx------ 1 ashutosh ashutosh 0 Feb 20 22:00 Adobe lrwxrwxrwx 2 ashutosh ashutosh 84 Jul 14 2009 Application Data -> /media/10DC42B6DC42963E/ProgramData drwx------ 1 ashutosh ashutosh 0 Jan 27 02:55 ATI drwx------ 1 ashutosh ashutosh 0 Mar 20 14:40 Avangardo drwx------ 1 ashutosh ashutosh 0 Feb 19 02:35 Connectify drwx------ 1 ashutosh ashutosh 0 Feb 18 02:32 DAEMON Tools Lite drwx------ 1 ashutosh ashutosh 4096 Apr 2 01:01 DC48CCC40D3C963E0000DC47F0809ABC lrwxrwxrwx 1 ashutosh ashutosh 120 Jul 14 2009 Desktop -> /media/10DC42B6DC42963E/Users/Public/Desktop lrwxrwxrwx 2 ashutosh ashutosh 128 Jul 14 2009 Documents -> /media/10DC42B6DC42963E/Users/Public/Documents drwx------ 1 ashutosh ashutosh 4096 Mar 9 20:40 EPS lrwxrwxrwx 2 ashutosh ashutosh 128 Jul 14 2009 Favorites -> /media/10DC42B6DC42963E/Users/Public/Favorites drwx------ 1 ashutosh ashutosh 8192 Mar 13 02:26 Microsoft drwx------ 1 ashutosh ashutosh 8192 Feb 18 02:35 Microsoft Help -rw------- 1 ashutosh ashutosh 434 Feb 3 17:49 ntuser.pol drwx------ 1 ashutosh ashutosh 32768 Feb 18 02:51 Package Cache drwx------ 1 ashutosh ashutosh 0 Feb 18 03:19 PreEmptive Solutions drwx------ 1 ashutosh ashutosh 0 Feb 18 02:48 regid.1991-06.com.microsoft drwx------ 1 ashutosh ashutosh 0 Feb 10 14:44 Samsung drwx------ 1 ashutosh ashutosh 0 Mar 19 12:05 Skype lrwxrwxrwx 2 ashutosh ashutosh 200 Jul 14 2009 Start Menu -> /media/10DC42B6DC42963E/ProgramData/Microsoft/Windows/Start Menu drwx------ 1 ashutosh ashutosh 0 Jan 29 23:28 Sun drwx------ 1 ashutosh ashutosh 0 Mar 21 03:35 TEMP lrwxrwxrwx 2 ashutosh ashutosh 196 Jul 14 2009 Templates -> /media/10DC42B6DC42963E/ProgramData/Microsoft/Windows/Templates drwx------ 1 ashutosh ashutosh 4096 Feb 18 03:21 Windows App Certification Kit 

感谢coteyr的评论 , chkdsk完成了这项工作。 chkdsk报告了磁盘上的偏移错误。我在安全模式下启动了窗口并且文件夹已被删除。 它实际上是一种恶意软件,它在磁盘上创建了一些非法的恶意软件,从而显示了它不存在的目录。

你需要制作rm -rf因为这是一个目录而且它不是空的。 有关此命令的更多帮助,请参阅man rm