hdapsd8
Park the drive in case of an emergency
Usage
hdapsd [{-f | -r | -c
<cfgfile> | -d
<device> | -s
<sensitivity> | -a | -v | -b | -p | -t | -y | -H | -S | -L | -l | -V | -h}]
Options
-c--cfgfile=<cfgfile>-
Load configuration from <cfgfile>. Only available if hdapsd was compiled with libconfig support.
-d--device=<device>-
<device> is likely to be hda or sda. Can be given multiple times to protect multiple devices.
-
-f --force -
Force unloading heads, even if kernel thinks different (on pre ATA7 drives). This only works when adding devices by hand (-d).
-
-r --force-rotational -
Autodetect drives as rotational, even if kernel thinks they are not.
-s--sensitivity=<sensitivity>-
How sensitive hdapsd should be to movements. Defaults to 15, higher values mean less sensitive.
-
-a --adaptive -
Adaptive threshold (automatic increase when the built-in keyboard/mouse are used).
-
-v --verbose -
Get verbose statistics.
-
-b --background -
Run the process in the background.
-p--pidfile[=<pidfile>]-
Create a pid file when running in background. If <pidfile> is not specified, it's set to /var/run/hdapsd.pid.
-
-t --dry-run -
Don't actually park the drive.
-
-y --poll-sysfs -
Force use of sysfs interface to accelerometer.
-
-H --hardware-logic -
Uses the hardware fall detection logic instead of the software one. Options --sensitivity and --adaptive have no effect in this mode.
-
-S --software-logic -
Uses the software fall detection logic even if the hardware one is available.
-
-L --no-leds -
Don't blink the LEDs when a shock is detected.
-
-l --syslog -
Log to syslog instead of stdout/stderr.
-
-V --version -
Display version information and exit.
-
-h --help -
Display help and exit.
You can send SIGUSR1 to deactivate hdapsd for 8 seconds.
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie) to Debian 8 (Jessie)
- Debian 7 (Wheezy) to Debian 6.0 (Squeeze)
- Debian 5.0 (Lenny)
--force since Debian 6.0 (Squeeze);
--force-rotational since Debian 8 (Jessie);
--hardware-logic since Debian 8 (Jessie);
--help since Debian 6.0 (Squeeze);
--no-leds since Debian 8 (Jessie);
--software-logic since Debian 8 (Jessie);
--syslog since Debian 6.0 (Squeeze);
--version since Debian 6.0 (Squeeze);
-H since Debian 8 (Jessie);
-L since Debian 8 (Jessie);
-S since Debian 8 (Jessie);
-V since Debian 6.0 (Squeeze);
-f since Debian 6.0 (Squeeze);
-h since Debian 6.0 (Squeeze);
-l since Debian 6.0 (Squeeze);
-r since Debian 8 (Jessie).