Difference between revisions of "How to protect the harddisk through APS"
m (→Installation: seems like I'm forgetting howto use my own templates) |
(→How APS works in Linux) |
||
Line 8: | Line 8: | ||
APS in Linux consists of four components software side: | APS in Linux consists of four components software side: | ||
* the [[HDAPS]] driver (included in recent kernels), | * the [[HDAPS]] driver (included in recent kernels), | ||
− | * the [http://www. | + | * the [http://www.zen24593.zen.co.uk/hdaps/hdaps_protect.20060118.patch <tt>hdaps_protect</tt> disk protection kernel patch] , |
* the [http://www.dresco.co.uk/hdaps/hdapsd-20060121-1.c <tt>hdapsd</tt> disk protection userspace daemon] and | * the [http://www.dresco.co.uk/hdaps/hdapsd-20060121-1.c <tt>hdapsd</tt> disk protection userspace daemon] and | ||
* the [http://www.oakcourt.dyndns.org/projects/khdapsmon/ <tt>khdapsmon</tt> KDE System Tray applet] or the [http://www.dresco.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz <tt>gnome-hdaps-applet</tt>]. | * the [http://www.oakcourt.dyndns.org/projects/khdapsmon/ <tt>khdapsmon</tt> KDE System Tray applet] or the [http://www.dresco.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz <tt>gnome-hdaps-applet</tt>]. |
Revision as of 13:35, 29 January 2006
This page tells you how to make the Active Protection System work under Linux to protect your harddrive from damage in case of a notebook drop or other kind of impact while it is running. |
How APS works in Linux
APS in Linux consists of four components software side:
- the HDAPS driver (included in recent kernels),
- the hdaps_protect disk protection kernel patch ,
- the hdapsd disk protection userspace daemon and
- the khdapsmon KDE System Tray applet or the gnome-hdaps-applet.
The HDAPS driver exports a sysfs interface providing the acceleration values.
The hdaps_protect kernel patch xports a sysfs interface that enables an ide or sata disk to be protected by a userspace process.
The hdapsd userspace daemon monitors the acceleration values through the HDAPS interface and automatically initiates disk protection through the hdaps_protect interface - given that the movement exceeds a user specified threshold.
Finally the applets are providing a visual indication of the disk protection status and provide a graphical interface for adjusting configuration options for hdapsd.
Installation
As mentioned above, the hdaps kernel driver found in recent kernels is only responsible for reading the accelerometer data and exporting it through the sysfs interface. In order to use this information to protect the disk, some additional steps are required.
- Download and build the latest hdaps_protect disk protection kernel patches.
- Enable the drivers in the kernel (requires kernel rebuild).
- Download, build and configure the hdapsd userspace daemon.
- Download and build one of the applets to get a real-time representation of the disk protection status.
Getting the files
The latest versions of hdaps_protect, hdapsd and the gnome-hdaps-applet can be downloaded from http://www.dresco.co.uk/hdaps/.
khdapsmon can befound here.
Debian source and sid binary packages for hdapsd and the hdaps_protect patches (kernel-patch format) are available via APT access:
deb http://www.oakcourt.dyndns.org/debian/ ./ deb-src http://www.oakcourt.dyndns.org/debian/ ./
Patching the kernel and enabling the drivers
TODO
|
tell about how to patch the kernel and what needs to be enabled afterwards
|
Installing hdapsd
TODO
|
tell how to build hdapsd
|
Configuring hdapsd
TODO
|
tell how to configure hdapsd
|
Building an applet
Building khdapsmon
TODO
|
tell people what to do
|
Building gnome-hdaps-applet
TODO
|
tell people what to do
|
Further Information
- Additonal information and support is available through the HDAPS mailinglist and its archive.