this post was submitted on 21 Jun 2023
22 points (95.8% liked)

Linux

47591 readers
666 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I recently installed Windows in dual boot with Linux (on two different SSDs) and I noticed that Windows automatically "shuts down" or stops the HDD if it is not being used.

I have a HDD (WD) connected by SATA cable where I usually keep my games. The HDD is not always in use but it is always constantly running and honestly the noise it makes is quite noticeable. I'm sure I don't have any program in the background using it constantly.

I have already tried to solve this problem using hdparm and hd-idle and although in theory they work I still hear the noise from the HDD.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago (4 children)

Checkout smartctl. You can either force shutdown immediately or after some idle time. Command is something like this:

smartctl -n -s standby,VALUE /dev/sda with value either "now" or something between 0 and 255. From the manpage:

Values from 1 to 240 specify timeouts from 5 seconds to 20 minutes in 5 second increments. Values from 241 to 251 specify timeouts from 30 minutes to 330 minutes in 30 minute increments. Value 252 specifies 21 minutes. Value 253 specifies a vendor specific time between 8 and 12 hours. Value 255 specifies 21 minutes and 15 seconds.

[–] [email protected] 4 points 1 year ago (3 children)

Value 252 specifies 21 minutes.

That's interestingly specific. Any idea why?

load more comments (2 replies)
load more comments (2 replies)