Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

经验分享:硬盘频繁的有磁头归位的异响

Featured Replies

六块盘中的一块,是从移动硬盘中拿出来的。

插入阵列后,在没有任何读取时,隔几十秒就有一声磁头归位的声音,听起来像是硬盘掉电的声音,但实际上硬盘并没掉电,也没有休眠。

经过和Deepseek的一顿讨论

应该是硬盘固件的APM(Advanced Power Management)设置比较低,硬盘本身会更倾向于将磁头归位以节能。

这个在做移动硬盘的时候没问题,但放在nas里,即不节能,反而会徒增磁头的无效操作。

结论是用命令行hdparm来设置APM值为254或255,彻底避免硬盘的空闲时主动磁头归位。

hdparm -B /dev/sdX

上面这个命令可以查询APM值,其中sdx换成你要查询的硬盘。

我这个盘的值是128,改成254后就没那个异响了

hdparm -B 254 /dev/sdX

但这个重启后会恢复,所以在user scripts 里加一个阵列启动后执行的脚本,每次重启后都执行一次。

#!/bin/bash
# 等待阵列启动完成,硬盘准备就绪
sleep 30
# 为指定硬盘设置APM级别
hdparm -B 254 /dev/sdb
echo "$(date): APM set for /dev/sdb" >> /tmp/user.scripts.log

以上

  • Author

补充,在系统休眠再重启后,并不会执行这个脚本

所以我在休眠插件的post-wake里加入命令

# 等待系统和硬盘完全就绪

sleep 10

# 设置特定硬盘的APM值

/usr/sbin/hdparm -B 254 /dev/您的硬盘标识符

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.