自从我转到 Fedora 后,我的辅助硬盘 (sdc) 就一直有问题。我用它来存储我的游戏,但它总是随机卸载,即使我没有玩任何游戏(尽管,这大多发生在玩游戏时)。
一开始,我以为问题出在 fstab 上,可能是一些错误的输入或其他问题。我还发现 Valve 不建议将其他游戏驱动器安装在主目录中。
我尝试过的方法
- 格式化驱动器
- 将挂载点从 /home/user/Games 更改为 /run/media/user/Games
- 彻底删除该驱动器的 /etc/fstab 条目
- 重新安装 Fedora
我真的不知道是什么原因造成的。我想相信驱动器没有故障,因为我是在 2021 年底购买的。这个问题不会发生在我的其他内置和外置驱动器上,只有这个驱动器才会发生。
幸运的是,我在卸载时截取了日志的屏幕截图:
编辑
这是 SMART 的输出:
$ sudo smartctl -a /dev/sdc
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.12-200.fc37.x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate BarraCuda 3.5 (CMR)
Device Model: ST1000DM010-2EP102
Serial Number: ZN1HY181
LU WWN Device Id: 5 000c50 0c6bf9d54
Firmware Version: CC43
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5319
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is: Wed Feb 22 22:11:54 2023 CST
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
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 105) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1085) SCT Status supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 082 063 006 Pre-fail Always - 183660535
3 Spin_Up_Time 0x0003 099 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 097 097 020 Old_age Always - 3449
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 075 060 045 Pre-fail Always - 8653888438
9 Power_On_Hours 0x0032 091 091 000 Old_age Always - 8389
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2737
183 Runtime_Bad_Block 0x0032 001 001 000 Old_age Always - 1724
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 098 071 000 Old_age Always - 4 4 246
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 069 054 040 Old_age Always - 31 (Min/Max 29/32)
193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 3494
194 Temperature_Celsius 0x0022 031 013 000 Old_age Always - 31 (0 13 0 0 0)
195 Hardware_ECC_Recovered 0x001a 007 001 000 Old_age Always - 183660535
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 100 000 Old_age Always - 12612
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 7871h+40m+42.835s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 19772290294
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 34697736665
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
输出sudo e2fsck /dev/sdc1
e2fsck 1.46.5 (30-Dec-2021)
Games: recovering journal
Setting free inodes count to 61051822 (was 61051825)
Setting free blocks count to 232203314 (was 232204073)
Games: clean, 3154/61054976 files, 11986894/244190208 blocks
答案1
我可能是错的,但查看日志,我认为这可能是以下两个原因之一或两者兼而有之 -
驱动器可能出现故障。查看 SMART 以了解驱动器对自己的看法。如果您安装了 smartmontools,则可以使用以下命令获取一些信息
sudo smartctl -a /dev/sdc
我觉得 ext4 文件系统已损坏。最好在尝试修复驱动器之前对其进行位复制,因为存在数据丢失的风险。我相信您可以使用类似下面的方法修复它(在未安装的驱动器上)
sudo e2fsck /dev/sdc1