Wow Sub mesa I love this utility!
The following was copied from the terminal. I think I need a bit of help with turning the SMART on though.
ubuntu@ubuntu:~$ #this installs smartmontools - a program that reads smart info
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bsd-mailx mailx postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb
The following NEW packages will be installed:
bsd-mailx mailx postfix smartmontools
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,804kB of archives.
After this operation, 4,411kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err
http://archive.ubuntu.com karmic/main postfix 2.6.5-3
Could not resolve 'archive.ubuntu.com'
Err
http://archive.ubuntu.com karmic/main bsd-mailx 8.1.2-0.20081101cvs-2ubuntu1
Could not resolve 'archive.ubuntu.com'
Err
http://archive.ubuntu.com karmic/main mailx 1:20081101-2ubuntu1
Could not resolve 'archive.ubuntu.com'
Err
http://archive.ubuntu.com karmic/main smartmontools 5.38-3ubuntu2
Could not resolve 'archive.ubuntu.com'
Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/p/postfix/postfix_2.6.5-3_i386.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/b/bsd-mailx/bsd-mailx_8.1.2-0.20081101cvs-2ubuntu1_i386.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/b/bsd-mailx/mailx_20081101-2ubuntu1_all.deb Could not resolve 'archive.ubuntu.com'
Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/s/smartmontools/smartmontools_5.38-3ubuntu2_i386.deb Could not resolve 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ubuntu:~$ ^C
ubuntu@ubuntu:~$ sudo apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bsd-mailx mailx postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf postfix-cdb
The following NEW packages will be installed:
bsd-mailx mailx postfix smartmontools
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,804kB of archives.
After this operation, 4,411kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1
http://archive.ubuntu.com karmic/main postfix 2.6.5-3 [1,304kB]
Get:2
http://archive.ubuntu.com karmic/main bsd-mailx 8.1.2-0.20081101cvs-2ubuntu1 [160kB]
Get:3
http://archive.ubuntu.com karmic/main mailx 1:20081101-2ubuntu1 [8,516B]
Get:4
http://archive.ubuntu.com karmic/main smartmontools 5.38-3ubuntu2 [332kB]
Fetched 1,804kB in 15s (114kB/s)
Preconfiguring packages ...
Selecting previously deselected package postfix.
(Reading database ... 120319 files and directories currently installed.)
Unpacking postfix (from .../postfix_2.6.5-3_i386.deb) ...
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20081101cvs-2ubuntu1_i386.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a20081101-2ubuntu1_all.deb) ...
Selecting previously deselected package smartmontools.
Unpacking smartmontools (from .../smartmontools_5.38-3ubuntu2_i386.deb) ...
Processing triggers for sreadahead ...
Processing triggers for ufw ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 25 changed 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up postfix (2.6.5-3) ...
Adding group `postfix' (GID 121) ...
Done.
Adding system user `postfix' (UID 113) ...
Adding new user `postfix' (UID 113) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 122) ...
Done.
setting myhostname: ubuntu
setting alias maps
setting alias database
changing /etc/mailname to gmail.com
setting myorigin
setting destinations: gmail.com, ubuntu, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.
Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Running newaliases
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
Setting up bsd-mailx (8.1.2-0.20081101cvs-2ubuntu1) ...
update-alternatives: using /usr/bin/bsd-mailx to provide /usr/bin/mailx (mailx) in auto mode.
Setting up mailx (1:20081101-2ubuntu1) ...
Setting up smartmontools (5.38-3ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu@ubuntu:~$ #now use smartctl to retrieve info from your HDD:
ubuntu@ubuntu:~$ sudo smartctl -a/dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=======> UNRECOGNIZED OPTION: /
Use smartctl -h to get a usage summary
ubuntu@ubuntu:~$ sudo smartctl -h/dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Usage: smartctl [options] device
============================================ SHOW INFORMATION OPTIONS =====
-h, --help, --usage
Display this help and exit
-V, --version, --copyright, --license
Print license, copyright, and version information and exit
-i, --info
Show identity information for device
-a, --all
Show all SMART information for device
================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
-q TYPE, --quietmode=TYPE (ATA)
Set smartctl quiet mode to one of: errorsonly, silent, noserial
-d TYPE, --device=TYPE
Specify device type to one of: ata, scsi, marvell, sat, 3ware,N
-T TYPE, --tolerance=TYPE (ATA)
Tolerance: normal, conservative, permissive, verypermissive
-b TYPE, --badsum=TYPE (ATA)
Set action on bad checksum to one of: warn, exit, ignore
-r TYPE, --report=TYPE
Report transactions (see man page)
-n MODE, --nocheck=MODE (ATA)
No check if: never, sleep, standby, idle (see man page)
============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====
-s VALUE, --smart=VALUE
Enable/disable SMART on device (on/off)
-o VALUE, --offlineauto=VALUE (ATA)
Enable/disable automatic offline testing on device (on/off)
-S VALUE, --saveauto=VALUE (ATA)
Enable/disable Attribute autosave on device (on/off)
======================================= READ AND DISPLAY DATA OPTIONS =====
-H, --health
Show device SMART health status
-c, --capabilities (ATA)
Show device SMART capabilities
-A, --attributes
Show device SMART vendor-specific Attributes and values
-l TYPE, --log=TYPE
Show device log. TYPE: error, selftest, selective, directory,
background, scttemp[sts,hist]
-v N,OPTION , --vendorattribute=N,OPTION (ATA)
Set display OPTION for vendor Attribute N (see man page)
-F TYPE, --firmwarebug=TYPE (ATA)
Use firmware bug workaround: none, samsung, samsung2,
samsung3, swapid
-P TYPE, --presets=TYPE (ATA)
Drive-specific presets: use, ignore, show, showall
============================================ DEVICE SELF-TEST OPTIONS =====
-t TEST, --test=TEST
Run test. TEST: offline short long conveyance select,M-N
pending,N afterselect,[on|off] scttempint,N[,p]
-C, --captive
Do test in captive mode (along with -t)
-X, --abort
Abort any non-captive test on device
=================================================== SMARTCTL EXAMPLES =====
smartctl --all /dev/hda (Prints all SMART information)
smartctl --smart=on --offlineauto=on --saveauto=on /dev/hda
(Enables SMART on first disk)
smartctl --test=long /dev/hda (Executes extended disk self-test)
smartctl --attributes --log=selftest --quietmode=errorsonly /dev/hda
(Prints Self-Test & Attribute errors)
smartctl --all --device=3ware,2 /dev/sda
smartctl --all --device=3ware,2 /dev/twe0
smartctl --all --device=3ware,2 /dev/twa0
(Prints all SMART info for 3rd ATA disk on 3ware RAID controller)
smartctl --all --device=hpt,1/1/3 /dev/sda
(Prints all SMART info for the SATA disk attached to the 3rd PMPort
of the 1st channel on the 1st HighPoint RAID controller)
ubuntu@ubuntu:~$ sudo dd if=/dev/sda of=/dev/null bs=1M
dd: reading `/dev/sda': Input/output error
327+1 records in
327+1 records out
342888448 bytes (343 MB) copied, 46.8688 s, 7.3 MB/s
ubuntu@ubuntu:~$