use*_*954 6 linux debian external-hard-drive
我陷入了一个奇怪的境地。我有一个 1Tb 的便携式 HD,里面装满了一些内容。它在 Windows 中使用,并且一如既往地充满了病毒。我尝试以 root 身份删除一些文件夹。但是返回了以下错误
rm -R RECYCLER/
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc39.pptx': Operation not permitted
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc58.docx': Operation not permitted
rm: cannot remove `RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/Dc17.JPG': Operation not permitted
Run Code Online (Sandbox Code Playgroud)
ls -l 回来
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf898cc8b
Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976760536 7 HPFS/NTFS
ls -l RECYCLER/
total 12
drwxrwxrwx 1 user user 12288 Dec 11 21:13 S-1-5-21-1659004503-1644491937-725345543-1003
Run Code Online (Sandbox Code Playgroud)
小智 8
这是由于为文件设置了不可变属性。如果您的文件系统驱动程序允许,请在删除之前运行以下命令。
chattr -i RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/*
rm -f RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003/*
Run Code Online (Sandbox Code Playgroud)
该目录RECYCLER/S-1-5-21-1659004503-1644491937-725345543-1003可能是只读的。运行chmod -R u+w RECYCLER以设置目录的写权限,然后rm -rf RECYCLER.
如果这是通过 FUSE 文件系统进行的,则可能只有挂载该文件系统的用户才拥有其写入权限。在这种情况下,运行su user rm -rf RECYCLER.
| 归档时间: |
|
| 查看次数: |
34204 次 |
| 最近记录: |