尝试访问某些目录时出现输入/输出错误

尝试访问某些目录时出现输入/输出错误

我试图访问 exfat 格式的 Seagate 外置硬盘上的目录,但一直出现以下错误。在我的 Mac 电脑上,我可以毫无问题地访问目录并运行脚本,但当我在笔记本电脑上使用 Ubuntu 时,我开始遇到以下错误。到目前为止,我在笔记本电脑上访问这些目录时没有遇到任何问题,但从今天开始,我在访问某些目录时收到以下错误:

ls: reading directory '/Volumes/EEG000/eeg/data/2015/book_17/00002026_20151021/patient/reports': Input/output error

这种情况只发生在少数几个目录中,我还没能找出原因。我在 Mac 上访问这些目录没有问题。

dmesg似乎也没有报告任何与外部硬盘有关的可疑情况。以下是最后几行:

[  456.419825] CPU5: Package temperature above threshold, cpu clock throttled (total events = 229)
[  456.419828] mce_notify_irq: 2 callbacks suppressed
[  456.419829] mce: [Hardware Error]: Machine check events logged
[  456.419832] CPU1: Package temperature above threshold, cpu clock throttled (total events = 229)
[  456.419834] mce: [Hardware Error]: Machine check events logged
[  456.439850] CPU1: Core temperature/speed normal
[  456.439852] CPU2: Package temperature/speed normal
[  456.439853] CPU6: Package temperature/speed normal
[  456.439853] CPU5: Core temperature/speed normal
[  456.439856] CPU5: Package temperature/speed normal
[  456.439858] CPU1: Package temperature/speed normal
[  456.439861] CPU3: Package temperature/speed normal
[  456.439862] CPU7: Package temperature/speed normal
[  456.439863] CPU0: Package temperature/speed normal
[  456.439864] CPU4: Package temperature/speed normal

我已经安装并重新安装了 exFat-utils 和 exFat-fuse。

另外,这里是 fdisk 中与外部硬盘有关的最后几行:

GPT PMBR size mismatch (4294967294 != 2743151278) will be corrected by w(rite).
Disk /dev/sdb: 7.3 TiB, 8001563221504 bytes, 15628053167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 23F0435C-410B-4B15-A778-FE0357B25EE2

Device      Start         End     Sectors  Size Type
/dev/sdb1      40      409639      409600  200M EFI System
/dev/sdb2  409640 15627790983 15627381344  7.3T Microsoft basic data

如果您需要更多信息,请告诉我,我会尽力获取。

答案1

我尝试在磁盘上运行fsck,结果发现一些容易出错的目录中的文件校验和不正确,于是修复了这个问题。我通过运行磁盘实用程序修复了 Mac 电脑上的损坏文件。

相关内容