[SOLVED] External hard disk still running after turning off the machine
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.
External hard disk still running after turning off the machine
Hi,
My Linux is installed on an external hard disk, connected to my laptop.
Every time, when I turn off the machine, the external hard disk is still running for at least 10 to 20 minutes.
Is there a setting to immediately power off the hard disk, after I turn off the machine?
PS: I have no access to the BIOS, because the screen of my laptop is damaged.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Some machines power the USB ports after poweroff. The light on the external drive may stay on during this time. But just feel with your fingertips to see if the drive is actually doing anything but spinning.
Ok, but which job my drive is doing the last 10 minutes after I turn off the machine?
So it is not possible to immediately power off the external hard disk without to drag out the cable?
Can I drag out the cable without damaging something?
It sucks sometimes when I go to bed and the hard disk is still running.
It sounds like the external disk runs on its own power supply all the time and puts the spinning disk to sleep after a period of inactivity. Once your laptop is completely shut down then nothing should be accessing that disk so it is safe to turn it off. Some of those external disks have a power button at the back you can just switch off instead of unplugging cables.
You might also be able to configure the inactivity period so that the disk sleeps sooner, either with the hdparm utility or with software created by the manufacturer.
I think the option you want is hdparm -S there also maybe another option to check the current setting of the standby time. I can't see the options at the moment because I am on my phone
Oh i forgot to say last time you should probably need to run the command on the whole disk so /dev/sda (not 1 or 2). It has been a long time since i used this command though so i don't know if it even works on new disks.
If it is that old then it probably is just something designed to be turned off manually when you don't need it anymore If you are sure that your laptop is shutdown completely (no more lights on) then it should be safe to flick the power switch or unplug the power supply of your external disk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.