CentOS Linux Server Guide

CentOS Linux, RedHat Linux and Virtualization

Redhat and CentOS Linux P2V virtualization &  consolidation

- restore Clonezilla image into VMWare (Part 1)

 

 

 

 

Step1: Boot Clonezilla Live CD

Because we cloned the partitions into images. You need to create new volumes in your new VM images for Clonezilla to restore.

 

You can use any CentOS or RedHat Linux CD for this purpose. For me, I am using clonzilla and select "Enter_shell" at "Start Clonezilla" start up page.

 

We Select [2] to Enter command line prompt.

Clonezilla enter command line prompt

 

Next, we are switching to root privilege mode
sudo su - root

 

Step2: Check the disk information

You can check the current Linux partition using fdisk -l command. In our scenario, our hard disk is /dev/hda.

 

The screen capture below shows that, our /dev/hda does not contain any valid partition table.

clonezilla check partitions using fdisk

 

Step3: Create partition tables

Let's partition the disk now by issuing fdisk /dev/hda command.

Our objective here is to create the following, where /dev/hda1 and /dev/hda2 will be used to restore the Clonezilla images that we backup last chapter.

  • /dev/hda1 - partition 1, primary, 150MB, /boot

  • /dev/hda2 - partition 2, primary, 8GB, /

  • /dev/hda3 - partition 3, primary, take all he remaining  space, swap

clonezilla make partitions using fdisk

 

The following screen will be shown, after you issue fdisk /dev/hda. The command "n" means create new partition, the we select partition no "1" to be created. Continue the same process for partition no "2". Please take note that after create the partition, you need to issue "w" command which it will commit the changes to the disk.

making linux  partition using wizard

 

Great, let us check if the partitions have created successfully? Issue fdisk -l now. The following screen capture shows that /dev/hda1 and /dev/hda2 is created successfully.

create linux  partitions using fdisk wizard

 

Great, let us continue swap partition creation. As you can see below, I configure my partition number to "3" and I use the all the remaining space. Then I issue "t" command. "T" let us changing the system type of the partition. I use "82" here for swap partition. You can check all the system type info using "L" command at main menu.

create  swap partitions using fdisk wizard

 

Now, remember to write the partition information by issue "w". Check the partition table information now "fdisk -l"

create  partitions after using fdisk wizard

 

Great! Lots of hard work, now let us continue next part on restoring cloned Linux partition into vmware partition.

 

 

Read More on CentOS Linux, Redhat Linux and Virtualization



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy