solutions and ideas, methods and test-routines:
- the first idea i had was..:to move files off of the drive,
- the i thougt that it is a good idea to test the health of the drive
- benchmarking and checks of the dyn. performance: i.e. to test all of the sectors regarding the
situation of the individual sectors (i.e. if one is bad) - there are lots of intersting tools for that,
Well, in general, hard disks built-in health-check tool called SMART (Self-Monitoring, Analysis, and Reporting Technology), these do checks of the disk for potential problems. And they help to avoid loss of important data. generally SMART runs automatically; but you alos can do checks on your disk’s health by running the Disks application:
for a quick and easy test we can use smartctl; well this is pretty straightforward: we can check disk health on Linux by using the included smartctl utility on the terminal.
what is aimed:
- making sure that there is not any data corruption avoid to have issues.
- making sure that we do not have (or get) trouble in accessing the data on the hdd that means
- having troubles in accessing the files.
one test routine could be:
- Code: Select all
sudo smartctl -a /dev/sda | less
output: set of information about the hard drive's condition.
i like smartctl. It is running on my mx-system and it gives back a great overview.
by the way: there are some tests-methods - regarding the length & duration: short-test and long test..
The three different test are the following ones: Short, Long and Conveyance - with those you also see the time that it will take to complete all three test:
shorttest: a short test, usually sufficient at detecting issues: run it with:
- Code: Select all
sudo smartctl -t short /dev/sda: (run for the short test)
Longtest: a longer test if you are more concerned that examines the entire disk surface: s
- Code: Select all
udo smartctl -t long /dev/sda (for run this for the long test)
Conveyance: a conveyance test which is used to test if damages occurred during transportation of the device from the manufacturer:
- Code: Select all
sudo smartctl -t conveyance /dev/sda (run this for the conveyance test)
besides the command line, there are very popular and well known tool gnome-disk-utility
other tools:
- Palimpsest (aka gnome-disk-utility) GUI program that gives the same info;
- badblocks another utility; it shows the amount and location of bad blocks on the drive;
GUI-tools: For anyone who finds they don't have smartctl: it's probably under your package manager as "smartmontools".
badblocks is one more useful utility; this program shows the amount and besides this also the location of bad blocks on your drive:
- Code: Select all
sudo badblocks -v /dev/sda
see a demo output
- Code: Select all
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.0-6-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 7K500
Device Model: Hitachi HTS725025A9A364
Serial Number: 101125PCK204VJK1ASSJ
LU WWN Device Id: 5 000cca 5b8eae34c
Firmware Version: PC2OC71G
User Capacity: 250.059.350.016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Sat Feb 13 15:10:18 2021 CET
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: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
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: ( 4545) 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.
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: ( 67) 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 FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0025 113 100 040 Pre-fail Offline - 3482
3 Spin_Up_Time 0x0023 223 100 033 Pre-fail Always - 1
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 215
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x002f 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0025 110 100 040 Pre-fail Offline - 36
9 Power_On_Hours 0x0032 017 017 000 Old_age Always - 36765
10 Spin_Retry_Count 0x0033 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 215
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 393216
188 Command_Timeout 0x0032 100 085 000 Old_age Always - 45
190 Airflow_Temperature_Cel 0x0022 058 051 045 Old_age Always - 42 (Min/Max 20/45)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 3145776
193 Load_Cycle_Count 0x0032 020 020 000 Old_age Always - 803449
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0036 100 100 000 Old_age Always - 0
223 Load_Retry_Count 0x002a 100 100 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 35477 -
# 2 Extended offline Interrupted (host reset) 80% 1 -
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.https://www.howtoforge.de/anleitung/den-zustand-der-festplatte-mit-smartmontools-debian-ubuntu-uberprufen/
https://www.howtoforge.de/anleitung/den-zustand-der-festplatte-mit-smartmontools-debian-ubuntu-uberprufen/
btw, see more on the following pages:
https://linuxwiki.de/SmartMonTools
https://linuxwiki.de/SmartMonTools
https://www.howtoforge.de/anleitung/den ... berprufen/