| Create Clonezilla live from scratch |
- Find a machine with memory size larger than 1 GB.
- Download Clonezilla live 1.2.10-14
- 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 ext3 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.
- 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 /opt/drbl/conf/drbl.conf, append ncpfs in variable PKG_FROM_DBN_WHICH_OCS_LIVE_NEED.
- 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 update
- apt-get -y install drbl clonezilla
- apt-get -y install live-build=2.0.12-2.drbl2 cdebootstrap
-
- 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 -a 'firmware-linux-free zfs-fuse live-boot=2.0.15-1.drbl11 live-boot-initramfs-tools=2.0.15-1.drbl11 live-config=2.0.15-1.drbl6 live-config-sysvinit=2.0.15-1.drbl6' -f 686-pae -l e -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-2 -i customized
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.


