PXEBoot Clonezilla




Update
With clonezilla 2.x is you are facing following error & boot is stuck, you can try changing vga=normal from vga=788 in pxe configuration.

conflicting fb hw usage inteldrmfb vs vesa vga - removing generic driver

This article will help you pxeboot clonezilla using pxeserver. Clonezilla will be handy if you wish to backup / restore partition / hdd using network. So far with XP ghost was one of convenient way for many sysadmins. With the use of Windows 7, image size is increased to few GBs.

Requirement
PXE Server
CloneZilla bootable iso / zip

Download & mount / extract clonezilla iso / zip.

Create folder on existing pxe server
mkdir -p /tftpboot/images/clone/

#copy vmlinuz, initrd & filesystem from clonezilla mount location
cp live/vmlinuz /tftpboot/images/clone/
cp live/initrd.img /tftpboot/images/clone/
cp live/filesystem.squashfs /tftpboot/images/clone/

append following lines in /tftpboot/pxelinux.cfg/default

label Clonezilla Live
MENU LABEL Clonezilla Live
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=788 nosplash fetch=tftp://192.168.3.20/images/clone/filesystem.squashfs

here 192.168.3.20 is pxeserver
above config will boot clonezilla using pxe & you’ll get prompt to choose lang, mount image source dir etc.

OR you can use following config to skip lang selection & mount option, however it will still prompt you to select image source but you can skip & continue as we have mentioned nfs server in following config.

label Clonezilla
MENU LABEL Clonezilla
kernel images/clone/vmlinuz
append initrd=images/clone/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=tftp://192.168.3.20/images/clone/filesystem.squashfs ocs_prerun="mount -t nfs 192.168.3.24:/storage/clonezilla /home/partimag"

here 192.168.3.24:/storage/clonezilla is clonezilla image location.
you can also use other options like samba instead of nfs


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 240 articles by

Trending Posts