如何刪除 NTFS 外部硬碟中的奇怪檔案:/bin/rm:無法刪除「檔案」:輸入/輸出錯誤

如何刪除 NTFS 外部硬碟中的奇怪檔案:/bin/rm:無法刪除「檔案」:輸入/輸出錯誤

我的 5tb 三星外接硬碟有問題。當我嘗試刪除某些文件(僅刪除某些文件)時,收到錯誤:

/bin/rm: cannot remove 'file': input/output error

當我使用 FreeFileSync 將資料夾從我的電腦同步到分機硬碟時,一切就開始了。有問題的檔案是.Trash-1000 和sync.ffs_lock 中的所有檔案。

有些文件出現在ls輸出中,最後帶有*,為什麼?

輸出範例ls(我無法刪除這些文件/資料夾):

d?????????    ? ?       ?               ?            ?  Colony/
-rwxrwxrwx    1 camargo camargo    282224 ago  4  2017  Cover.jpg*

當我file在文件/資料夾中使用 ? 時,出現錯誤:

file Colony
Colony: cannot open `Colony' (Input/output error)

但是當我file在文件中使用 * 時,似乎沒問題,當我嘗試使用 rm 刪除時,它會返回 $?=0,但文件沒有被刪除。

file Cover.jpg 
Cover.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=12, height=1651, bps=0, PhotometricIntepretation=RGB, orientation=upper-left, width=1213], baseline, precision 8, 441x600, frames 3

我嘗試過的

1)ntfsfix /dev/sdc1

說驅動沒問題。

2)rm -rf filesudo rm -rf filechown $USER:$USER file && rm -f file

同樣的錯誤訊息

3)在 gnome-disks 中開啟並掃描檔案系統(沒有錯誤)並正確的檔案系統

之後同樣的行為。

相關內容