| Create Clonezilla live from scratch |
This doc is about creating Clonezilla live 2.x.
- Find a machine with memory size larger than 1 GB.
- Download Clonezilla live 1.2.10-14 i686 version (Yes, it's 1.2.10-14, those newer than this won't work due to some packages dependence issue with live-build 2.x. After we switch to live-build 3.x, we can use newer version of Clonezilla live).
- Follow this doc to create a bootable Clonezilla live boot media, then boot it on an x86 machine. After language and keyboard are selected, choose "Start_Clonezilla" -> "device-image", then mount a working directory, the space should large enough to put the live CD and some temp files. It's recommended to choose local_dev to mount local partition as /home/partimag, since live-helper will use some low level commands and it might fail in network-based directory. Also make sure the partition is the filesystem of Linux, like ext4 or reiserfs, _NOT_ FAT or NTFS filesystem, because they do not support some file types in Linux.
- When Clonezilla live asks you to choose save or restore disk/partition, choose "exit" to enter command line prompt.
- Run "sudo -i" or "sudo su -" to become root.
- Run "ocs-live-netcfg" to configure the network so that we can access Debian repository later.
- Modify /etc/apt/sources.list if you want to assign different apt repository.
- cd /home/partimag/
- If the available space in dir /tmp/ is less than 500 MB, tune it to be larger than 500 MB. You can make it by the commands like:
mount -t tmpfs -o "remount,nosuid,size=60%,mode=1777" tmpfs /tmp
Or
mount -t tmpfs -o "remount,nosuid,size=524288000,mode=1777" tmpfs /tmp - apt-get purge drbl clonezilla
- /usr/share/drbl/sbin/drbl-prepare-pxelinux -u -pv 4.06
- apt-get update
- Do NOT run "apt-get dist-upgrade" or "apt-get upgrade" to upgrade any packages, otherwise this will break the rest of procedure.
- apt-get -y install drbl clonezilla
- If you want to add more packages in Clonezilla live, and you are sure the packages are included in Debian repository, e.g. ncpfs, you can edit /etc/drbl/drbl.conf, append ncpfs in variable PKG_FROM_DBN_WHICH_OCS_LIVE_NEED.
- apt-get -y install live-build=2.0.12-2.drbl2 debootstrap genisoimage
-
- If you want to use Debian Sid as the running OS of Clonezilla live, use the experimental drbl live repository (-l e), and unstable drbl repository (-b unstable), you can run it as:
create-debian-live -l e -b unstable -d sid -i customized
For more options about create-debian-live, you can run "create-debian-live --help".
More examples, like:
create-debian-live -bt debootstrap -a 'firmware-linux-free zfs-fuse live-boot=2.0.15-1.drbl15 live-boot-initramfs-tools=2.0.15-1.drbl15 live-config=2.0.15-1.drbl6 live-config-sysvinit=2.0.15-1.drbl6 exfat-utils exfat-fuse tcplay' -f 686-pae -l unstable -b unstable -d sid -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -g http://free.nchc.org.tw/drbl-core -k 3.2.0-4 -i customized
(//NOTE// Since Debian Sid repository changes everyday, the above command might have to be modified so it can work with Debian Sid.)
Other examples:
-
If you want some special kernel version, and you are sure it exists in your Debian repository, e.g. kernel 2.6.32-bpo.5, you can make Clonezilla live by:
create-debian-live -l e -b unstable -k 2.6.32-bpo.5 -i customized
("-l e" means to use the live-experimental branch in drbl respository, this also means packages from live-stable, live-testing or live-unstable can be used. "-b unstable" means to use the unstable branch of drbl.). You can refer to this URL to check the packages in DRBL repository http://free.nchc.org.tw/drbl-core/pool/drbl/).
If everything runs smooth, you will get a Debian live with file name "debian-live-for-ocs-customized.iso". Later we will use this Debian live as a template for Clonezilla live.
- If you want to use Debian Sid as the running OS of Clonezilla live, use the experimental drbl live repository (-l e), and unstable drbl repository (-b unstable), you can run it as:
- Run:
ocs-iso -s -j debian-live-for-ocs-customized.iso -i customized
ocs-live-dev -c -s -j debian-live-for-ocs-customized.iso -i customized
then 2 files, clonezilla-live-customized.iso and clonezilla-live-customized.zip will be created, respectively.

