Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Created February 20, 2021 23:08
Show Gist options
  • Save pythoninthegrass/8039036d424433f44f82e5d1823e28d4 to your computer and use it in GitHub Desktop.
Save pythoninthegrass/8039036d424433f44f82e5d1823e28d4 to your computer and use it in GitHub Desktop.
QNAP /tmp/config/autorun.sh for disabling advanced power management (APM) for noisy HDDs
#!/usr/bin/env bash
# SOURCES:
# https://www.brainbytez.nl/tutorials/qnap-nas-fix-the-seagate-chirp-sound/
# Disable advanced power management (APM) for noisy Seagate drives
# qcli_storage
hdparm -B 255 /dev/sda
hdparm -B 255 /dev/sdb
hdparm -B 255 /dev/sdc
#!/usr/bin/env bash
# SOURCES:
# https://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup
mount $(/sbin/hal_app --get_boot_pd port_id=0)6 /tmp/config
touch /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
$EDITOR /tmp/config/autorun.sh
umount /tmp/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment