Working with smartctl in (CLI):
Hi there. I am doing some work with 'smartctl' in (CLI) Konsole environment. When I pass 'smartctl -t long /dev/sda' the following is displayed: smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.6-1-default] (SUSE RPM) Copyright (C) 2002-23, 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 10 minutes for test to complete. Test will complete after Fri Mar 1 16:32:28 2024 CST Use smartctl -X to abort test. Thinkcentre-M57p:~> I do not understand why this dumps back to prompt so quickly (in the Konsole instance). Ok, it is because "smartctl" sends the test off to the drives firmware. Is the "smartctl" application running? I cannot see a process output by reviewing 'ps -aux' either. How can I see the test status? Yes, I have been reviewing 'man smartctl' as shown below. Thinkcentre-M57p:~> ps -aux | grep "smartctl" root 9367 0.0 0.0 6432 3200 pts/2 S+ 15:54 0:00 man smartctl pj 11326 0.0 0.0 6592 2176 pts/4 S+ 16:41 0:00 grep --color=auto smartctl Thinkcentre-M57p:~> I review the test results with passing '# smartctl -iA -d ata -T verypermissive /dev/sda' *but* I want to know how to view the entire log file of the test though like I can see when 'GSmartControl' 'extended test' is run in (GUI). In 'smartctl' 'man page' it has '-l TYPE' but no type displays the full robust log from what I can see in 'GSmartControl' so far in my mind. Can you tell me more about what is going on here and how to review the full log? -Thanks
-pj composed on 2024-03-01 17:07 (UTC-0600):
=== 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 10 minutes for test to complete. Test will complete after Fri Mar 1 16:32:28 2024 CST Use smartctl -X to abort test. Thinkcentre-M57p:~>
I do not understand why this dumps back to prompt so quickly (in the Konsole instance). Ok, it is because "smartctl" sends the test off to the drives firmware. Is the "smartctl" application running?
What does it say that you don't understand? It tells you what to expect. When the wait time has expired, use smartctl to access the results.
I cannot see a process output by reviewing 'ps -aux' either. How can I see the test status?
You can't. Smartctl simply triggers the test *in/by* the drive's firmware. The operating system that runs smartctl isn't involved with the triggered process. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On Fri, 1 Mar 2024 18:23:07 -0500 Felix Miata <mrmazda@earthlink.net> wrote:
What does it say that you don't understand? It tells you what to expect. When the wait time has expired, use smartctl to access the results.
You can't. Smartctl simply triggers the test *in/by* the drive's firmware. The operating system that runs smartctl isn't involved with the triggered process.
It's not what it said that he doesn't understand. It's what it didn't say. Namely, what you just explained! [rearranged]
-pj composed on 2024-03-01 17:07 (UTC-0600):
I cannot see a process output by reviewing 'ps -aux' either. How can I see the test status?
Note that "aux" are Berkeley-style arguments to ps and they don't use a "-" prefix. So the "correct" form is just ps aux - But ps is very forgiving of what people type as arguments. :)
On 03-01-2024 06:56PM, Dave Howorth wrote:
On Fri, 1 Mar 2024 18:23:07 -0500 Felix Miata <mrmazda@earthlink.net> wrote:
What does it say that you don't understand? It tells you what to expect. When the wait time has expired, use smartctl to access the results.
You can't. Smartctl simply triggers the test *in/by* the drive's firmware. The operating system that runs smartctl isn't involved with the triggered process.
It's not what it said that he doesn't understand. It's what it didn't say. Namely, what you just explained!
[rearranged]
-pj composed on 2024-03-01 17:07 (UTC-0600):
I cannot see a process output by reviewing 'ps -aux' either. How can I see the test status?
Note that "aux" are Berkeley-style arguments to ps and they don't use a "-" prefix. So the "correct" form is just ps aux - But ps is very forgiving of what people type as arguments. :)
Hey thanks for that information. I updated my ps note.
* -pj via openSUSE Users <users@lists.opensuse.org> [03-01-24 18:08]:
Hi there.
I am doing some work with 'smartctl' in (CLI) Konsole environment.
When I pass 'smartctl -t long /dev/sda' the following is displayed:
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.6-1-default] (SUSE RPM) Copyright (C) 2002-23, 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 10 minutes for test to complete. Test will complete after Fri Mar 1 16:32:28 2024 CST Use smartctl -X to abort test. Thinkcentre-M57p:~>
I do not understand why this dumps back to prompt so quickly (in the Konsole instance). Ok, it is because "smartctl" sends the test off to the drives firmware. Is the "smartctl" application running? I cannot see a process output by reviewing 'ps -aux' either. How can I see the test status?
Yes, I have been reviewing 'man smartctl' as shown below.
Thinkcentre-M57p:~> ps -aux | grep "smartctl" root 9367 0.0 0.0 6432 3200 pts/2 S+ 15:54 0:00 man smartctl
pj 11326 0.0 0.0 6592 2176 pts/4 S+ 16:41 0:00 grep --color=auto smartctl Thinkcentre-M57p:~>
I review the test results with passing '# smartctl -iA -d ata -T verypermissive /dev/sda'
*but*
I want to know how to view the entire log file of the test though like I can see when 'GSmartControl' 'extended test' is run in (GUI). In 'smartctl' 'man page' it has '-l TYPE' but no type displays the full robust log from what I can see in 'GSmartControl' so far in my mind.
Can you tell me more about what is going on here and how to review the full log?
there is this thing on the internet, google, which tends to find answers to questions. https://linuxconfig.org/how-to-check-an-hard-drive-health-from-the-command-l... then post questions for actions which you cannot comprehend. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
participants (5)
-
-pj
-
Bill Swisher
-
Dave Howorth
-
Felix Miata
-
Patrick Shanahan