[SOLVED] Testing the integrity of a linux drive from windows 10 smartctl.exe
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Testing the integrity of a linux drive from windows 10 smartctl.exe
I'm in windows 10 and I want to test a linux drive with smartctl.exe
Problem is, windows 10 can't mount the drive. I can see it in Disk Management but it won't mount.
I guess this is an obscure situation to be in so it's a longshot- but does anyone know how to run the command line Windows smartctl on an unmounted linux drive.
(And no, I can't boot to the drive, I'm going to reinstall ubuntu on it but I don't want to bother if it's broken)
Also- I'm thinking that alternatively I could boot to a live disk- I tried knoppix but it (surprisingly) doesn't have smartctl on it- does anyone know of a live disk that has it?
Simply connect the liveCD to your network and install smartmon-tools. I haven't used Knoppix in years, but all the major distros have it in their repos.
Ok for those of you still paying attention- I found a gui interface for smartctl.exe called GSmartControl (free).
One problem though- I ran it last night a (estimated time was 3h40m) nd my win 10 crashed in the night at 90%. (Remember, I wasn't testing the win drive, I was testing the (formerly) ubuntu drive, so not the win OS drive).
So my question- and maybe I should post this as a seperate thread since it's a generic smartctl question, are these results indicating that there was no problem until the crash? The crash was probably unrelated to the test I think. So can someone tell me if this means up until 90% there were no errors? I'm worried about the "R" column, but this is ambiguous, these logs are arcane...
Code:
smartctl 6.6 2017-11-05 r4594 [x86_64-w64-mingw32-w10-1511] (sf-6.6-1)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Black
Device Model: WDC WD1001FALS-00J7B0
Serial Number: WD-WMATV0117568
LU WWN Device Id: 5 0014ee 000b29639
Firmware Version: 05.00K05
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.5, 3.0 Gb/s
Local Time is: Sun Oct 28 14:36:25 2018 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM level is: 254 (maximum performance), recommended: 128
APM feature is: Unavailable
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: (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: (19200) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 221) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x303f) 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 POSR-K 200 200 051 - 0
3 Spin_Up_Time POS--K 253 253 021 - 5941
4 Start_Stop_Count -O--CK 091 091 000 - 9516
5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
7 Seek_Error_Rate -OSR-K 100 253 051 - 0
9 Power_On_Hours -O--CK 038 038 000 - 45636
10 Spin_Retry_Count -O--CK 100 100 051 - 0
11 Calibration_Retry_Count -O--CK 100 100 051 - 0
12 Power_Cycle_Count -O--CK 100 100 000 - 235
192 Power-Off_Retract_Count -O--CK 200 200 000 - 127
193 Load_Cycle_Count -O--CK 197 197 000 - 9516
194 Temperature_Celsius -O---K 124 098 000 - 26
196 Reallocated_Event_Count -O--CK 200 200 000 - 0
197 Current_Pending_Sector -O--CK 200 200 000 - 0
198 Offline_Uncorrectable ----CK 200 200 000 - 0
199 UDMA_CRC_Error_Count -O--CK 200 200 000 - 0
200 Multi_Zone_Error_Rate ---R-- 200 200 051 - 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 5 Comprehensive SMART error log
0x03 GPL R/O 6 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
0xa0-0xa7 GPL,SL VS 16 Device vendor specific log
0xa8-0xb7 GPL,SL VS 1 Device vendor specific log
0xc0 GPL,SL VS 1 Device vendor specific log
0xc1 GPL VS 24 Device 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 (6 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 Interrupted (host reset) 10% 45625 -
# 2 Short offline Completed without error 00% 45232 -
# 3 Short offline Completed without error 00% 44515 -
# 4 Short offline Completed without error 00% 44448 -
# 5 Short offline Completed without error 00% 43776 -
# 6 Short offline Aborted by host 70% 43038 -
# 7 Short offline Completed without error 00% 42343 -
# 8 Short offline Completed without error 00% 41601 -
# 9 Short offline Completed without error 00% 40139 -
#10 Short offline Completed without error 00% 39476 -
#11 Extended offline Aborted by host 90% 39431 -
#12 Short offline Completed without error 00% 38734 -
#13 Short offline Completed without error 00% 37290 -
#14 Short offline Completed without error 00% 36546 -
#15 Short offline Completed without error 00% 35829 -
#16 Short offline Completed without error 00% 31181 -
#17 Short offline Completed without error 00% 30439 -
#18 Short offline Completed without error 00% 29721 -
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: 2
SCT Version (vendor specific): 258 (0x0102)
SCT Support Level: 1
Device State: Stand-by (1)
Current Temperature: 26 Celsius
Power Cycle Min/Max Temperature: 26/39 Celsius
Lifetime Min/Max Temperature: 23/52 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: -41/85 Celsius
Temperature History Size (Index): 128 (4)
Index Estimated Time Temperature Celsius
5 2018-10-28 12:29 31 ************
... ..( 3 skipped). .. ************
9 2018-10-28 12:33 31 ************
10 2018-10-28 12:34 30 ***********
... ..( 6 skipped). .. ***********
17 2018-10-28 12:41 30 ***********
18 2018-10-28 12:42 29 **********
... ..( 3 skipped). .. **********
22 2018-10-28 12:46 29 **********
23 2018-10-28 12:47 28 *********
... ..( 5 skipped). .. *********
29 2018-10-28 12:53 28 *********
30 2018-10-28 12:54 27 ********
... ..( 20 skipped). .. ********
51 2018-10-28 13:15 27 ********
52 2018-10-28 13:16 26 *******
... ..( 79 skipped). .. *******
4 2018-10-28 14:36 26 *******
SCT Error Recovery Control:
Read: Disabled
Write: Disabled
Device Statistics (GP/SMART Log 0x04) 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
0x000a 2 0 Device-to-host register FISes sent due to a COMRESET
0x8000 4 12180 Vendor specific
First places I look:
196 Reallocated_Event_Count -O--CK 200 200 000 - 0
5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
1 Raw_Read_Error_Rate POSR-K 200 200 051 - 0
are as good as anyone can hope for.
More than 5 years' worth of hours on:
9 Power_On_Hours -O--CK 038 038 000 - 45636
IOW, I'd not hesitate to put it back in service.
First places I look:
196 Reallocated_Event_Count -O--CK 200 200 000 - 0
5 Reallocated_Sector_Ct PO--CK 200 200 140 - 0
1 Raw_Read_Error_Rate POSR-K 200 200 051 - 0
are as good as anyone can hope for.
More than 5 years' worth of hours on:
9 Power_On_Hours -O--CK 038 038 000 - 45636
IOW, I'd not hesitate to put it back in service.
Awesome thanks- one question- is the test *physically* incremental? So for example- if it only got to 90% does it mean that it only test *physically* 90% of the platter? You see what I'm trying to say? Or is like, for lack of a better example, torrents, where it's testing the drive in multiple physical places?
And btw I promise to mark it solved and give thumbsups I've been a linuxquestions user for 10 years (old name was "Rotwang" hence now Rotwang2)
Nah shit I'm phrasing that wrong. So, ok, does it physically start in the middle of the drive near the axis and work it's way out to the edge? So has it tested the edges of the platter?
is the test *physically* incremental? So for example- if it only got to 90% does it mean that it only test *physically* 90% of the platter?
I have no idea, but would expect the Windows binary to behave the same as the Linux, so would expect it to respond to the same startup switches, other than / vs -, so check the man page.
Nah no, you're answer's good enough for me to ahead with it. So I'll do you one better when it comes to good citizen- I asked a similar question like months ago on the ubuntu forums, so I'll cross link and then mark this solved and give thumbs ups. I have to fish it out and find it, thanks man, I'll do that now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.