LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > beachboy2
User Name
Password

Notices


Rate this Entry

Clonezilla: A Basic Step-by-Step Guide to Cloning (Disk to Disk) & Imaging (Disk to Image)

Posted 11-20-2019 at 03:35 PM by beachboy2
Updated 11-30-2019 at 04:28 PM by beachboy2


Clonezilla
is a well-known disk and partition cloning/imaging program.

However, the retro look of Clonezilla with its command line interface, plus a similarity to the Windows “Blue Screen of Death” (see screenshot) puts off many people from using it.
It is necessary to put this unwelcoming exterior to one side and concentrate on what this very useful and powerful piece of software can do.

I know that Clonezilla produces it own guides.
Despite this, I just wanted to produce a short guide so that a hard copy could be kept by the user’s side to give valuable support at what might be a critical time.

Cloning Disk to Disk

NB The target/destination partition or drive must be equal to or larger than the source one.

Download the Clonezilla stable ISO image (OR alternative stable, testing, alternative testing) from:
https://clonezilla.org/downloads.php
Select amd64 or i686, iso, auto.

Use Etcher to burn the ISO image to a USB drive.
Download and install Etcher from:
https://www.balena.io/etcher/

Alternatively
, use your burning software to burn the ISO image to a DVD.

I would also burn the following two repair items to CD/DVD/USB:

Boot Repair Disk:
https://sourceforge.net/p/boot-repair-cd/home/Home/

Rescatux & Super Grub2 Disk:
https://www.supergrubdisk.org/super-grub2-disk/

NB All data will be wiped from the Target drive!
It is essential that you know exactly which drive is which before you start.

**Make sure that the Target drive is connected.**

Then insert the Clonezilla USB drive.
Switch on the computer and press F12 (or other boot device key) several times to bring up the Boot Menu.
Use the Down arrow to select the Clonezilla USB drive and press Enter.
Select either Default OR Other Modes of Clonezilla Live → Clonezilla Live (To RAM. Boot media can be removed later).
Which Language? English (or Other).
Change keyboard? Either stick with US, or in my case, I selected:
Keyboard→ Change to UK
Generic 105 key International
Layout Eng (US)
AltGr key ? -> Default
Compose key? →Default
(Select Don’t touch keymap, if this option is shown)
Start Clonezilla.
Select device-device.
Choose Beginner mode.
Select Disk to local Disk.

Now be very careful!!

Your Source disk should be sda (the HDD).
Your Target drive should be sdb OR sdc OR sdd (USB external drive or other drive). If you have anything else connected, make sure you know which drive is which!!

Skip the file system check. Press Enter.
Action to perform when everything is finished? Select Shutdown. Press Enter.
Press Enter again.

Do you want to clone bootloader to sdd? Press y and press Enter. (This may or may not be shown).

Are you sure? Press y and Enter.
Repeat.
Wait for the cloning to complete and the system to shutdown.
Remove the Clonezilla USB drive.

.................................................................................................... ...........................................

Disk to Image

Download the Clonezilla stable ISO image from:
https://clonezilla.org/downloads.php
Select amd64 or i686, iso, auto).

Use Etcher to burn the ISO image to a USB drive.
Download and install Etcher from:
https://www.balena.io/etcher/

Alternatively, use your burning software to burn the ISO image to a DVD.

Next, create a new folder, such as CLONEZILLA_IMAGES, in the USB Target drive (e.g.WDC EHDD). Do not use CZ_IMG.

Insert the Clonezilla USB drive.
Switch on computer and press F12 (or other boot device key) several times to bring up the Boot Menu.
Use the Down arrow to select the Clonezilla USB drive and press Enter.
Select either Default OR Other Modes of Clonezilla Live → Clonezilla Live (To RAM. Boot media can be removed later).
Which Language? English (or Other).
Change keyboard? Either stick with US, or in my case, I selected:
Keyboard→ Change to UK
Generic 105 key International
Layout Eng (US)
AltGr key ? -> Default
Compose key? →Default
(Select Don’t touch keymap, if this option is shown)
Start Clonezilla
device-image
Use local device
Now plug in USB Target drive.
Wait at least 5 seconds for the Target drive to be detected and then press Enter.
Probably sdd or similar (for example WDC EHDD should be displayed amongst others).
Press Ctrl + C to exit this window.
Select sdd1 where the device will be mounted to save the image.
Which directory? CLONEZILLA_IMAGES.
The current selected directory is CLONEZILLA_IMAGES.
Click on Tab (above CapsLock), select Done and press Enter.
Beginner Mode.
Savedisk. Local disk as image.
Give the image a name and date such as manjaro_19nov2019 (Delete any existing type by using Backspace).
Select sda (*) by using Spacebar to put an asterisk inside the brackets. The red square is NOT sufficient).
Enter
Skip checking.
Yes, check saved image.
Not to encrypt.
Enter.
Select shutdown, Enter.
Enter.
Are you sure you want to continue?
Press y and press Enter.
When the operation has finished, remove the Clonezilla USB drive and reboot the computer.
.................................................................................................... ..........................................

Restore Image to Disk


Insert the Clonezilla USB drive.
Switch on computer and press F12 (or other boot device key) several times to bring up the Boot Menu.
Use the Down arrow to select the Clonezilla USB drive and press Enter.
Select either Default OR Other Modes of Clonezilla Live → Clonezilla Live (To RAM. Boot media can be removed later).
Which Language? English (or Other).
Change keyboard? Either stick with US, or in my case, I selected:
Keyboard→ Change to UK
Generic 105 key International
Layout Eng (US)
AltGr key ? -> Default
Compose key? →Default
(Select Don’t touch keymap, if this option is shown)
Start Clonezilla
device-image
Use local device

**Now insert the USB Source drive (where the saved Image is stored)**
Wait at least 5 seconds for the Source drive to be detected and then press Enter.
It probably displays sdd or similar (for example Elements USB should be shown amongst others).
Press Ctrl + C to exit this window.
Select sdd1 where the saved image is stored.
Which directory? (e.g. CLONEZILLA_IMAGES).
Select the required image such as manjaro3_20thnov2019.
Click on Tab (above CapsLock), select Done and press Enter.
Press Enter to continue.
Beginner Mode.
Restoredisk (restore_an_image_to_local_disk).
Select the appropriate image file (e.g. manjaro3_20thnov2019).
Select Target disk sda
Skip checking.
Choose Shutdown and press Enter.
Are you sure you want to continue?
Press y and press Enter.
Are you sure you want to continue?
Press y and press Enter.
When the operation has finished and the computer has shutdown, remove the Clonezilla USB drive.
Then reboot the computer.
.................................................................................................... ......................................................

Restore Image to a Smaller Disk
I have not done this personally, but it would seem that it is possible according to this link which explains the procedure using GParted:
http://urkomasse.blogspot.com/2017/1...-image-to.html

GParted:
https://gparted.org/
Attached Images
File Type: png clonezilla.png (5.4 KB, 2 views)
Posted in Uncategorized
Views 1472 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration