This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TUSB9261 problem with hdparm linux command

Other Parts Discussed in Thread: TUSB9261

Hi,

Actually, I'm trying to put in standby/sleep mode a hard drive connected to the TUSB9261 DEMO board connected to a PC with ubuntu and for now I'm not capable to do this. The hdparm command is failing and others like smartmontools doesn't work. Please, Can anyone give me an idea?

Thanks a lot!

  • Hello,

    Verify that you have the hdparam package installed.

    #apt-get install hdparm

    if its doesn't work please send us the error logs.

    Regards,

    Roberto.

  • Hi Roberto,

    I have already installed hdparm v9.43 and I have updated the firmware of TUSB9261 to 1.05. The result is the same what I told. The screen shows:

    $ sudo hdparm -C /dev/sdb1

    /dev/sdb1:
    SG_IO: bad/missing sense data, sb[]:  f0 00 01 00 50 40 ff 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     drive state is:  unknown

    $ sudo hdparm -Y /dev/sdb1

    /dev/sdb1:
     issuing sleep command
    SG_IO: bad/missing sense data, sb[]:  f0 00 01 00 50 40 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


    Thanks for your time.

  • Hi,

    Does anyone have any approach to this error? We're a little blocked with this issue.

    Thanks.
  • Hello,

    Sorry for the delay response.

    Could you please explain more your issue? what are you trying to do and what are you expecting as result?

    I;m not completely related to the hdparm command but from the command description what i can see is that you are using incorrect command since -C and -Y are commands for IDE drives.

    -Y Force an IDE drive to immediately enter the lowest power
    consumption sleep mode, causing it to shut down completely. A
    hard or soft reset is required before the drive can be
    accessed again (the Linux IDE driver will automatically handle
    issuing a reset if/when needed). The current power mode
    status can be checked using the -C option.

    -C Check the current IDE power mode status, which will always be
    one of unknown (drive does not support this command),
    active/idle (normal operation), standby (low power mode, drive
    has spun down), or sleeping (lowest power mode, drive is
    completely shut down). The -S, -y, -Y, and -Z options can be
    used to manipulate the IDE power modes.

    Regards,
    Roberto.
  • Hello,

    In my current project, We need to do the same things through usb-sata interface hard drives as with sata-sata hard drives. We need to manipulate the power mode of the device to ready/standby and disable write-caching.

    The command hdparm today and from time supports sata devices:

    "hdparm  provides  a command line interface to various kernel interfaces
           supported by the Linux SATA/PATA/SAS "libata" subsystem and  the  older
           IDE  driver  subsystem.   Some options may work correctly only with the
           latest kernels."

    The problem is that the TUSB9261 interface, -C option doesn't give me the drive state ("drive state is:  unknown" with sata-sata works fine) and I don't know if the
    other commands works properly.

    By other hand the command throws an error each time: "SG_IO: bad/missing sense data, sb[]:..."


    Best regards.