Monday, March 28, 2011

Good way to backup a system

A good way to backup a system is the sysrescue cd.
With this you can use partimage for ext2,ext3,reiserfs,jfs
testet with these filesystems and work fine.
Xfs was testet with debian etch. Here it was used together with
lilo and the restore result in a not bootable system.

For those situations, and for ext4, btrfs and reiser4 i would try
the simple dd command like this:
dd if=/dev/sda1 of=/backup/image.img
and after this
dd if=/dev/sda of=/backup/boot.img bs=512 count=63
This backup the Partiton 1 into the file image.img
and after this the bootsector (the first 63kb of the raw-device sda with a block size of 512 bytes) into boot.img.

Be careful of restoring, wrong usage of dd can delete the
whole harddisk.
Read the man page !

Tuesday, March 22, 2011

Sending Formfeed to an Lpt Printer

Nice problem, actual not solved:
Sending a LF with a textfile to a Rena printer
at parallel port.
Dont know hot to geht this ascii character into the file.

Tuesday, March 15, 2011

Iso Archives

If you need an old ISO-Image from
an Debian cd or dvd look here:

Monday, March 7, 2011

User rights on smb mount

After mounting a smb share as root,
the normal user has only reading rights on the target directory.

Problem fixed wiht the following way of mounting:

mount -t smbfs -o  username=user,password="password",uid=1000,gid=1000,file_mode=0666,dir_mode=0770  //serverip/directory/share /targetdirectory

More information here:

Thursday, March 3, 2011

Solved routing problem with vpn

Routing problem with vpn is solved.
The solution was simple and clear:
Gateway on the fileserver must be the vpn-server,
not the internet-gateway.
With the wrong entry, all data packages were sent to
the internetgateway, and he dont know what to do with it.

MySQL database restore for onlineshop

After some experiments with the onlineshop i want
to restore the sql-dump backup.
It has a size of nearly 14MB and this was too large for my webhoster.
The restore has a timeout of 30sec and this time was not
enough so the server shows an error 500.
Idea was first zipping the file, but this was no solution.

I load the programm mysqldumper from
and installed it on my homepage. Important is to create the login and password!
During installation you must know your url to the database, the database name, user and password.
This program could handle only up to 10MB for each upload, but
with an ftp program i could push the whole file into the directory.

Now i must convert the raw sql-dump into a msd file and then restore the backup.

Long way for someone without hugh sql knowledge,
but now everything is fine!

Wednesday, March 2, 2011

Set date and time with on shell

Simple use the "date" command to
change date and time.
The syntax is a little bit strange:

date <month><day><time.hour><time.minutes><year>.<time.second>

take care of the point!