There is a better, quicker way to do this which is to clone your entire drive onto a new drive.

You can do this with a tool like GParted, but there is also a command line tool that will get the job done as well. This tool is ddrescue. Now with ddrescue you will have to have your new disc partitioned (it will not partition for you). In this article I am going to show you how to get your dying Linux drive cloned onto a new drive.

Installation of ddrescue:

apt-get install ddrescue gparted

Paritioning your new drive:

After you installed the new drive reboot your server. Then do the following:

  1. Start GParted.
  2. Create a partition scheme on the new drive  identical with the old drive.
  3. Save the new partition scheme and you are ready to clone.

Continue Reading…

Do you want to recover the MySQL root password. its by no means, easy. But its quite simple if you follow the procedure. You will have to follow this step-by-step processes.

  1. Step 1: Stop the MySQL server process.
  2. Step 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for a password.
  3. Step 3: Connect to the MySQL server as the root user.
  4. Step 4: Set a new root password.
  5. Step 5: Exit and restart the MySQL server.

Here are the commands you need to type for each step (log in as the root user):

Step 1 : Stop the MySQL service:

Continue Reading...

Page 3 of 3123