Sunday, February 25, 2018
Clonezilla UEFI boot
Clonezilla UEFI boot
Clonezilla is awesome tool to backup your data. It has also released images able to boot from UEFI loader. This post shows how to create bootable USB from iso.
- download clonezilla iso with efi support (ubuntu based iso). Latest stable build is alternative stable releases - 20150217-utopic
- format your USB drive (WARNING: all data will be lost)
- mount USB drive and iso image
- copy iso content to usb drive
parted /dev/sdc (NOTE: sdc is you usb drive)
mklabel gpt
mkpart ESP fat32 1M 100%
set 1 boot on
quit
lsblk /dev/sdc
mkfs.vfat -F32 /dev/sdc1
mount /dev/sdc1 /mnt/USB
mount -o loop /path/to/iso/clonezilla-2.3.1-20150217-utopic.iso /mnt/ISO
cp -ar /mnt/ISO/* /mnt/USB/
TROUBLESHOOTING:
Clonezilla backup fails with:
....Checking the disk space...This could happen with btrfs FS, you need to defragment the partition:
....Failed to use partclone program to save or restore an image!
btrfs filesystem defragment -v -f -r -clzo /
NOTE: / is path where your partition is mounted, in this case the root partition;
-clzo use this if you have compression enabled on your partition, otherwise remove this option
btrfs scrub scrub start /
btrfs scrub scrub status /
NOTE: scrub is running on background, you can see the progress with status cmd