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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
01-25-2022, 09:55 PM
|
#61
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
Too soon to be deciding before knowing the results. You get to it when you get to it! 
|
|
|
01-26-2022, 11:16 AM
|
#62
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
Question ???
sudo smartctl -x /dev/sda | pastebinit - What is that thingie between sda and pastebinit? How do I enter it?
Tommi
|
|
|
01-26-2022, 11:25 AM
|
#63
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,992
|
Quote:
Originally Posted by OrphanHome
sudo smartctl -x /dev/sda | pastebinit - What is that thingie between sda and pastebinit? How do I enter it?
|
In this context, the character is called a " pipe", and is an instruction to transfer data from one command to another command.
Here it takes the output from the smartctl command and passes it as input to pastebinit (which is a command that uploads text to a website).
Since your location says Missouri you're presumably in the US and using a US keyboard layout, in which case the key should be between between backspace and enter, and will require pressing shift.
(On UK keyboard layouts, the backslash/pipe key can be to the left of Z, and on other layouts it can be elsewhere.)
An alternative option is to use " >" to instead write the output to a file (which you can then attach using "Manage Attachments" button), e.g:
Code:
sudo smartctl -x /dev/sda > /home/user/smartctl_sda.txt
(In general, the benefits of this method (writing a file) is that it doesn't require an active Internet connection on the machine running the command, and also you can check the contents for sensitive information before uploading it.)
Last edited by boughtonp; 01-26-2022 at 11:36 AM.
|
|
|
01-26-2022, 11:35 AM
|
#64
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
Okay, I found the pipe, which appears as two upright dashes on my keyboard.
I will try the last command sent to me to run smartctl.
|
|
|
01-26-2022, 11:39 AM
|
#65
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,992
|
When typed, make sure it is solid and not a broken bar - they are different characters.
You can safely test this with:
Code:
$ echo test | cat
test
$ echo test ¦ cat
test ¦ cat
If you get the second result, your pipe character is on a different key.
|
|
|
01-26-2022, 11:49 AM
|
#66
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
The result of entering the command was to discover "pastebinit" not installed. I installed it.
Code:
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -x /dev/sda | pastebinit
[1]+ Stopped sudo smartctl -x /dev/sda | pastebinit
tomgirl@tomgirl-OptiPlex-790 ~ $ The program 'pastebinit' is currently not installed. You can install it by typing:
sudo apt install pastebinit
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo apt install pastebinit
[sudo] password for tomgirl:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pastebinit
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 14.6 kB of archives.
After this operation, 160 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main i386 pastebinit all 1.5-1 [14.6 kB]
Fetched 14.6 kB in 0s (26.4 kB/s)
Selecting previously unselected package pastebinit.
(Reading database ... 237905 files and directories currently installed.)
Preparing to unpack .../pastebinit_1.5-1_all.deb ...
Unpacking pastebinit (1.5-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up pastebinit (1.5-1) ...
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -x /dev/sda | pastebinit
Unable to read or parse the result page, it could be a server timeout or a change server side, try with another pastebin.
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -x /dev/sda | pastebinit
Unable to read or parse the result page, it could be a server timeout or a change server side, try with another pastebin.
tomgirl@tomgirl-OptiPlex-790 ~ $
Now what???
Tommi
Last edited by OrphanHome; 01-26-2022 at 02:40 PM.
|
|
|
01-26-2022, 11:58 AM
|
#67
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,374
|
I would suggest simply capturing the output to a file instead of trying to send to pastebin (my personal preference is to not use that anyway, others will have other choices).
To capture the output to a file follow boughtonp's advice above, something like this...
Code:
sudo /usr/sbin/smartctl -x /dev/sda > /home/tomgirl/smartctl_sda.txt
Here the '>' character will redirect the output of smartctl into a file located in your home directory. You may then upload that file here inline (doing so also assures it will not disappear over time so future visitors can follow the discussion in one place).
If you want to see the output scroll by as it is sent to the file pipe it into the tee filter...
Code:
sudo /usr/sbin/smartctl -x /dev/sda | tee -a /home/tomgirl/smartctl_sda.txt
The pipe will send it to tee which will "tee it off" into two streams, one to your terminal and the other to the file (the -a will append any existing file rather than overwrite it).
Last edited by astrogeek; 01-26-2022 at 12:02 PM.
|
|
|
01-26-2022, 12:04 PM
|
#68
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
Here's the results of running sudo smartctl -x /dev/sda | less
Code:
smartctl 6.5 2016-01-24 r4214 [i686-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus
Device Model: ST3200822AS
Serial Number: 4LJ1RPSH
Firmware Version: 3.02
User Capacity: 200,049,647,616 bytes [200 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-6 T13/1410D revision 2
Local Time is: Wed Jan 26 11:57:02 2022 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Unavailable
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Unavailable
Wt Cache Reorder: Unavailable
=== 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: ( 430) 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 111) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate POSR-- 060 053 006 - 123001914
3 Spin_Up_Time PO---- 096 095 000 - 0
4 Start_Stop_Count -O--CK 096 096 020 - 4790
5 Reallocated_Sector_Ct PO--CK 100 100 036 - 8
7 Seek_Error_Rate POSR-- 086 060 030 - 425664050
9 Power_On_Hours -O--CK 056 056 000 - 39249
10 Spin_Retry_Count PO--C- 100 100 097 - 0
12 Power_Cycle_Count -O--CK 096 096 020 - 4798
194 Temperature_Celsius -O---K 039 057 000 - 39
195 Hardware_ECC_Recovered -O-RC- 060 053 000 - 123001914
197 Current_Pending_Sector -O--C- 100 100 000 - 0
198 Offline_Uncorrectable ----C- 100 100 000 - 0
199 UDMA_CRC_Error_Count -OSRCK 200 200 000 - 0
200 Multi_Zone_Error_Rate ------ 100 253 000 - 0
202 Data_Address_Mark_Errs -O--CK 100 253 000 - 0
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
General Purpose Log Directory not supported
SMART Log Directory Version 1 [multi-sector log support]
Address Access R/W Size Description
0x00 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 SL R/O 5 Ext. Comprehensive SMART error log
0x06 SL R/O 1 SMART self-test log
0x07 SL R/O 1 Extended self-test log
0x09 SL R/W 1 Selective self-test log
0x20 SL R/O 1 Streaming performance log [OBS-8]
0x21 SL R/O 1 Write stream error log
0x22 SL R/O 1 Read stream error log
0x23 SL R/O 1 Delayed sector log [OBS-8]
0x80-0x9f SL R/W 16 Host vendor specific log
0xa0 SL VS 1 Device vendor specific log
0xa1 SL VS 20 Device vendor specific log
0xa2 SL VS 101 Device vendor specific log
0xa8 SL VS 20 Device vendor specific log
0xa9 SL VS 1 Device vendor specific log
0xb0 SL VS 1 Device vendor specific log
0xb4 SL VS 4 Device vendor specific log
0xbe-0xbf SL VS 1 Device vendor specific log
SMART Extended Comprehensive Error Log (GP Log 0x03) not supported
SMART Error Log Version: 1
No Errors Logged
SMART Extended Self-test Log (GP Log 0x07) not supported
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% 39240 -
# 2 Short offline Completed without error 00% 29693 -
# 3 Short offline Completed without error 00% 28659 -
# 4 Short offline Completed without error 00% 13693 -
# 5 Short offline Completed without error 00% 1504 -
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 Commands not supported
Device Statistics (GP/SMART Log 0x04) not supported
SATA Phy Event Counters (GP Log 0x11) not supported
Tommi
Last edited by OrphanHome; 01-26-2022 at 02:27 PM.
Reason: set code apart & secure
|
|
1 members found this post helpful.
|
01-26-2022, 12:19 PM
|
#69
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
Code:
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo/usr/sbin/smartctl -x /dev/sda> /home/tomgirl/smartctl_sda.txt
bash: sudo/usr/sbin/smartctl: No such file or directory
tomgirl@tomgirl-OptiPlex-790 ~ $
cntrl
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo /usr/sbin/smartctl -x /dev/sda> | tee -a /home/tomgirl/smartctl_sda.txt
bash: syntax error near unexpected token `|'
tomgirl@tomgirl-OptiPlex-790 ~ $
Last edited by OrphanHome; 01-26-2022 at 02:29 PM.
Reason: Identify code and secure it.
|
|
|
01-26-2022, 12:19 PM
|
#70
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,374
|
Now you are getting to the desired point!
I will defer to others with more knowledge to interpret what they see here.
One additional suggestion is to edit that last post and put the data inside [CODE]...[/CODE] tags. Doing so will preserve indentation and provide other visual clues which make it easier for others to comprehend. You may write those yourself as shown, or use the # button available with Advanced edit options. (A complete list of BBCode tags is always available via a link near the bottom of every thread view).
Here is an example: Typing this [CODE]Here is some formatted text[/CODE], square brackets and all, will preserve internal whitespace and appear like this...
Code:
Here is some formatted text
The first one is called an opening tag and begins the block of text, the second is a closing tag and ends the block. Dont miss the '/' which differentiates between openers and closers!
Last edited by astrogeek; 01-26-2022 at 12:38 PM.
|
|
|
01-26-2022, 12:23 PM
|
#71
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,374
|
You must have typed while I was reading...
Quote:
Originally Posted by OrphanHome
cntrl
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo/usr/sbin/smartctl -x /dev/sda> /home/tomgirl/smartctl_sda.txt
bash: sudo/usr/sbin/smartctl: No such file or directory
tomgirl@tomgirl-OptiPlex-790 ~ $
cntrl
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo /usr/sbin/smartctl -x /dev/sda> | tee -a /home/tomgirl/smartctl_sda.txt
bash: syntax error near unexpected token `|'
tomgirl@tomgirl-OptiPlex-790 ~ $
cntrl
|
There must be a space after sudo in the first case, and the pipe replaces the angle bracket, does not follow it in the second.
Learn to be precise!
|
|
|
01-26-2022, 12:42 PM
|
#72
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
|
Quote:
Originally Posted by astrogeek
One additional suggestion is to edit that last post and put the data inside [CODE]…[/CODE] tags
|
Comment #57 provided two different links to explanations how to do so. Until that's done, I won't be looking at it. Without the original formatting, it's too hard to read the parts that matter.
Please don't pollute threads with off topic matters (irrelevance). This means installation processes. Report that you installed something if you think it matters, but leave out the details, unless the problem has to do with attempting to install something that fails.
|
|
|
01-26-2022, 12:46 PM
|
#73
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
Here is more code.
Code:
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo /usr/sbin/smartctl -x /dev/sda | tee -a /home/tomgirl/smartctl_sda.txt
smartctl 6.5 2016-01-24 r4214 [i686-linux-4.10.0-38-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus
Device Model: ST3200822AS
Serial Number: 4LJ1RPSH
Firmware Version: 3.02
User Capacity: 200,049,647,616 bytes [200 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-6 T13/1410D revision 2
Local Time is: Wed Jan 26 12:36:17 2022 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Unavailable
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Unavailable
Wt Cache Reorder: Unavailable
=== 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: ( 430) 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 111) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
1 Raw_Read_Error_Rate POSR-- 060 053 006 - 123097403
3 Spin_Up_Time PO---- 096 095 000 - 0
4 Start_Stop_Count -O--CK 096 096 020 - 4790
5 Reallocated_Sector_Ct PO--CK 100 100 036 - 8
7 Seek_Error_Rate POSR-- 086 060 030 - 425666960
9 Power_On_Hours -O--CK 056 056 000 - 39249
10 Spin_Retry_Count PO--C- 100 100 097 - 0
12 Power_Cycle_Count -O--CK 096 096 020 - 4798
194 Temperature_Celsius -O---K 039 057 000 - 39
195 Hardware_ECC_Recovered -O-RC- 060 053 000 - 123097403
197 Current_Pending_Sector -O--C- 100 100 000 - 0
198 Offline_Uncorrectable ----C- 100 100 000 - 0
199 UDMA_CRC_Error_Count -OSRCK 200 200 000 - 0
200 Multi_Zone_Error_Rate ------ 100 253 000 - 0
202 Data_Address_Mark_Errs -O--CK 100 253 000 - 0
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
General Purpose Log Directory not supported
SMART Log Directory Version 1 [multi-sector log support]
Address Access R/W Size Description
0x00 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 SL R/O 5 Ext. Comprehensive SMART error log
0x06 SL R/O 1 SMART self-test log
0x07 SL R/O 1 Extended self-test log
0x09 SL R/W 1 Selective self-test log
0x20 SL R/O 1 Streaming performance log [OBS-8]
0x21 SL R/O 1 Write stream error log
0x22 SL R/O 1 Read stream error log
0x23 SL R/O 1 Delayed sector log [OBS-8]
0x80-0x9f SL R/W 16 Host vendor specific log
0xa0 SL VS 1 Device vendor specific log
0xa1 SL VS 20 Device vendor specific log
0xa2 SL VS 101 Device vendor specific log
0xa8 SL VS 20 Device vendor specific log
0xa9 SL VS 1 Device vendor specific log
0xb0 SL VS 1 Device vendor specific log
0xb4 SL VS 4 Device vendor specific log
0xbe-0xbf SL VS 1 Device vendor specific log
SMART Extended Comprehensive Error Log (GP Log 0x03) not supported
SMART Error Log Version: 1
No Errors Logged
SMART Extended Self-test Log (GP Log 0x07) not supported
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% 39240 -
# 2 Short offline Completed without error 00% 29693 -
# 3 Short offline Completed without error 00% 28659 -
# 4 Short offline Completed without error 00% 13693 -
# 5 Short offline Completed without error 00% 1504 -
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 Commands not supported
Device Statistics (GP/SMART Log 0x04) not supported
SATA Phy Event Counters (GP Log 0x11) not supported
Tommi
Last edited by OrphanHome; 01-26-2022 at 02:30 PM.
|
|
1 members found this post helpful.
|
01-26-2022, 01:08 PM
|
#74
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
MrMazda
Code:
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -x /dev/sda | pastebinit
[sudo] password for tomgirl:
Unable to read or parse the result page, it could be a server timeout or a change server-side, try with another Pastebin.
tomgirl@tomgirl-OptiPlex-790[/CODE]
Last edited by OrphanHome; 01-26-2022 at 02:24 PM.
Reason: distinguish code
|
|
|
01-26-2022, 01:33 PM
|
#75
|
Member
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65
Original Poster
Rep: 
|
To all,
I have never done anything like this in my life, so mistakes are being made. I apologize for any and all. Perhaps I should leave this stuff be so I don't mess up my computer.
Tommi
|
|
|
All times are GMT -5. The time now is 02:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|