LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-18-2019, 05:38 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
spin down USB drive and re-enable it


Hi,
Is there a way to turn off/spin down USB drive and enable it again on demand?

Up to now, I have tried following udisksctl command. It does remove device from the system... but the disk is still spinning (I can feel it by putting my hand on it).
Also, I cant re-enable it unless I plug it again or reboot the system (but the idea is to reach this machine in future remotely only).


Code:
udisksctl power-off -b /dev/sda
Also, I tried hdparam but it gives error:

Code:
hdparm -y /dev/sda

/dev/sda:
 issuing standby command
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 
Old 07-18-2019, 09:46 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,136
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I've never tried this.
Code:
pacman -Si hd-idle
...
Name            : hd-idle
Version         : 1.05-2
Description     : Utility program for spinning-down external disks after a period of
                  idle time.
Architecture    : x86_64
URL             : http://hd-idle.sourceforge.net/
...
Depends On      : glibc
...
Download Size   : 11.25 KiB
Installed Size  : 24.00 KiB
...
 
Old 07-18-2019, 09:53 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by teckk View Post
I've never tried this.
I use hd-idle every day (on Ubuntu on an Odroid server), and it works very well. If you don't have it in your repo, it's very easy to build it from the source. It's a tiny program.

Last edited by berndbausch; 07-18-2019 at 09:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hard drive won't spin down automatically or stay spun down when requested jsteel Linux - General 1 09-28-2010 07:02 PM
LXer: Fedora 13 - Xfce spin vs. LXDE spin LXer Syndicated Linux News 0 06-19-2010 07:50 AM
to spin down or not to spin down, that is the question maenho Linux - Software 2 02-05-2005 08:41 AM
drive always being written to, wont spin down Brain Drop Linux - General 8 06-21-2003 08:27 AM

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

All times are GMT -5. The time now is 09:20 PM.

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