Theresa Kehoe wrote:
> Is there something like scanModem, that deals with hard disk diagnosis?

hdparm is a nice tool for IDE drives on an IDE chain.  For example:

$ hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       VMware Virtual IDE Hard Drive
        Serial Number:      00000000000000000001
        Firmware Revision:  00000001
Standards:
        Used: ATA/ATAPI-4 T13 1153D revision 17
        Supported: 4 3 2
Configuration:
        Logical         max     current
        cylinders       16383   17475
        heads           15      15
        sectors/track   63      63
        --
        CHS current addressable sectors:   15530835
        LBA    user addressable sectors:   62914560
        device size with M = 1024*1024:       30720 MBytes
        device size with M = 1000*1000:       32212 MBytes (32 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Standard
        R/W multiple sector transfer: Max = 64  Current = 0
        Advanced power management level: 0 (0x0)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=160ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    Power Management feature set
           *    NOP cmd
                Advanced Power Management feature set

Unfortunately, I have not found anything similar for SCSI drive, which
is what IDE drives become when attached via USB or Firewire.  One could
use a few different commands with SCSI.  For example, this was run on my
laptop:

# scsi_info  /dev/sda
SCSI_ID="0,0,0"
HOST="0"
MODEL="ATA FUJITSU MHV2060A"
FW_REV="0000"

# hdparm /dev/sda

/dev/sda:
 IO_support   =  0 (default 16-bit)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 7296/255/63, sectors = 117210240, start = 0

# cat /proc/partitions | grep sda
   8     0   58605120 sda
   8     1   56195338 sda1
   8     2          1 sda2
   8     5    2409718 sda5

One could also check dmesg right after one plugs in a drive.  One could
also run 'dd if=/dev/sdb of=/dev/null' and watch for any read errors.

Regards,
- Robert

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to