Integrating Clonezilla Live into FOG’s PXE Menu

I came across a number of potential solutions while looking into some way of backing up my FOG server but what I’ve settled with is using Clonezilla to clone the Ubuntu box itself to safeguard the entire FOG server for disaster recovery purposes (the FOG server is installed on Ubuntu).

I’ve been experimenting with it a couple of times and I like it so much I decided to add it to FOG’s PXE menu just for fun.

I understand that with this setup I cant use Clonezilla from the FOG PXE menu to backup the same machine running FOG but I think I can live with using the live CD for that. In fact I’ve left the disk in the drive so I don’t have to scramble for it when I need it.

That’s enough background information. Let’s get on with the actual instructions which is what this post is supposed to be about…

Launch terminal and type the following command

sudo chown emeneye /tftpboot

This changes the owner of the /tftpboot directory to emeneye. Replace ‘emeneye’ with the your own username

image

enter root password

image

Download the latest clonezilla zip file from http://clonezilla.org/downloads.php

Right click on the clonezilla zip file and choose ‘Open with Archive Mounter’.

Open the mounted folder and from the /live directory copy the following files to the /tftpboot directory:

  • vmlinuz
  • initrd.img
  • filesystem.squashfs

Go back to the Terminal and type the following command

sudo gedit /tftpboot/pxelinux.cfg/default

image

This will launch a text document. At the end of the document add the following entry (before “PROMPT 0”):

label Clonezilla-live 
MENU LABEL Clonezilla Live 
KERNEL vmlinuz 
APPEND initrd=initrd.img boot=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 noprompt fetch=tftp://IP_ADDRESS_OF_FOG_SERVER/filesystem.squashfs

Save and close the document.

Reboot your client machine and PXE-boot into FOG and you should see a new menu option labeled Clonezilla Live.

image

PS.

This will also come handy if I ever come across a situation when I need to back up a Linux box in future without having to use the live cd.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s