Continue reading “Fix annoying clicking sound in (K)Ubuntu Karmic Koala”
Grow 3TB RAID5 to 6TB with XFS in Linux
First you need to add to your RAID device /dev/md0 new hdd partition (/dev/sde1, /dev/sdf1/dev/sdg1) in this case /dev/sdg1:
mdadm --add /dev/md0 /dev/sdg1
Then you need to grow your RAID device to the new number of disks X(4,5,6):
mdadm --grow /dev/md0 --raid-devices=4
How to merge video files under Linux
I generally dislike when movies are divided in two or more parts, although it’s just one more click to load 2nd or 3rd file, I prefer joining them together. Up until recently I was using avimerge tool fromtranscode package to do all of my merging, just because it was so simple to do with:
avimerge -i inputfile1.avi inputfile2.avi -o outputfile.avi
MySQL root user hack
In case you have forgotten your root password for MySQL database, you can change it by first killing all mysql processes with:
killall mysql or /etc/init.d/mysql stop (for Debian users)
Now you have to start mysql again with this command:
mysqld --skip-grant-tables &
Linux root login hack
After you tried to log in with root user three times and got the message “maximum number of log ins exceeded” you have to restart the computer.
On the GRUB menu, press “E” once to enable edit, and press “E” again on the kernel line to edit it. Near the end of this line change value “ro” to “rw” and add “init=/bin/bash” at the end of this line.
Now boot into Linux and you will have root shell access where you can change the password or do whatever you please.