我在一台机器上使用双操作系统 - Windows 和 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
答案1
谢谢coteyr 的评论,校验完成了工作。chkdsk 报告磁盘上的偏移错误。我以安全模式启动 Windows,文件夹已被删除。它实际上是一个恶意软件,它在磁盘上创建了一些非法偏移,因此显示了它不是的目录。
答案2
您需要创建,rm -rf
因为这是一个目录,并且它不为空。man rm
有关此命令的更多帮助,请参阅。