我有一个格式化为 NTFS 并安装在 Linux 中的外部 5TB 硬盘。
当我运行时,df
我会在驱动器上获得以下信息:
/dev/sdd1 4883735548 2398731656 2485003892 50% /media/me/DRIVE0
我还尝试df -i
确保有足够的 inode:
/dev/sdd1 2485298804 294284 2485004520 1% /media/me/DRIVE0
但是,当我尝试将任何内容写入驱动器时,它就像已满一样:
$ touch /media/me/DRIVE0/test
touch: cannot touch '/media/me/DRIVE0/test': No space left on device
这是最简单的例子。尝试以 root 身份运行命令没有帮助。我还尝试过 rsync(奇怪的是,它有时会声称设备空间不足,有时声称正在复制文件,但随后什么都没有,然后出现错误消息)、dd、cp 等。最初,我正在运行 rsync 并复制了一堆文件,然后我开始收到奇怪的空间不足错误,并将其归结为这个问题。
我尝试运行 ntfsfix,但没有发现任何问题。我还有第二个相同的驱动器(型号),它几乎已满 100%(40GB 可用),我仍然可以毫无问题地向其中添加文件。
我不知道该如何解决这个问题。我目前无法访问 Windows 计算机来尝试从那里访问驱动器。
根据评论,我发现以下命令可以获取 SMART 信息:
sudo smartctl -d sat,16 -a /dev/sdc
输出如下:
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-189-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: REDACTED
Serial Number: REDACTED
LU WWN Device Id: REDACTED
Firmware Version: REDACTED
User Capacity: 5,000,XXX,XXX,XXX bytes [5.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-3 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: REDACTED
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 253 253 021 Pre-fail Always - 4841
4 Start_Stop_Count 0x0032 095 095 000 Old_age Always - 5604
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 5852
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 230
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 139
193 Load_Cycle_Count 0x0032 166 166 000 Old_age Always - 102341
194 Temperature_Celsius 0x0022 119 087 000 Old_age Always - 33
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1