Clonezilla Live is a free, open-source disk imaging and cloning tool that boots from a USB stick or CD and copies only the used blocks of a disk or partition. This guide walks through a complete save, restore and disk-to-disk clone with Clonezilla Live, using a Samba (Windows/SMB) share as the image repository, and then covers how to host an NFS or SMB repository on RHEL, AlmaLinux, Rocky Linux, Oracle Linux 8 to 10 or CentOS, how to verify an image, and how to fix the problems that usually stop a clone.
If you just want the short original walkthrough with these same photos, see the older post Using Clonezilla to Image/Clone A Hard Drive. For a raw, block-for-block copy without a boot menu, Use DD to Clone Linux Hard Drive covers the dd approach.
What Clonezilla Can Do
| Feature | What it means |
|---|---|
| device-image | Save a whole disk (savedisk) or selected partitions (saveparts) to an image folder, or restore one back (restoredisk / restoreparts). |
| device-device | Copy a disk or partition straight to another local disk or partition, with no image file in between. |
| Image repositories | Local disk, SSH server, Samba (SMB) server, NFS server, and in recent releases WebDAV and S3-compatible storage. |
| Filesystems | Used-block copies of ext2/3/4, XFS, Btrfs, NTFS, FAT/exFAT, HFS+, UFS and others through Partclone; anything it does not understand (for example an encrypted volume) falls back to a slower sector-by-sector dd copy. |
Prerequisites
- A Clonezilla Live ISO or zip from clonezilla.org, written to a USB stick (with Rufus, balenaEtcher, Fedora Media Writer or
dd) or burned to CD. The stable Debian-based build is the usual choice; an Ubuntu-based build is available for newer hardware. - Console or physical access to the machine you are imaging. Clonezilla runs from RAM, so the source disk is never mounted read-write.
- A destination with enough free space. A compressed image is typically well under the used space of the source, but plan for at least the used space to be safe.
- For a network repository: the server name or IP, the share or export path, and an account with write access.
- For UEFI machines with Secure Boot: current Clonezilla Live releases boot with Secure Boot enabled. If an older stick will not boot, update the media or temporarily turn Secure Boot off.
- For Windows systems with BitLocker: suspend or turn off BitLocker first, or Clonezilla can only make a full sector-by-sector copy of the encrypted volume.
Step 1: Boot Clonezilla Live
Boot the machine from the Clonezilla media (usually F12, F11, Esc or F8 opens the one-time boot menu). Pick the default Clonezilla live entry with the 800×600 display; it is plenty of room for the text menus.

The kernel and Debian live system load into RAM, which prints a few screens of boot messages. When it finishes you are asked for a language and keyboard layout.

For a standard US keyboard choose Don’t touch keymap. On the next screen choose Start_Clonezilla (the other choice drops you to a shell, which is handy later for troubleshooting).
Step 2: Choose device-image or device-device

- device-image: create an image you can keep and restore later (backups, golden images, before an OS upgrade). This guide follows this path.
- device-device: clone one disk directly to another in the same machine, for example moving to a larger SSD.
- remote-source / remote-dest: clone disk-to-disk across the network between two machines that both booted Clonezilla.
Step 3: Mount the Image Repository (Samba Example)
Clonezilla mounts the repository at /home/partimag. Pick where that should live. To save to a Windows file server or NAS share, choose samba_server.

Next, configure the network. DHCP is the easiest choice on most LANs; pick static if the segment has no DHCP server. Then answer the Samba prompts:
- Server: the file server’s IP address or name. An IP address avoids name resolution problems inside the live environment.
- Domain: for an Active Directory account, give the domain. Older releases had no separate domain prompt, so the user name had to be typed as
DOMAIN\username; newer ones ask for the domain on its own screen (leave it empty for a local or workgroup account). - Account and share directory: for
\\fs01\images\pc42the share isimagesand the directory is/pc42. - SMB protocol version: leave it on auto, or pick 3.0 if the server has SMBv1 disabled (it should).
- Security mode: auto works for most Windows servers and Samba file servers.

After you enter the password, Clonezilla prints df output for /home/partimag. If the share is not listed, the mount failed; see Troubleshooting below.
Step 4: Save the Disk Image
Choose Beginner mode (accepts sensible defaults) and then savedisk to image the whole disk, or saveparts for selected partitions.

- Give the image a meaningful name, for example
2026-11-30-pc42-win11. - Select the source disk (for example
sdaornvme0n1). Check the size and model so you pick the right one. - Compression: the default zstd or gzip options are fine. In Expert mode,
-z9p(parallel zstd) is fast on multi-core CPUs. - File system check: you can skip it or let Clonezilla run
fsckon Linux file systems first. - Answer Yes, check the saved image when asked. It confirms the image can be restored without writing anything.
- Optionally encrypt the image with a passphrase.

Clonezilla shows the exact ocs-sr command it is about to run, which is worth copying down because you can rerun it unattended later. Confirm with y and Partclone starts copying the used blocks.

A typical command line for a whole-disk save looks like this:
/usr/sbin/ocs-sr -q2 -c -j2 -z9p -i 0 -sfsck -senc -p choose savedisk 2026-11-30-pc42-win11 sda
When it finishes, choose to power off, reboot, or start over.
Step 5: Restore an Image
- Boot Clonezilla on the target machine and mount the same repository (Steps 1 to 3).
- Choose restoredisk (or restoreparts), pick the image folder and the target disk.
- The target disk must be the same size or larger. Clonezilla warns twice before overwriting; read the disk name each time.
- In Expert mode,
-k1creates the partition table proportionally on a larger disk so the extra space is used.
/usr/sbin/ocs-sr -g auto -e1 auto -e2 -r -j2 -k1 -scr -p reboot restoredisk 2026-11-30-pc42-win11 sda
For a disk-to-disk clone with device-device, the same questions apply, except you pick a source disk and a target disk instead of an image folder.
Hosting the Image Repository on RHEL, AlmaLinux, Rocky Linux or Oracle Linux 8 to 10
Any Linux server in the RHEL family makes a good image store. NFS is the simplest choice for Clonezilla, because there is no account or SMB version to get wrong.
NFS export
sudo dnf install -y nfs-utils
sudo mkdir -p /srv/clonezilla
echo '/srv/clonezilla 192.168.10.0/24(rw,sync,no_root_squash)' | sudo tee -a /etc/exports
sudo systemctl enable --now nfs-server
sudo exportfs -rav
sudo firewall-cmd --permanent --add-service=nfs
sudo firewall-cmd --reload
no_root_squash is needed because Clonezilla writes as root; limit the export to your imaging subnet. On CentOS 7 the commands are the same with yum in place of dnf. In Clonezilla choose nfs_server, pick NFS v4, give the server IP and the path /srv/clonezilla.
Samba share
sudo dnf install -y samba
sudo mkdir -p /srv/clonezilla
sudo useradd -M -s /sbin/nologin imaging
sudo smbpasswd -a imaging
sudo chown imaging: /srv/clonezilla
sudo semanage fcontext -a -t samba_share_t '/srv/clonezilla(/.*)?'
sudo restorecon -Rv /srv/clonezilla
sudo tee -a /etc/samba/smb.conf <<'EOF'
[images]
path = /srv/clonezilla
valid users = imaging
read only = no
EOF
sudo systemctl enable --now smb
sudo firewall-cmd --permanent --add-service=samba
sudo firewall-cmd --reload
If semanage is missing, install policycoreutils-python-utils. The SELinux label step is what most people miss: without it, Clonezilla mounts the share but gets permission denied when it writes.
Verify the Image
- Each image is a folder containing files such as
disk,parts,sda-pt.sfand compressed partition files likesda1.ntfs-ptcl-img.zst.aa. List it on the server withls -lh /srv/clonezilla/<image>. - Clonezilla’s own check after saving should end with a message that the image was checked and is restorable.
- To check an older image without restoring it, boot Clonezilla, mount the repository, and choose chk-img-restorable from the device-image menu.
- Test a restore onto a spare disk or a virtual machine before you rely on the image for a real recovery.
Troubleshooting
| Symptom | Fix |
|---|---|
| Samba mount fails with permission denied | Wrong domain or account format, SMBv1 disabled on the server, or a SELinux label missing on a Linux share. Set the SMB version to 3.0, check the domain prompt, and run restorecon on the share. |
| Mount works but write fails | The account has read-only rights, or on Linux the directory is not owned by the Samba user or labeled samba_share_t. |
| Target disk is too small | Clonezilla restores to the same size or larger. Shrink the source partition first (Windows Disk Management, or resize2fs/LVM on Linux; XFS cannot be shrunk), or use Expert mode with -icds only if the partitions themselves fit. |
| Image is huge and slow | The partition was encrypted (BitLocker, LUKS) or unrecognized, so Clonezilla used dd. Suspend BitLocker first, or accept the full-size copy. |
| Restored Windows will not boot | Check the firmware is set to the same UEFI or legacy BIOS mode as the source. On NVMe targets, make sure the storage controller mode (AHCI vs RAID/VMD) matches. |
| Restored Linux drops to emergency mode | UUIDs are preserved by an image restore, but a different disk name or a missing driver can break things. Check /etc/fstab and rebuild the initramfs with dracut -f on RHEL-family systems. |
| Network repository not found | Static IP or VLAN mismatch. Drop to the shell and test with ping and showmount -e server. |
Modern Notes
- Clonezilla is actively maintained; download the current stable release rather than reusing an old stick, especially for NVMe, recent Wi-Fi-only laptops and Secure Boot.
- Windows 10 and 11 images restore fine to identical hardware. For a golden image going to different hardware, run Sysprep before saving.
- On RHEL-family servers with LVM, Clonezilla images the physical volume used blocks, so imaging a mostly empty large volume group is still quick.
- For many machines at once, Clonezilla Server Edition or the lite-server mode in Clonezilla Live can multicast one image to a lab.
- Clonezilla is free; if it saves your day, consider supporting the project on clonezilla.org.
This post is an expanded, updated version of an earlier zwiegnet walkthrough, using the same photos of a Clonezilla Live session. Commands and menu names reflect current Clonezilla Live releases; some screens in the photos come from an older release.
