This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Smartmontools don't work with /dev/stX, /dev/nstX


On Jun 17 21:39, Christian Franke wrote:
> Corinna Vinschen wrote:
> >The drive is a Samsung 1614C which definitely supports SMART.  Oh well,
> >so the answer is just "too bad", I assume...
> 
> Yes.
> The device driver is likely a SCSI miniport driver and does not 
> implement SMART functions.
> http://smartmontools.sourceforge.net/#FAQ-win-ata-as-scsi
> Try option "-r ioctl,2" for a more detailed diagnostic output.

Done.  -r ioctl,2 /dev/hda returns:

  REPORT-IOCTL: DeviceFD=0 Command=IDENTIFY DEVICE
    SMART_GET_VERSION failed, Error=1117
  ATA/SATA driver is possibly a SCSI class driver not supporting SMART.
  If this is a SCSI disk, try "scsi<adapter><id>".
    IOCTL_ATA_PASS_THROUGH failed, Error=1
      Input : CMD=0xec, FR=0x00, SC=0x01, NS=0x00, CL=0x00, CH=0x00, SEL=0x00
    IOCTL_IDE_PASS_THROUGH failed, Error=1
      Input : CMD=0xec, FR=0x00, SC=0x01, NS=0x00, CL=0x00, CH=0x00, SEL=0x00
  REPORT-IOCTL: DeviceFD=0 Command=IDENTIFY DEVICE returned -1 errno=88
  [Function not implemented]

  ===== [IDENTIFY DEVICE] DATA START (BASE-16) =====
  000-015: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  [...all bytes 00...]
  496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ===== [IDENTIFY DEVICE] DATA END (512 Bytes) =====

  REPORT-IOCTL: DeviceFD=0 Command=IDENTIFY PACKET DEVICE
    IOCTL_ATA_PASS_THROUGH failed, Error=1
  Input : CMD=0xa1, FR=0x00, SC=0x01, NS=0x00, CL=0x00, CH=0x00, SEL=0x00
    IOCTL_IDE_PASS_THROUGH failed, Error=1
      Input : CMD=0xa1, FR=0x00, SC=0x01, NS=0x00, CL=0x00, CH=0x00, SEL=0x00
  REPORT-IOCTL: DeviceFD=0 Command=IDENTIFY PACKET DEVICE returned -1
  errno=88 [Function not implemented]

  ===== [IDENTIFY PACKET DEVICE] DATA START (BASE-16) =====
  000-015: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  [...all bytes 00...]
  ===== [IDENTIFY PACKET DEVICE] DATA END (512 Bytes) =====

  Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

  A mandatory SMART command failed: exiting. To continue, add one or
  more '-T permissive' options.

The same on /dev/sda:

$ /usr/sbin/smartctl.exe -i -r ioctl,2 /dev/sda
smartctl version 5.37 [i686-cygwin-xp-sp2] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

   [inquiry: 12 00 00 00 24 00 ]
    Incoming data, len=36:
   00     00 00 02 02 2c 00 00 13  41 54 49 20 20 20 20 20
   10     31 2b 30 20 4a 42 4f 44  20 20 20 20 20 20 20 20
   20     31 2e 31 30                                     
  Device: ATI      1+0 JBOD         Version: 1.10
   [mode sense: 1a 00 1c 00 40 00 ]
    IOCTL_SCSI_PASS_THROUGH_DIRECT failed, Error=87
   [inquiry: 12 01 80 00 40 00 ]
    status=2: sense_key=5 asc=24 ascq=0
    Incoming data, len=64:
   00     00 00 02 02 2c 00 00 13  41 54 49 20 20 20 20 20
   10     31 2b 30 20 4a 42 4f 44  20 20 20 20 20 20 20 20
   20     31 2e 31 30 00 00 00 00  00 00 00 00 00 00 00 00
   30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  Vital Product Data (VPD) INQUIRY failed [3]
  Device type: disk
   [mode sense: 1a 00 19 00 40 00 ]
    status=2: sense_key=5 asc=20 ascq=0
    Incoming data, len=64:
   00     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   [mode sense(10): 5a 00 19 00 00 00 00 00 40 00 ]
    status=2: sense_key=5 asc=20 ascq=0
    Incoming data, len=64:
   00     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
   30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  Local Time is: Mon Jun 18 09:18:16 2007 WEST
   [test unit ready: 00 00 00 00 00 00 ]
  Device does not support SMART [Input/Output error]

The error 87 on IOCTL_SCSI_PASS_THROUGH_DIRECT looks a bit interesting,
but maybe doesn't mean much either.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]