LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 12:00 AM   #1
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Rep: Reputation: Disabled
Shouldn't smartctl -t long /dev/sdx make the drive make noise?


I run:

smartctl -t long /dev/sda

Shouldn't the drive start making noise? I've tried this on two drives and in both cases I've tried waiting as long as 20 minutes and they don't make any noise (as they would if copying a file) and there's no activity on the led.

Both drives are fairly new and hand have SMART capability. For the 500g drive I ran:

Code:
$ sudo smartctl -i /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 00:54:07 2018 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
The other drive is newer- from about 2014.

I swear there's something I'm missing here.

I'm doing:

sudo smartctl -t long /dev/sdb

Is that wrong? (oh and no, this not the boot drive).

The same thing happens on a different PC with a 1TB drive.

I really must be getting the line commands wrong right?
 
Old 12-17-2018, 02:17 AM   #2
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
are you saying this happens on both drives?

how close did you put your ears? hands, to feel the vibrations?

the long tests require a bit of reading to understand.
they can be queried while running.

some tests probably only read info from some internal SMART chip.

http://dt.iki.fi/hard-drive-and-fs-health-checks

and we would evtl. need to see more output.
 
Old 12-17-2018, 02:21 AM   #3
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
In answer to what I think is your question; no, not necessarily. If you did hear a "clicking sound", then that could actually mean drive failure (and in that case likely would mean that). But that said, I'm not seeing anything that would indicate drive failure.

I had a drive fail on me - smartctl still reported the drive as PASSED. Because it hadn't actually breached any of the thresholds, but files did disappear from it, followed by filesystem, and then partition collapse, as well as a "clicking sound" right when it did actually fail.

If both drives are new; I would not expect they would be failing yet. I would say the chances of that would be quite small at this stage.

So no, I don't see any reason why you are "missing anything" IMHO.
 
Old 12-17-2018, 02:35 AM   #4
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
are you saying this happens on both drives?

how close did you put your ears? hands, to feel the vibrations?

the long tests require a bit of reading to understand.
they can be queried while running.

some tests probably only read info from some internal SMART chip.

http://dt.iki.fi/hard-drive-and-fs-health-checks

and we would evtl. need to see more output.
Yes, both drives. As for the sound- well when I would copy files from they, they'd be making the usual crunching noises that drives make; and perhaps most importantly the activity light would be flickering. smartctl isn't causing either. So what is it doing, exactly? If it's the short test I can see why it would just be a question with an immediate answer. But the long test? It says it'll take like 90 minutes, so isn't it supposed to be, well.... doing something?
 
Old 12-17-2018, 02:38 AM   #5
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
Why don't you post the results of the following command in CODE tags;

Code:
sudo smartctl -x /dev/sda
 
Old 12-17-2018, 02:53 AM   #6
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Oh yea it's actually sdb (my mistake that the first time at the top of my post I said sda): Here's the results for sdb, the one I was checking:

Code:
$ sudo smartctl -x /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 03:52:10 2018 EST
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
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: 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:      ( 249) Self-test routine in progress...
                                        90% of test remaining.
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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   062    -    0
  2 Throughput_Performance  P-S---   198   198   040    -    98
  3 Spin_Up_Time            POS---   235   235   033    -    1
  4 Start_Stop_Count        -O--C-   100   100   000    -    63
  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---   154   154   040    -    32
  9 Power_On_Hours          -O--C-   087   087   000    -    5712
 10 Spin_Retry_Count        PO--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    54
191 G-Sense_Error_Rate      -O-R--   100   100   000    -    0
192 Power-Off_Retract_Count -O--CK   100   100   000    -    12
193 Load_Cycle_Count        -O--C-   097   097   000    -    37759
194 Temperature_Celsius     -O----   193   193   000    -    31 (Min/Max 21/47)
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  SATA NCQ Queued 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)
 
Old 12-17-2018, 03:00 AM   #7
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Btw- the way I'm testing the other drive; the 1TB drive- it's on a different PC (the one I'm on right now actually), and the way I'm checking is that a few hours ago I burned an ALT Linux Rescue iso and booted into that. (Because I wanted to make everything as clean as possible; occam's razor.)
 
Old 12-17-2018, 03:08 AM   #8
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
I think you might be worrying for nothing. Other than the "Seek_Time_Performance" SMART attribute, I don't see anything of concern in your output. And even in terms of that, it hasn't breached the threshold yet. But I would keep an eye on it though.
 
Old 12-17-2018, 03:14 AM   #9
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
I think you might be worrying for nothing. Other than the "Seek_Time_Performance" SMART attribute, I don't see anything of concern in your output. And even in terms of that, it hasn't breached the threshold yet. But I would keep an eye on it though.

Right but it's never run a long test. That's not the output from a long test.
 
Old 12-17-2018, 03:16 AM   #10
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
Right but it's never run a long test. That's not the output from a long test.
You can run the following command to get a little more detail on the SMART "attributes";

Code:
sudo smartctl -a /dev/sdb
(run the long test before you run that command, and wait for it to finish - it should tell you how long it will take.)
 
Old 12-17-2018, 03:26 AM   #11
Rotwang2
Member
 
Registered: Aug 2014
Distribution: Ubuntu, Centos, Fedora
Posts: 210

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
You can run the following command to get a little more detail on the SMART "attributes";

Code:
sudo smartctl -a /dev/sdb
(run the long test before you run that command, and wait for it to finish - it should tell you how long it will take.)
Wait I don't get it- I should run the -a command after the long test finishes? I don't follow you. Do you mean I should run the long test and then run the -a while the long test is going on so that I can see how long it'll take to finish?
 
Old 12-17-2018, 03:33 AM   #12
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
Wait I don't get it- I should run the -a command after the long test finishes?
Yes.

Quote:
I don't follow you. Do you mean I should run the long test and then run the -a while the long test is going on so that I can see how long it'll take to finish?
No. When you tell it to run a long test, it should tell you how long the test will take. It vary's depending on the drive.
 
Old 12-17-2018, 03:36 AM   #13
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. When you tell it to run a long test, it should tell you how long the test will take. It vary's depending on the drive.
Oh ok I think I see what you mean. I don't understand why I should bother running the long test when it doesn't make the drive do anything.

Well here's a question for all of you on this thread (and thanks for your help btw)- Have any of you run a long test on a PC sitting next to you? (As opposed to a server somewhere). Did the drive do anything? Did the activity led light up?
 
Old 12-17-2018, 03:36 AM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,788
Blog Entries: 1

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
Quote:
Originally Posted by Rotwang2 View Post
Wait I don't get it- I should run the -a command after the long test finishes? I don't follow you. Do you mean I should run the long test and then run the -a while the long test is going on so that I can see how long it'll take to finish?
IME smartctl -a is multiply broken, unless you wait as long as smartctl -t long directs before using smartctl -a.
 
Old 12-17-2018, 03:37 AM   #15
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
...
Well here's a question for all of you on this thread (and thanks for your help btw)- Have any of you run a long test on a PC sitting next to you? (As opposed to a server somewhere). Did the drive do anything? Did the activity led light up?
Yes. No, it didn't make sounds, nor did the LED light up.
 
  


Reply

Tags
smartctl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:34 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