smartctl

Questions about applications and software
Forum rules
Before you post please read how to get help

smartctl

Postby borgward on Fri Jan 25, 2013 7:53 pm

Getting I/O error message, so tried to run smartctl

-Inspiron-1520-mint ~ $ smartctl -a /dev/sda.
The program 'smartctl' is currently not installed. You can install it by typing:
sudo apt-get install smartmontools



-Inspiron-1520-mint ~ $ sudo apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gsmartcontrol smart-notifier
The following NEW packages will be installed:
smartmontools
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/461 kB of archives.
After this operation, 1,289 kB of additional disk space will be used.
dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

-1520-mint ~ $ smartctl -a /dev/sda.
The program 'smartctl' is currently not installed. You can install it by typing:
sudo apt-get install smartmontools

What to do?
borgward
Level 3
Level 3
 
Posts: 189
Joined: Mon Dec 17, 2012 10:18 pm

Linux Mint is funded by ads and donations.
 

Re: smartctl

Postby grimdestripador on Sat Jan 26, 2013 5:49 am

Didn't work for you. Did you see the following line from your post?
dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output error


May i suggest remove any potentially corrupted apt-get packages and try to install again
Code: Select all
sudo apt-get clean




Because the same commands worked for me
Installing
Code: Select all
sudo apt-get install smartmontools -y


Execuiting
Code: Select all
sudo smartctl -a /dev/sda

smartctl 5.43 2012-06-30 r3573 [i686-linux-3.5.0-17-generic] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Blue Serial ATA
Device Model: WDC WD3200AAJS-22RYA0
Serial Number: WD-WCAPZ0266806
LU WWN Device Id: 5 0014ee 100220685
Firmware Version: 12.01B01
User Capacity: 320,072,933,376 bytes [320 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
.....
.
.
.


User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am


Return to Software & Applications

Who is online

Users browsing this forum: curt and 13 guests