LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-11-2013, 12:44 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Spin-down functionality for USB HDD


Hi guys. Got "WDC WD5000LMVW-11VEDS0" as external USB HDD and it spins down after being idle for some time. I tried

Code:
sudo hdparm -S 0 /dev/sdc
but get the error "SG_IO: bad/missing sense data, sb[]:..." and so I made some searches. Some sources say

Quote:
Hdparm accepts any device as mass storage that is connected to an (E)IDE, SATA, or SAS interface, including, therefore, DVD drives and SSDs. USB-to-IDE adapters often cause problems because they do not transmit the (complete) ATA or ATAPI commands to the drive.
while man page says some drives can be tweaked that way:

Quote:
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. Many newer (2008 and later) USB drive enclosures
now also support "SAT" (SCSI-ATA Command Translation) and therefore may
also work with hdparm.
Eg. recent WD "Passport" models and recent
NexStar-3 enclosures. Some options may work correctly only with the
latest kernels.
Apparently mine may not. Or maybe there is a way? I want to turn off powersaving functions of my new USB HDD (why do they even do it? to kill the motor faster?). Can I do it any way on Linux or does it always depend on a drive and some of them are doomed to stop spinning over and over again while connected to constantly working PC?

Last edited by Mr. Alex; 12-14-2013 at 04:45 AM.
 
Old 12-11-2013, 02:43 PM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Rep: Reputation: 23
Your drive has to support the spindown timer function to work.

Try sudo hdparm -I /dev/sda

to see what features your drive supports. The Capabilities section will
if the drive supports spindown

On my Acer 5734Z laptop the internal hardrive supports spindown:

sudo hdparm -S0 /dev/sda

/dev/sda:
setting standby to 0 (off)
 
Old 12-12-2013, 09:48 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Code:
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	   *	Advanced Power Management feature set
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	IDLE_IMMEDIATE with UNLOAD
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	Idle-Unload when NCQ is active
	   *	NCQ priority information
	   *	unknown 76[15]
	    	DMA Setup Auto-Activate optimization
	    	Device-initiated interface power management
	    	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Write Same (AC2)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
	    	unknown 206[12] (vendor specific)
	    	unknown 206[13] (vendor specific)
	    	unknown 206[14] (vendor specific)
It has "Advanced Power Management feature set" but how do I use it?

Code:
sudo hdparm -S0 /dev/sdc
shows the same error as in the topic.

Quote:
Originally Posted by hal8000b View Post
On my Acer 5734Z laptop the internal hardrive supports spindown
Mine is external.

Last edited by Mr. Alex; 12-12-2013 at 10:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DIY NAS + database: boot off USB and spin down hdd? Frakk Linux - Server 4 02-11-2013 08:46 AM
LXer: Fedora 13 - Xfce spin vs. LXDE spin LXer Syndicated Linux News 0 06-19-2010 07:50 AM
How to spin-up HDD using ioctl starvijay Linux - Hardware 2 05-09-2010 03:21 AM
External HDD spin down / powerdown fjanoos Linux - Hardware 1 09-21-2009 10:40 AM
Screen shakes/wobbles on external HDD spin-up Speng Linux - Hardware 1 01-16-2009 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration