Hard Drive Benchmark using Linux

If you want to know how performing you hard drive is you have to install bonnie++ first.

Using Debian and it derivatives its just:

# apt-get install bonnie++

After the installation create an empty folder on the drive you want to test. Bonnie++ will create temporary random content there while the benchmark is running.

Because i am having just one drive in my notebook the decision wasn’t really hard. The Partition / is nearly full so i used /home.

# mkdir /home/tmp

Now we can let bonnie++ attack the directory icon smile Hard Drive Benchmark using Linux . For having the needed permissions i had to run bonnie++ as root.

# bonnie++ -u root -d /home/tmp/

Now this will take a bit time but you will get a lot of information. (much more then a Windows application can process). When the process is done you should get some output like that:

(Please do not rate my benchmark. It was done under load)

bonnie++ -u root -d /home/tmp/
Using uid:0, gid:0.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version 1.96 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
srv-rs-dk 4G 620 98 67046 11 36145 7 2149 93 87481 9 187.5 5
Latency 13896us 621ms 1733ms 61811us 160ms 5080ms
Version 1.96 ------Sequential Create------ --------Random Create--------
srv-rs-dk -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
Latency 14986us 677us 1194us 729us 4487us 746us

Well this might disturb you but: Don’t Panic!

  • Per Char 4G has been written with 620 K/sec and an CPU-Usage of 98%
  • Per Block 4G has been written with 67046 K/sec and an CPU-Usage of 11%
  • Per Rewrite 4G has been written with 36145 K/sec and an CPU-Usage of 7%
  • Sequentiell Input done with 2149 K/sec and an CPU-Usage of 9%
  • Random done with 187,5 K/sec and an CPU-Usage of 5%

Animated progress bars in Gnome2

Diesen Artikel gibt es auch in Deutsch!
I was searching for that feature a long time, finally i managed to enable it.

While installing Debian you have animated progress bars for some reason. When installation is done that feature is disabled for default.

In the file /usr/share/themes/Clearlooks/gtk-2.0/gtkrc

change the value of animation from FALSE to TRUE.
Now you have nice rolling progress bars again for Clearlooks theme.

Hanvon Art Master Driver for Linux

I bought an Art Master 0806 this weekend and had to recognize that it does not work with Debian or even Ubuntu. 457505 150x98 Hanvon Art Master Driver for Linux

With Google i found an initial release of an driver but this one did not work too. Well the motion worked but the pressure did not.

So i contacted “Ond” ,the developer of the driver and we worked together to fix the problem. Within two days the driver worked with all features.

How to set the driver up:

  • It has to be compiled by your self
  • Download the driver if you are using a Linux Kernel >3.2 use this driver.
  • Unpack the Tar-Zip with ‘tar xfvz [ARCHIVE NAME].tgz’
  • Navigate with ‘cd’ to the folder where the unpacked driver is
  • Use ‘make’ for compiling
  • If there is no error message you can use ‘insmod hanvon.ko’ for binding it.
  • The Tablet should now be usable

If you have any problems feel free to ask me for help.

The driver has been tested only with:

  • Hanvon Artmaster 0806,1107 and the 1209
  • Rollik RL0604, RL0504
  • Hanvon Armaster III (AM3M)
  • GraphicPal 0806

If you tried using it with another model please report your results to me.

If you want the driver to be loaded on boot next time you have to move the hanvon.ko to /lib/modules/your-kernel/kernel/drivers/input/tablet .

# mv ./hanvon.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet

update the modules database now.

# depmod

and add hanvon to /etc/modules

# echo “hanvon” > /etc/modules

Now the Module should be loaded automatic next time you boot. You can verify that by running:

# modprobe hanvon

If no error is reported everything is fine.

Edit1: Markus Zucker made a patch, that adds support for the Hanvon Artmaster AM 1209 to the driver

Edit2: Stephan contacted me because his 1107 was not working with this driver. I did the modification to make it able to use it.

Systembackup using rsync

Deutsche Version

Why does nobody a backup if everybody is talking about it? Using a unix-system with rsync it is that easy!:

First you should know some things about rsync: its an network protocol for synchronizing files. The interesting thing about rsync is that it is able to compare parts of a file and if it is needed sync only that parts. For example if there was changed one line of a config-file it will only transfer the information of that line through the network. Thats why rsync is really lightweight and fast. I am backing up my Linux-systems using rsync. I want to show how i created a backup script and how it is working.

  • -a is short for following commands:
    • -r copies the subfolders too
    • -l copies symbolic links
    • -p preserve permissions of the source file
    • -t preserve timestamps of the source file
    • -g preserve group permissions of the source file
    • -o preserve user rights of the source file (root only)
    • -D preserve device files (nur root)
  • -z Use compression (if you are storing your backup to a network attached storage)
  • -c skip based on checksum, not mod-time & size (take more time but is saver)
  • ‘-e ssh’ defines the remote shell
  • –delete delete extraneous files from dest dirs
  • –stats Exports some stats
  • ‘–exclude=foobar’ excludes the mask ‘foobar’

In the target path there is “$(hostname)” included. That is needed if you want to back up more then on system in the same path because it creates a folder named by the hostname. (for example “claw-desktop”)

Logs are exported to /var/log/ with the date year-month-day: “backup$(date +%Y%m%d)”


I am running this script as cronjob (crontab) as root and for target i use a samba mountpoint.

If you have any question or suggestions feel free to contact me.

rsync -aovpzc -e ssh –delete –stats /etc /media/ftp/RAID5_0/.backup/$(hostname) >>/var/log/backup$(date +%Y%m%d)
rsync -aovpzc -e ssh –delete –stats /etc /media/ftp/RAID5_0/.backup/$(hostname) >>/var/log/backup$(date +%Y%m%d)