LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-17-2018, 03:42 AM   #16
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by jsbjsb001 View Post
Yes. No, it didn't make sounds, nor did the LED light up.
Oh wow that's hugely useful, thanks. I have no idea why it would take so much time without even consulting the drive at all, but whatever, if you say that's been your experience than I believe you, thanks jsbjsb001.

Is there any way to see how far along it's gone while it's running? Or is there very act of checking on its progress going to stop the test. (Like the Heisenberg principle.)
 
Old 12-17-2018, 03:49 AM   #17
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Rotwang2 View Post
Oh wow that's hugely useful, thanks. I have no idea why it would take so much time without even consulting the drive at all, but whatever, if you say that's been your experience than I believe you, thanks jsbjsb001.
But it DOES do something - just because you can't hear it or see it, it doesn't mean it's "doing nothing".

Quote:
Is there any way to see how far along it's gone while it's running? Or is there very act of checking on its progress going to stop the test. (Like the Heisenberg principle.)
If there is - I'm not sure how you would see that.
 
Old 12-17-2018, 08:41 AM   #18
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
For the test, smartctl doesn't do anything beyond telling the drive, "Run your long test." Since there is no further external activity, the LED remains dark. Internally, the surface is typically tested sequentially from beginning to end. There are no long seeks to make any noise.

After starting the test, you should wait the suggested time and then run "smartctl -l selftest" or "smartctl -a" to see the result.
 
1 members found this post helpful.
Old 12-17-2018, 11:16 AM   #19
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Ok I ran it last night, that was 6 hours ago (it said it would take 87 minutes so I figure 6 hours is enough haha). Here are the results:

Code:
$ sudo smartctl -a /dev/sdb
smartctl 6.5 2016-05-07 r4318 [i686-linux-4.14.5-300.fc27.i686+PAE] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar Z7K500
Device Model:     HGST HTS725050A7E630
Serial Number:    RCE55ACE3U5ADM
LU WWN Device Id: 5 000cca 85ef5b7d1
Firmware Version: GS2OA3E0
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes 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, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is:    Mon Dec 17 12:11:15 2018 EST
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:  (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:        (  87) 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     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   198   198   040    Pre-fail  Offline      -       98
  3 Spin_Up_Time            0x0007   235   235   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       63
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   154   154   040    Pre-fail  Offline      -       32
  9 Power_On_Hours          0x0012   087   087   000    Old_age   Always       -       5714
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       54
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       12
193 Load_Cycle_Count        0x0012   097   097   000    Old_age   Always       -       37760
194 Temperature_Celsius     0x0002   230   230   000    Old_age   Always       -       26 (Min/Max 21/47)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   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
# 1  Extended offline    Completed without error       00%      5714         -
# 2  Extended offline    Aborted by host               80%      5712         -
# 3  Extended offline    Aborted by host               90%      5712         -
# 4  Extended offline    Aborted by host               60%      5712         -
# 5  Extended offline    Completed without error       00%      5321         -
# 6  Extended offline    Aborted by host               90%      5319         -
# 7  Extended offline    Aborted by host               90%      5319         -
# 8  Extended offline    Aborted by host               90%      5319         -
# 9  Extended offline    Aborted by host               80%      5319         -
#10  Extended offline    Completed without error       00%      5056         -
#11  Extended offline    Completed without error       00%      5054         -
#12  Extended offline    Completed without error       00%        51         -

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.
Why is everything stuck at 90% and/or "Not_testing"? The last thing I did before going to sleep was:

Code:
$ sudo smartctl -t long /dev/sdb
smartctl 6.5 2016-05-07 r4318 [i686-linux-4.14.5-300.fc27.i686+PAE] (local build)
Copyright (C) 2002-16, 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 87 minutes for test to complete.
Test will complete after Mon Dec 17 06:12:28 2018
So I don't understand these results.
 
Old 12-17-2018, 12:24 PM   #20
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
All those "Aborted by host" with 90% remaining lines are the times when you did something to abort the test without waiting for it to complete. The most recent run, line 1, completed with no error.
 
Old 12-17-2018, 12:30 PM   #21
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
All those "Aborted by host" with 90% remaining lines are the times when you did something to abort the test without waiting for it to complete. The most recent run, line 1, completed with no error.
Oh. I should probably turn on logging....

thanks
 
Old 12-17-2018, 12:40 PM   #22
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Rotwang2 View Post
Code:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0

Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      5714         -
# 5  Extended offline    Completed without error       00%      5321         -
#10  Extended offline    Completed without error       00%      5056         -
#11  Extended offline    Completed without error       00%      5054         -
#12  Extended offline    Completed without error       00%        51         -
These tell you instructions were followed (in particular, #1, for the most recent test allowed to run to completion), and drive is good.
 
Old 12-18-2018, 01:38 AM   #23
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
using & understanding smartctl requires more than a little reading of documentation.
preferably also some tutorials from the wild web.
if OP had done ANY of that 90% of their questions would not have been asked.
it saddens me.
 
1 members found this post helpful.
Old 12-18-2018, 01:45 AM   #24
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
using & understanding smartctl requires more than a little reading of documentation.
preferably also some tutorials from the wild web.
if OP had done ANY of that 90% of their questions would not have been asked.
it saddens me.
Oh you gotta be kidding me. I totally did. These two I found to be the most useful:

https://www.thomas-krenn.com/en/wiki..._with_smartctl

https://www.howtoforge.com/tutorial/...mon-on-ubuntu/

At no time in anything I could find did it say that the drive would remain silent.

Go find me a tutorial that mentioned that, ondoho. Good luck.

Your myopicy "saddens me" too, ondoho
 
Old 12-18-2018, 02:12 AM   #25
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Rotwang2 View Post
Oh you gotta be kidding me. I totally did. These two I found to be the most useful:

https://www.thomas-krenn.com/en/wiki..._with_smartctl

https://www.howtoforge.com/tutorial/...mon-on-ubuntu/

At no time in anything I could find did it say that the drive would remain silent.

Go find me a tutorial that mentioned that, ondoho. Good luck.

Your myopicy "saddens me" too, ondoho
if you'd even read the smartctl man page, or even clicked on the link i provided and read that, you wouldn't have asked some of the questions you asked subsequently.
that's proof enough for me.
 
1 members found this post helpful.
Old 12-18-2018, 02:32 AM   #26
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Rotwang2, I would have to concur with the other guys that have replied to this thread - your own output is clearly telling you that the drive has PASSED the test. Just run "sudo smartctl -a /dev/sdX" (replace "sdX" with the actual node) from time to time, and you should be fine.

Just a quick note: SMART is built into the drive, therefore explains why you are not seeing any activity - because there is NO data being read or written to or from the drive to begin with. I was going to say that before, but you seemed confused enough and rknichols is our "resident expert" when it comes to drive related matters. So if he says your drive is good, then it's good - so stop worrying about it. And saying things like "Your myopicy "saddens me" too, ondoho" doesn't help your cause - just say'n.
 
Old 12-18-2018, 02:34 AM   #27
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
if you'd even read the smartctl man page, or even clicked on the link i provided and read that, you wouldn't have asked some of the questions you asked subsequently.
that's proof enough for me.
Obviously I read the man page that's how I even knew the the CLI commands.
Yea I clicked your link- where does it say that there isn't going to be noise?

Besides that, you're backpedaling from your statement here:

Quote:
Originally Posted by ondoho
preferably also some tutorials from the wild web.
if OP had done ANY of that 90% of their questions would not have been asked.
Now your categorizing it down to just your link instead of the entire web and all of its tutorials and docs, to try and save face.

"it saddens me".
 
Old 12-18-2018, 02:38 AM   #28
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
Rotwang2, I would have to concur with the other guys that have replied to this thread - your own output is clearly telling you that the drive has PASSED the test. Just run "sudo smartctl -a /dev/sdX" (replace "sdX" with the actual node) from time to time, and you should be fine.

Just a quick note: SMART is built into the drive, therefore explains why you are not seeing any activity - because there is NO data being read or written to or from the drive to begin with. I was going to say that before, but you seemed confused enough and rknichols is our "resident expert" when it comes to drive related matters. So if he says your drive is good, then it's good - so stop worrying about it. And saying things like "Your myopicy "saddens me" too, ondoho" doesn't help your cause - just say'n.
Um I was quoting him, re-using his "it saddens me" line (see above).

As for the "PASSED"- well, but- here's the thing though- when I was still in the process of understanding- I had noticed that when I check it too early with smartctl -a (as in like 2 minutes), it still says "passed" even though it didn't do the entire test. So that's what was confusing me, and thanks to (most of) the responders, I get it now.

I'm not worried about it all, I'm way past that, thanks. As I had said above, I get it now.
 
Old 12-18-2018, 02:41 AM   #29
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Well, can we leave it there then? Your questions have been answered, there's no need to continue insulting other members. I don't mean to be a smartass or rude to you, but let's stop being silly.
 
Old 12-18-2018, 02:46 AM   #30
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
Well, can we leave it there then? Your questions have been answered, there's no need to continue insulting other members. I don't mean to be a smartass or rude to you, but let's stop being silly.
Oh wait where did I insult someone?
 
  


Reply

Tags
smartctl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dude necessary time to do dd if=/dev/urandom of=/dev/sdx Gugur Slackware 49 02-07-2018 07:42 PM
udev rule to rename /dev/sdx as /dev/sdr does not work :-( on OS 11.2 tkmbe SUSE / openSUSE 2 05-10-2012 01:53 AM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM
How do I change the /dev/sdx number of a drive ? Christof999 Linux - Hardware 1 06-08-2007 03:29 PM
USB Drive - Static /dev/sdx Nodes in 2.4.x? Ruler2112 Linux - Hardware 1 01-26-2007 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration