I have what sounds like a berring going bad.
Willy Hamra
w.hamra1987 at gmail.com
Fri Feb 20 23:49:39 UTC 2009
2009/2/21 Steven Vollom <stevenvollom at sbcglobal.net>:
> On Friday 20 February 2009 18:01:37 Chan Chung Hang Christopher wrote:
>> smartctl
> Could you help me more, I am so lame using the shell. Here is a view of my a
> attempts:
>
> The program 'smartctl' is currently not installed. You can install it by
> typing:
> sudo apt-get install smartmontools
> bash: smartctl: command not found
> steven at Yesua:~$ sudo apt-get install smartmontools
> [sudo] password for steven:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
> linux-headers-2.6.27-7 linux-headers-2.6.27-7-generic libkexiv2-7
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
> bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light mailx
> Suggested packages:
> eximon4 exim4-doc-html exim4-doc-info libmail-spf-query-perl swaks
> The following NEW packages will be installed:
> bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light mailx
> smartmontools
> 0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
> Need to get 2225kB of archives.
> After this operation, 4887kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://us.archive.ubuntu.com intrepid/main exim4-config 4.69-5ubuntu2
> [312kB]
> Get:2 http://us.archive.ubuntu.com intrepid/main exim4-base 4.69-5ubuntu2
> [984kB]
> Get:3 http://us.archive.ubuntu.com intrepid/main exim4-daemon-light
> 4.69-5ubuntu2 [425kB]
> Get:4 http://us.archive.ubuntu.com intrepid/main exim4 4.69-5ubuntu2 [6354B]
> Get:5 http://us.archive.ubuntu.com intrepid/main bsd-mailx
> 8.1.2-0.20071201cvs-3 [159kB]
> Get:6 http://us.archive.ubuntu.com intrepid/main mailx 1:20071201-3 [8296B]
> Get:7 http://us.archive.ubuntu.com intrepid/main smartmontools 5.38-1ubuntu2
> [330kB]
> Fetched 2225kB in 7s (290kB/s)
> Preconfiguring packages ...
> Selecting previously deselected package exim4-config.
> (Reading database ... 117588 files and directories currently installed.)
> Unpacking exim4-config (from .../exim4-config_4.69-5ubuntu2_all.deb) ...
> Selecting previously deselected package exim4-base.
> Unpacking exim4-base (from .../exim4-base_4.69-5ubuntu2_i386.deb) ...
> Selecting previously deselected package exim4-daemon-light.
> Unpacking exim4-daemon-light (from .../exim4-daemon-
> light_4.69-5ubuntu2_i386.deb) ...
> Selecting previously deselected package exim4.
> Unpacking exim4 (from .../exim4_4.69-5ubuntu2_all.deb) ...
> Selecting previously deselected package bsd-mailx.
> Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20071201cvs-3_i386.deb) ...
> Selecting previously deselected package mailx.
> Unpacking mailx (from .../mailx_1%3a20071201-3_all.deb) ...
> Selecting previously deselected package smartmontools.
> Unpacking smartmontools (from .../smartmontools_5.38-1ubuntu2_i386.deb) ...
> Processing triggers for man-db ...
> Setting up exim4-config (4.69-5ubuntu2) ...
> Adding system-user for exim (v4)
>
> Setting up exim4-base (4.69-5ubuntu2) ...
>
> Setting up exim4-daemon-light (4.69-5ubuntu2) ...
> * Starting MTA [ OK
> ]
>
> Setting up exim4 (4.69-5ubuntu2) ...
>
> Setting up bsd-mailx (8.1.2-0.20071201cvs-3) ...
>
> Setting up mailx (1:20071201-3) ...
> Setting up smartmontools (5.38-1ubuntu2) ...
>
> steven at Yesua:~$ smartctl
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> ERROR: smartctl requires a device name as the final command-line argument.
>
>
> Use smartctl -h to get a usage summary
>
> steven at Yesua:~$ smartctl -h
> 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)
> steven at Yesua:~$ smartctl --all /dev/hda
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> Smartctl open device: /dev/hda failed: No such file or directory
> steven at Yesua:~$ cd /medai/hda
> bash: cd: /medai/hda: No such file or directory
> steven at Yesua:~$ smartctl --test=long /dev/hda
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> Smartctl open device: /dev/hda failed: No such file or directory
> steven at Yesua:~$ smartctl --test=long /dev/disk
> smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> Smartctl: please specify device type with the -d option.
>
> Use smartctl -h to get a usage summary
>
> steven at Yesua:~$
>
> steven at Yesua:~$ df -ha
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda1 14G 3.8G 9.4G 29% /
> tmpfs 251M 0 251M 0% /lib/init/rw
> /proc 0 0 0 - /proc
> sysfs 0 0 0 - /sys
> varrun 251M 108K 251M 1% /var/run
> varlock 251M 0 251M 0% /var/lock
> udev 251M 2.9M 248M 2% /dev
> tmpfs 251M 12K 251M 1% /dev/shm
> devpts 0 0 0 - /dev/pts
> fusectl 0 0 0 - /sys/fs/fuse/connections
> lrm 251M 2.0M 249M 1% /lib/modules/2.6.27-11-
> generic/volatile
> securityfs 0 0 0 - /sys/kernel/security
> /dev/sda7 110G 91G 14G 88% /media/disk
> /dev/sda5 63G 51G 11G 83% /media/disk-1
> /dev/sdb5 55G 45G 7.1G 87% /media/disk-2
> /dev/sdb1 20G 8.3G 11G 45% /media/disk-3
> steven at Yesua:~$
>
> /dev/sda7 & 5 are on one HDD and /dev/sdb1 & 5 are on the other HDD.
>
> or is the reference to /media/disk & disk-1 and /media/disk-2 & -3 the
> reference. These are references to partitions not drives. Do you see my
> confusion?
>
> Steven
>
>
steven, all you needed is a sude :)
sudo smartctl --all /dev/sda
--
Willy K. Hamra
Manager of Hamra Information Systems
Co. Manager of Zeina Computers and Billy Net.
More information about the kubuntu-users
mailing list