Archive for February, 2009

Howto: switch off / spin down external USB / Firewire disk / hard drive

Wednesday, February 18th, 2009

Recently I’ve bought ssd drive for my notebook and 2.5″ Enclosure for the old hdd.
My 2.5″ Enclosure has no switch on/off, so … to turn it off I have to plug and unplug the usb cable, but … there’s a better way
All I need to do is to install sg3-utils, and use two simple commands […]

How to move all MySQL databases to another server

Monday, February 16th, 2009

How to move all MySQL databases to a new server in a few simple steps.
Let’s assume your original location of mysql is at /media/disk/…
Your new location of mysql is at /
You just need to synchronize two directories /etc/mysql and /var/lib/mysql/. Remember to stop mysql before doing this, and start it after synchronisation.

/etc/init.d/mysql stoprsync -rav […]