Re: Disk problems
Dr Rainer Woitok <[email protected]> Sun, 29 Mar 2026 12:56:50 +0200
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <[email protected]> |
Michael,
On Friday, 2026-03-27 16:32:14 +0000, you wrote:
> ...
> When hibernation happens normally, this problem should not occur. All
> data should be committed to disk fully, caches flushed and the system
> will then shut down normally.
Right. Normally this happens normally on my laptop, too, but off and on
it does not, and I then find these lines from "fsck" in "/var/log/rc.
log".
>
> If hibernation happens because/while the laptop is running out of
> battery power, then the battery could run out and the PC come to a halt
> before the hibernation has completed successfully. This will leave your
> fs in an inconsistent state. This is what I suspect is happening.
Yes, the battery is meanwhile ailing, but that's why the laptop is al-
ways connected to 240V AC while I'm using it.
> The
> log should reveal if the hibernation process completed or not and what
> took place when the system restarted.
What log are you refering to? "rc.log"? I did not explicitly mention
it in my first mail, but the whole story in file "rc.log" is this
...
* Unmounting filesystems
...
* Unmounting /home ...
[ ok ]
...
rc shutdown logging stopped at Fri Mar 20 19:06:47 2026
rc boot logging started at Sun Mar 22 09:23:36 2026
...
* Checking local filesystems ...
/dev/sda3: clean, 806257/6275072 files, 8962397/25077622 blocks
/dev/sdb1: recovering journal
/dev/sdb1: clean, 172745/61054976 files, 35513542/244190385 blocks
[ ok ]
...
>
> Either way, it is worth running 'smartctl -t long /dev/sdb' to see if
> the disk is healthy, or there is an underlying hardware fault causing
> the inconsistency in data commits.
# smartctl -t long /dev/sdb
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.18.18-gentoo] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 169 minutes for test to complete.
Test will complete after Sun Mar 29 11:18:22 2026 CEST
Use smartctl -X to abort test.
# smartctl -x /dev/sdb
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.18.18-gentoo] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: HGST Travelstar 7K1000
Device Model: HGST HTS721010A9E630
Serial Number: JR10006P3A55DF
LU WWN Device Id: 5 000cca 7dceee5a5
Firmware Version: JB0OA3J0
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: 2.5 inches
Device is: In smartctl database 7.5/6088
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Mar 29 12:30:09 2026 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM level is: 128 (minimum power consumption without standby)
Rd look-ahead is: Enabled
Write cache is: Enabled
DSN feature is: Unavailable
ATA Security is: Disabled, frozen [SEC2]
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x02) Offline data collection activity
was completed without error.
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: ( 45) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 169) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate PO-R-- 100 100 062 - 0
2 Throughput_Performance P-S--- 163 163 040 - 93
3 Spin_Up_Time POS--- 127 127 033 - 2
4 Start_Stop_Count -O--C- 001 001 000 - 385341
5 Reallocated_Sector_Ct PO--CK 100 100 005 - 0
7 Seek_Error_Rate PO-R-- 100 100 067 - 0
8 Seek_Time_Performance P-S--- 140 140 040 - 33
9 Power_On_Hours -O--C- 060 060 000 - 17543
10 Spin_Retry_Count PO--C- 100 100 060 - 0
12 Power_Cycle_Count -O--CK 095 095 000 - 9081
191 G-Sense_Error_Rate -O-R-- 100 100 000 - 0
192 Power-Off_Retract_Count -O--CK 100 100 000 - 110
193 Load_Cycle_Count -O--C- 001 001 000 - 1038541
194 Temperature_Celsius -O---- 171 171 000 - 35 (Min/Max 10/59)
196 Reallocated_Event_Count -O--CK 100 100 000 - 0
197 Current_Pending_Sector -O---K 100 100 000 - 0
198 Offline_Uncorrectable ---R-- 100 100 000 - 0
199 UDMA_CRC_Error_Count -O-R-- 200 200 000 - 0
223 Load_Retry_Count -O-R-- 100 100 000 - 0
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
General Purpose Log Directory Version 1
SMART Log Directory Version 1 [multi-sector log support]
Address Access R/W Size Description
0x00 GPL,SL R/O 1 Log Directory
0x01 SL R/O 1 Summary SMART error log
0x02 SL R/O 1 Comprehensive SMART error log
0x03 GPL R/O 1 Ext. Comprehensive SMART error log
0x06 SL R/O 1 SMART self-test log
0x07 GPL R/O 1 Extended self-test log
0x09 SL R/W 1 Selective self-test log
0x10 GPL R/O 1 NCQ Command Error log
0x11 GPL R/O 1 SATA Phy Event Counters log
0x80-0x9f GPL,SL R/W 16 Host vendor specific log
0xe0 GPL,SL R/W 1 SCT Command/Status
0xe1 GPL,SL R/W 1 SCT Data Transfer
SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged
SMART Extended Self-test Log Version: 1 (1 sectors)
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 17542 -
# 2 Extended offline Completed without error 00% 17355 -
# 3 Short offline Completed without error 00% 3690 -
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.
SCT Status Version: 3
SCT Version (vendor specific): 256 (0x0100)
Device State: Active (0)
Current Temperature: 35 Celsius
Power Cycle Min/Max Temperature: 18/49 Celsius
Lifetime Min/Max Temperature: 10/59 Celsius
Specified Max Operating Temperature: 33 Celsius
Under/Over Temperature Limit Count: 0/0
SCT Temperature History Version: 2
Temperature Sampling Period: 1 minute
Temperature Logging Interval: 1 minute
Min/Max recommended Temperature: 0/60 Celsius
Min/Max Temperature Limit: -40/65 Celsius
Temperature History Size (Index): 128 (95)
Index Estimated Time Temperature Celsius
96 2026-03-29 10:23 47 ****************************
... ..( 5 skipped). .. ****************************
102 2026-03-29 10:29 47 ****************************
103 2026-03-29 10:30 48 *****************************
104 2026-03-29 10:31 47 ****************************
... ..( 32 skipped). .. ****************************
9 2026-03-29 11:04 47 ****************************
10 2026-03-29 11:05 48 *****************************
11 2026-03-29 11:06 47 ****************************
12 2026-03-29 11:07 46 ***************************
13 2026-03-29 11:08 45 **************************
14 2026-03-29 11:09 44 *************************
15 2026-03-29 11:10 43 ************************
16 2026-03-29 11:11 43 ************************
17 2026-03-29 11:12 42 ***********************
18 2026-03-29 11:13 42 ***********************
19 2026-03-29 11:14 41 **********************
20 2026-03-29 11:15 41 **********************
21 2026-03-29 11:16 40 *********************
22 2026-03-29 11:17 40 *********************
23 2026-03-29 11:18 40 *********************
24 2026-03-29 11:19 39 ********************
... ..( 2 skipped). .. ********************
27 2026-03-29 11:22 39 ********************
28 2026-03-29 11:23 38 *******************
29 2026-03-29 11:24 38 *******************
30 2026-03-29 11:25 38 *******************
31 2026-03-29 11:26 37 ******************
32 2026-03-29 11:27 38 *******************
33 2026-03-29 11:28 38 *******************
34 2026-03-29 11:29 37 ******************
... ..( 3 skipped). .. ******************
38 2026-03-29 11:33 37 ******************
39 2026-03-29 11:34 36 *****************
... ..( 7 skipped). .. *****************
47 2026-03-29 11:42 36 *****************
48 2026-03-29 11:43 35 ****************
... ..( 22 skipped). .. ****************
71 2026-03-29 12:06 35 ****************
72 2026-03-29 12:07 34 ***************
73 2026-03-29 12:08 35 ****************
... ..( 21 skipped). .. ****************
95 2026-03-29 12:30 35 ****************
SCT Error Recovery Control:
Read: Disabled
Write: Disabled
Device Statistics (GP/SMART Log 0x04) not supported
Pending Defects log (GP Log 0x0c) not supported
SATA Phy Event Counters (GP Log 0x11)
ID Size Value Description
0x0001 2 0 Command failed due to ICRC error
0x0002 2 0 R_ERR response for data FIS
0x0003 2 0 R_ERR response for device-to-host data FIS
0x0004 2 0 R_ERR response for host-to-device data FIS
0x0005 2 0 R_ERR response for non-data FIS
0x0006 2 0 R_ERR response for device-to-host non-data FIS
0x0007 2 0 R_ERR response for host-to-device non-data FIS
0x0009 2 4 Transition from drive PhyRdy to drive PhyNRdy
0x000a 2 2 Device-to-host register FISes sent due to a COMRESET
0x000b 2 0 CRC errors within host-to-device FIS
0x000d 2 0 Non-CRC errors within host-to-device FIS
#
Seen through my layman's eyes this seems ok, but I don't know what these
data are telling somebody really familiar with SMART. Comments welcome.
Sincerely,
Rainer