LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-25-2022, 06:14 PM   #46
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled

Oh brother, I messed it up. Let me run it again.
 
Old 01-25-2022, 06:17 PM   #47
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -t long /dev/sda
[sudo] password for tomgirl:
sudo: smartctl: command not found
tomgirl@tomgirl-OptiPlex-790 ~ $

The $ came up on its own. sudo: smartctl: command not found Now what?
 
Old 01-25-2022, 06:25 PM   #48
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Here is the proble. Smart control not installed. Fixed

tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -t long /dev/sda
[sudo] password for tomgirl:
sudo: smartctl: command not found
tomgirl@tomgirl-OptiPlex-790 ~ $ smartctl -t long /dev/sda
The program 'smartctl' is currently not installed. You can install it by typing:
sudo apt install smartmontools
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo apt install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gsmartcontrol smart-notifier gpg
Recommended packages:
mailx | mailutils
The following NEW packages will be installed:
smartmontools
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 446 kB of archives.
After this operation, 1,526 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 smartmontools i386 6.4+svn4214-1ubuntu0.1 [446 kB]
Fetched 446 kB in 1s (372 kB/s)
Selecting previously unselected package smartmontools.
(Reading database ... 237861 files and directories currently installed.)
Preparing to unpack .../smartmontools_6.4+svn4214-1ubuntu0.1_i386.deb ...
Unpacking smartmontools (6.4+svn4214-1ubuntu0.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (229-4ubuntu21) ...
Setting up smartmontools (6.4+svn4214-1ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21) ...
tomgirl@tomgirl-OptiPlex-790 ~ $ ^C
 
Old 01-25-2022, 06:31 PM   #49
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Code:
sudo apt install smartmontools
If the drive is 10 years old and you have the spare cash just buy a new one...

Yes, the $ is part of the terminal command line prompt and comes up automatically.

The -t will initiate a test immediately, I would just do a short test which should only take 10 minutes or so. To see the results type in the command

sudo smartctl -a /dev/sda

Did you not let apt finish installing and configuring smartmontools?

Last edited by michaelk; 01-25-2022 at 06:33 PM.
 
Old 01-25-2022, 06:36 PM   #50
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
It's running now. 111 minutes wait.
Tommi
 
Old 01-25-2022, 08:51 PM   #51
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
None of those commands are succeeding because smartctl is not in your path.

Code:
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo smartctl -t long /dev/sda
[sudo] password for tomgirl:
sudo: smartctl: command not found
That is telling you that the command 'smartctl' was not found.

I am not a Mint user and not much familiar with their use of sudo so I will have to guess, and my guess is that you will need to supply the full path to the smartctl command as it may not be in the path for normal users.

First I would try this just to make sure it is on your system (it should be):

Code:
$ whereis smartctl
smartctl: /usr/sbin/smartctl /usr/man/man8/smartctl.8.gz
On my system this tells me that the path to smartctl is /usr/sbin/smartctl, yours may be different but it will probably be either /usr/sbin/smartctl or /sbin/smartctl.

Next, let's change the smartctl command you are using to somethng which should not take more than a couple of seconds to execute just so we can make sure you are running smartctl without having to wait for it. Assuming your path from above is /usr/sbin/smartctl, try this (substitute your actual path):

Code:
sudo /usr/sbin/smartctl -a /dev/sda
That should produce some recognizable output about your hard drive and it will tell us that you have indeed executed a smartctl command. It will either succeed or fail immediately so you will not be in question as to whether it is complete.

Try that and we will move on to a more useful command... and be patient, you will learn your way around!

EDIT:
Oops! I did not read your second post above about installing smartmontools...

But assuming you got it installed, 111 minutes is too long for most smartctl commands, so lets be clear - what command is still running, exactly?

Code:
sudo smartctl -a /dev/sda
... should complete almost immediately.

Last edited by astrogeek; 01-25-2022 at 09:19 PM. Reason: Restore first post version
 
Old 01-25-2022, 09:01 PM   #52
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Here it is:

tomgirl@tomgirl-OptiPlex-790 ~ $ whereis smartctl
smartctl: /usr/sbin/smartctl /usr/share/man/man8/smartctl.8.gz
tomgirl@tomgirl-OptiPlex-790 ~ $ OrpHan#*hOmE
OrpHan#*hOmE: command not found
tomgirl@tomgirl-OptiPlex-790 ~ $ whereis smartctl smartctl: /usr/sbin/smartctl /usr/man/man8/smartctl.8.gz
smartctl: /usr/sbin/smartctl /usr/share/man/man8/smartctl.8.gz
smartctl::
smartctl: /usr/sbin/smartctl /usr/share/man/man8/smartctl.8.gz
smartctl.8: /usr/share/man/man8/smartctl.8.gz
tomgirl@tomgirl-OptiPlex-790 ~ $ sudo /usr/sbin/smartctl -a /dev/sda
[sudo] password for tomgirl:
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: Tue Jan 25 20:59:38 2022 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
 
Old 01-25-2022, 09:11 PM   #53
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
OK, so adding the path did work apparently! I'll re-edit my post above so that everyone can follow what we just did.

But the point to clearly see here is that you have provided the full path to the smartctl command in your sudo command. So any future smartctl commands we try should begin with this: sudo /usr/sbin/smartctl ...

So that get's us over the first hurdle. Now, the data you posted looks valid as far as it goes. What should follow will be different for different drives but it should complete almost immediately and return you to a shell prompt tomgirl@tomgirl-OptiPlex-790 ~ $. Are you saying that it has not returned to that prompt?

Last edited by astrogeek; 01-25-2022 at 09:20 PM. Reason: typos
 
Old 01-25-2022, 09:13 PM   #54
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
It did return to the prompt, but I didn't print that.
 
Old 01-25-2022, 09:14 PM   #55
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,781

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Maybe the test has not finished or the OP just has not posted the data yet. Hope it is just the later... I guessed wrong...
 
Old 01-25-2022, 09:18 PM   #56
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
I hate to say this, but I need to get in and care for the girls, bedtime for them. Can we pick this up tomorrow?

Tommi
 
Old 01-25-2022, 09:18 PM   #57
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Code:
sudo smartctl -x /dev/sda | pastebinit
is now needed so we can see the crucial portions of a complete report.

Please remember when pasting command output here that you enclose what you paste within code tags, [ # ] icon above the input window.
 
Old 01-25-2022, 09:19 PM   #58
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Okay
 
Old 01-25-2022, 09:28 PM   #59
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by OrphanHome View Post
It did return to the prompt, but I didn't print that.
OK, excellent, that was what was expected!

So you should now be able to run the command and provide the pastebin data requested by mrmazda.

I woud suggest a short test but rather than confuse things with additional commands, I'll step aside and let you all resume where you left off.

BTW, when you think something has been running too long or are unsure whether it has completed, please paste the exact command here so that we can make a guess whether that is to be expected or not.
 
Old 01-25-2022, 09:41 PM   #60
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
MrMazda,

Can we pick up on this tomorrow? I've got to take care of my girls, bedtime. I saw a bug listed on the report. Should I scrap the HDD? Or is it more profound?

Thank you so much for your patience and assistance. You guys are the best.

Tommi
 
  


Reply



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
LXer: Ubuntu MATE 19.10 Released with Latest MATE Desktop, New Apps, Many Improvements LXer Syndicated Linux News 0 10-19-2019 09:00 AM
SOLVED MINT 18.3 Mint Mate No sound in Firefox after stealthy upgrade to 64.0 - mint 1.0 version lax luthier Linux - Desktop 1 04-11-2019 04:23 AM
LXer: Linux Mint 17.2 “Rafaela” MATE RC Is Out and Based on MATE 1.10 LXer Syndicated Linux News 0 06-17-2015 11:32 PM
LXer: Ubuntu MATE 15.04 Arrives With MATE Desktop 1.8.2 and MATE Tweak LXer Syndicated Linux News 0 05-15-2015 09:30 AM

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

All times are GMT -5. The time now is 08:32 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