Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I recently purchased a new 1TB seagate harddisk to store backups of my music, movies etc. I use paid software in Windows 7 to manage backups. However I run the software once every month and so the hard disk gets used only then. Rest of the time it just remains idle. And I use linux most of the time and the secondary hard disk is never mounted on linux. So I just wanted to know if there was a way to shutdown the second hard disk using linux. I dont want it spinning uselessly when I am using linux.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
I presume your talking about an internal hard disk? If so, I don't know of any way in Linux to power down a secondary internal hard disk.
As soon as you turn on your computer, power is already going to the internal disk whether it's mounted or not so long as a power cable is connected to it. Unless your secondary hard drive is inefficient and consumes a lot watts, the amount of power it draws at idle is very negligible.
You could always just open your computer case and unplug the disk's power connector when not in use, just make sure the whole computer is powered off and the AC cord is unplugged so you don't shock yourself.
Unless you are running odd BIOS settings, the HDD spins down after 'X' amount of time (normally about 30 minutes IIRC). Setting the spin-down time in the BIOS isnt hard, its normally under 'power management'.
I presume your talking about an internal hard disk? If so, I don't know of any way in Linux to power down a secondary internal hard disk.
As soon as you turn on your computer, power is already going to the internal disk whether it's mounted or not so long as a power cable is connected to it. Unless your secondary hard drive is inefficient and consumes a lot watts, the amount of power it draws at idle is very negligible.
You could always just open your computer case and unplug the disk's power connector when not in use, just make sure the whole computer is powered off and the AC cord is unplugged so you don't shock yourself.
I know that but I don't want to disconnect and connect it every week I run backups.
You can shutdown that disk with hdparm. Have a look at the -S option.
Can you please tell me how to set the spin down time on hdparm? I want to set the time to 10 mins. The encoding of timeout value is odd and I couldn't figure out anything after reading the man pages.
Try (as root) hdparm -S 1 /dev/sdb (or whatever the disk is labelled as)
The disk should spin down after 5s and remain like that until it is next accessed.
Try (as root) hdparm -S 1 /dev/sdb (or whatever the disk is labelled as)
The disk should spin down after 5s and remain like that until it is next accessed.
Is this change permanent or do I have to run this command after every boot?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.