在我的 Ubuntu 19.04 中,系统自动进入只读模式。我使用修复了这个问题,
fsck /dev/sda7 -y
但是这个问题并没有永久解决,过了一段时间后它又进入了只读模式。
我使用的是安装了 Windows 10 的双启动系统。这是磁盘的信息
这是磁盘信息的导出,包括 SMART 信息
*** DiskCheckup V3.4 Build: 1003 Report ***
SysInfo DLL Version: SysInfo v1.0 Build: 1122
Time of export: 10:24:41 12-Nov-2019
Device information:
Device ID: 0
Interface: SATA
Device Capacity: 953867 MB
Serial Number: Y65NTEY0T
Model Number: TOSHIBA MQ01ABD100
Firmware Revision: AX1R4C
Partitions:
C: 243053 MB
F: 240198 MB
ATA information:
Disk geometry:
Cylinders: 121601
Tracks/Cylinder: 255
Sectors/Track: 63
Bytes/Sector: 512
Total disk sectors: 1953525168
Logical sector size: 512
Physical sector size: 4096
Media rotation rate: 5400 RPM
Buffer size: 8192 KB
ECC size: N/A
Standards compliance:
ATA8-ACS Supported: Yes
ATA/ATAPI-7 Supported: Yes
ATA/ATAPI-6 Supported: Yes
ATA/ATAPI-5 Supported: Yes
ATA/ATAPI-4 Supported: Yes
SATA Compliance: Yes
SATA Gen3 Signaling Speed (6.0Gb/s) Supported: Yes
SATA Gen2 Signaling Speed (3.0Gb/s) supported: Yes
SATA Gen1 Signaling Speed (1.5Gb/s) supported: Yes
Transport Type: Serial
SATA 3.0 Transport Compilance: Yes
SATA 2.6 Transport Compilance: Yes
SATA 2.5 Transport Compilance: Yes
SATA II: Ext Transport Compilance: Yes
SATA 1.0a Transport Compilance: Yes
ATA8-AST Transport Compilance: Yes
World Wide ID: 5000039761B01D1D
Feature support:
SMART supported: Yes
SMART enabled: Yes
SMART self-test supported: Yes
SMART error log supported: Yes
LBA supported: Yes
IORDY supported: Yes
CFast supported: No
DMA supported: Yes
Maximum Multiword DMA mode supported: 2
Multiword DMA selected: None
Maximum UltraDMA mode supported: 5
UltraDMA selected: 5
Maximum PIO mode supported: 4
SATA Compliance: Yes
NCQ priority information supported: No
Unload while NCQ commands are outstanding supported: Yes
Phy Event Counters supported: Yes
Receipt of power management requests supported: No
NCQ feature set supported: Yes
Software Settings Preservation: Supported, Enabled
In-order data delivery: Not supported
Initiating power management: Supported, Disabled
DMA Setup auto-activation: Supported, Disabled
Non-zero buffer offsets: Not supported
Trusted Computing supported: No
Host Protected Area (HPA) supported: No
Read look-ahead supported: Yes
Read look-ahead enabled: Yes
Write cache supported: Yes
Write cache enabled: Yes
Power management supported: Yes
Security mode supported: Yes
Security mode enabled: No
Device Configuration Overlay (DCO) supported: Yes
48bit Addressing supported: Yes
Auto Acoustic Managment (AAM) supported: No
Power-up in Standby (PUIS) supported: Yes
Power-up in Standby (PUIS) enabled: No
Advanced Power Management (APM) supported: Yes
Advanced Power Management (APM) enabled: Yes
Current APM level: Minimum power consumption without Standby
CompactFlash Association (CFA) supported: No
General Purpose Logging (GPL) supported: Yes
Streaming supported: No
Media card pass through supported: No
Extended power conditions supported: No
Extended status reporting supported: No
Write-read-verify supported: No
Free-fall control supported: No
TRIM command supported: No
SCT command transport supported: Yes
NV Cache enabled: No
NV Cache Power Management supported: No
SMART ATTRIBUTES:
ID Description Status Value Worst Threshold Raw Value TEC
---------------------------------------------------------------------------------------------------------------------------------------------
1 Raw Read Error Rate OK 100 100 50 0 N/A
2 Throughput Performance OK 100 100 50 0 N/A
3 Spin Up Time OK 100 100 2 772 N/A
4 Start/Stop Count OK 100 100 0 14107 N/A
5 Reallocated Sector Count OK 100 100 10 0 N/A
7 Seek Error Rate OK 100 100 50 0 N/A
8 Seek Time Performance OK 100 100 50 0 N/A
9 Power On Time OK 77 77 0 9576 N/A
10 Spin Retry Count OK 253 100 30 0 N/A
12 Power Cycle Count OK 100 100 0 6541 N/A
183 SATA Downshift Error Count OK 100 100 1 0 N/A
184 End-to-End error OK 100 100 97 0 N/A
185 Head Stability OK 100 100 1 65535 N/A
187 Reported Uncorrectable Errors OK 1 1 0 1294 N/A
188 Command Timeout OK 100 98 0 16 N/A
189 High Fly Writes OK 100 100 1 0 N/A
190 Temperature Difference from 100 OK 63 48 40 639238181 N/A
191 G-sense Error Rate OK 100 100 0 1059 N/A
192 Power off Retract Count OK 100 100 0 29032891 N/A
193 Load Cycle Count OK 92 92 0 83346 N/A
194 Temperature OK 63 48 40 37 C N/A
196 Reallocation Event Count OK 100 100 0 0 N/A
197 Current Pending Sector Count OK 100 100 0 1456 N/A
199 UltraDMA CRC Error Count OK 200 200 0 0 N/A
有没有永久的解决办法?
答案1
让我们采用双重方法来解决您的问题......
记忆测试
去https://www.memtest86.com/并下载/运行他们的免费记忆测试来测试你的记忆力。至少完成一次所有 4/4 测试以确认记忆力良好。这将需要很多小时才能完成。
硬盘坏块
注意:如果您的硬盘出现故障,不建议在没有任何备份的情况下执行此过程。即使备份到 USB 闪存驱动器也比没有备份要好。
这些是我正在查看的重要数据点...
SMART ATTRIBUTES:
ID Description Status Value Worst Threshold Raw Value TEC
---------------------------------------------------------------------------------------------------------------------------------------------
1 Raw Read Error Rate OK 100 100 50 0 N/A
187 Reported Uncorrectable Errors OK 1 1 0 1294 N/A
196 Reallocation Event Count OK 100 100 0 0 N/A
197 Current Pending Sector Count OK 100 100 0 1456 N/A
注意:不要中止坏块扫描!
注意:不要对 SSD 造成坏块
注意:请先备份您的重要文件!
注意:这将花费很多小时
注意:您可能面临硬盘故障
启动至 Ubuntu Live DVD/USB。
在terminal
...
sudo fsck -f /dev/sda7
# 首先清理文件系统
sudo fdisk -l
# 识别所有“Linux 文件系统”分区
sudo e2fsck -fcky /dev/sda7
# 只读测试
或者
sudo e2fsck -fccky /dev/sda7
# 非破坏性读写测试(受到推崇的)
-k 很重要,因为它会保存之前的坏块表,并将任何新的坏块添加到该表中。如果没有 -k,您将丢失所有之前的坏块信息。
-fccky 参数...
-f Force checking even if the file system seems clean.
-c This option causes e2fsck to use badblocks(8) program to do a
read-only scan of the device in order to find any bad blocks.
If any bad blocks are found, they are added to the bad block
inode to prevent them from being allocated to a file or direc‐
tory. If this option is specified twice, then the bad block
scan will be done using a non-destructive read-write test.
-k When combined with the -c option, any existing bad blocks in the
bad blocks list are preserved, and any new bad blocks found by
running badblocks(8) will be added to the existing bad blocks
list.
-y Assume an answer of `yes' to all questions; allows e2fsck to be
used non-interactively. This option may not be specified at the
same time as the -n or -p options.