You are Here:
Install Updates Gimp Error - see Security & Bug Fixes Section Sticky



GSmartControl - any means to get smart data using terminal command

Author (Read 594 times)

0 Members and 1 Guest are viewing this topic.

GSmartControl - any means to get smart data using terminal command
« on: September 01, 2019, 03:22:32 PM »
 

Sprintrdriver

  • Occasional Poster
  • **
  • 95
    Posts
  • Country: no
  • Reputation: 4
  • Linux Lite on Dell Lattude D620

  • Linux Lite: 4.2 64bit

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Hi.
I have installed the program GSmartControl 1.1.3 so that I can extract health data from any harddrives connected to the computer.
After I installed the program, the procedure to get HDD smart data is to open the program, navigate to correct tab and from there I can select and copy the smart data from any given harddrive.The question is : Is there any way to use Terminal to output the smart-data from a given disk?
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 


Re: GSmartControl - any means to get smart data using terminal command
« Reply #1 on: September 02, 2019, 09:51:21 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7086
    Posts
  • Country: nz
  • Reputation: 664
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
What do the developers say when you ask them?

Sent from my Mi Max Prime using Tapatalk

 

Re: GSmartControl - any means to get smart data using terminal command
« Reply #2 on: September 02, 2019, 10:00:32 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1007
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.6 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: GSmartControl - any means to get smart data using terminal command
« Reply #3 on: September 03, 2019, 06:10:16 PM »
 

Sprintrdriver

  • Occasional Poster
  • **
  • 95
    Posts
  • Country: no
  • Reputation: 4
  • Linux Lite on Dell Lattude D620

  • Linux Lite: 4.2 64bit

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Ok, thanks. I haven't asked the developers.

However, following the links provided by trinidad, I found that the command to use is
sudo smartctl -x /dev/sda

To get the output of the attributes only, I figured to use grep:
sudo smartctl -x /dev/sda | grep ATTRIBUTE_NAME -A19

But - if this particular disk makes smartctl output 19 attributes, another disk model may have more.
The first line after the attributes always contains the phrase "auto-keep" I wonder ig there is possible to make grep take account for that so the command isn't all static.

To solve that, solution may be stupidly complex or need a bash file. But if anyone know about a nice solution I'm eager to learn.
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 


 


Install Updates Gimp Error - see Security & Bug Fixes Section Sticky