Hdaps Ubuntu 6.10

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

Hdaps Ubuntu 6.10

#1 Post by amwus » Sun Feb 18, 2007 6:33 am

Hello. Has someone tried to install hdaps driver in linux. I'know it's possible but i absolutely don't know how !

So, how can I run hdaps protection in my ubuntu ?

Thanks you very much ! 8)
Thinkpad T400

ryengineer
Moderator Emeritus
Moderator Emeritus
Posts: 4393
Joined: Wed Sep 20, 2006 9:29 pm
Location: L.A. (home town) CA, Toronto ON.

#2 Post by ryengineer » Sun Feb 18, 2007 8:57 am

Personally, I don't use HDAPS as linux does not screw you as windows does. Anyways try this: (assuming you're using Ubuntu 6.10 Edgy Eft and also assuming you know how to enable Universe component).

I am a member at ubuntu forum too, this article has been taken from there and completed with correct links.


ATTENTION!
Only follow these instructions if you know what you are doing!
If you didn't until now you will have to install make, libc, gcc, ... Best is you use

$ sudo apt-get install build-essential

Determine your kernel version using

$ uname -a

You should see somthing like

Linux ibm 2.6.15-26-386 #1 PREEMPT Thu Aug 3 02:52:00 UTC 2006 i686 GNU/Linux

Install the kernel sources "linux-source" e.g. using Synaptic. Download the right kernel patch from HDAPS#Applications according to your kernel version and system (I chose "sata/ide disk protection patch for 2.6.15") adapt following steps to your needs:

$ cd /usr/src/
$ sudo su
# bunzip2 linux-source-2.6.15.tar.bz2
# tar -xf linux-source-2.6.15.tar
# cd linux-source-2.6.15
# patch -p1 -l < /home/silvan/hdaps_protect.20060118.patch

You should see several lines with the word "suceeded". If you see many "failed" instead you probably chose the wrong patch for your kernel. You can use the --dry-run option to try it out first. If you get errors in the following steps you should better stop unless you know what you are doing.

# make clean
# make oldconfig # use old config, ask for new items, only
# make clean
# make # takes quite a long time, several minutes
# make modules
# make modules_install

Afterwards use the debian sources mentioned in How to protect the harddisk http://www.thinkwiki.org/wiki/How_to_pr ... hrough_APS through APS to install the user space deamon hdapsd and the gnome applet gnome-hdaps-applet, e.g. using Synaptic.

If this worked for you, you can find some nice applications at HDAPS#Applications which make use of the APS.

Help needed
For me unfortunately it didn't work as making the patched kernel failed. Please update ths section if you have different experiences and a better, more detailed working explanation.


NOTE!
After I updated to edgy eft hdaps works without further work: edgy comes with hdaps built in. You can check if it is working by installing hdaps-utils
# sudo apt-get install hdaps-utils

and calling

# hdaps-gl

for a nice 3D show. If it is not, load the kernel module using

# sudo modprobe hdaps

and it should work. But if you want to use hdaps for disk protection, you have to recompile your kernel in edgy, too. Follow this post for an howto:

http://ubuntuforums.org/showthread.php?t=122863


If this does not help you then try

http://packages.ubuntu.com/edgy/utils/hdaps-utils

and

http://hdaps.sourceforge.net/

hope it helps, ryengineer.
"I've come a long, long way," she said, "and I will go as far,
With the man who takes me from my horse, and leads me to a bar."
The man who took her off her steed, and stood her to a beer,
Were a bleary-eyed Surveyor and a DRUNKEN ENGINEER.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#3 Post by amwus » Sun Feb 18, 2007 12:49 pm

Actually i have installed hdaps and it works out of the box in edgy. hdaps-gl shows me a nice applet which shows me thinkpad movement in real time.
Nevertheless, i don't know if the protection system is active or not. What i'm sure is that the accelerometer works fine, but don't know if it protects my hard drive...
Thinkpad T400

ryengineer
Moderator Emeritus
Moderator Emeritus
Posts: 4393
Joined: Wed Sep 20, 2006 9:29 pm
Location: L.A. (home town) CA, Toronto ON.

#4 Post by ryengineer » Sun Feb 18, 2007 2:16 pm

Check if hdaps is compiled into your kernel, or even loaded as a module? And, is your wireless working? Does it Suspend/hibernate ?

Do you see a device under '/sys/devices/platform/hdaps ?

Also, if active protection worked in Windows it's most likely working in Linux, that's what they're meant for, protecting.
"I've come a long, long way," she said, "and I will go as far,
With the man who takes me from my horse, and leads me to a bar."
The man who took her off her steed, and stood her to a beer,
Were a bleary-eyed Surveyor and a DRUNKEN ENGINEER.

amwus
Freshman Member
Posts: 70
Joined: Mon Feb 05, 2007 11:10 am
Location: Belgium

#5 Post by amwus » Wed Feb 21, 2007 12:07 pm

Hi !

hdaps is loaded as a module. I added it in /etc/modules and the hdaps-gl applet works fine. My wireless is working fine and so are my suspend and hibernate.

I can see a device under '/sys/devices/platform/hdaps'... There are many files in this folder.

Do you think my protection is active ?
Thinkpad T400

ryengineer
Moderator Emeritus
Moderator Emeritus
Posts: 4393
Joined: Wed Sep 20, 2006 9:29 pm
Location: L.A. (home town) CA, Toronto ON.

#6 Post by ryengineer » Wed Feb 21, 2007 2:24 pm

My guess is you like your hdd to be protected through hdaps, which actually requires some more work ( from your posts I am assuming here you have not compiled and patched the drivers into into the kernel )

Moreover, kernel driver is only responsible for reading the accelerometer data and exporting it through the sysfs interface so if you would like your hdd to be protected then you need to follow these steps:

http://www.thinkwiki.org/wiki/How_to_pr ... hrough_APS

Let me know if you require any further help.
"I've come a long, long way," she said, "and I will go as far,
With the man who takes me from my horse, and leads me to a bar."
The man who took her off her steed, and stood her to a beer,
Were a bleary-eyed Surveyor and a DRUNKEN ENGINEER.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests