PDA

View Full Version : [SOLVED] install clonezilla on ubuntu



pythonscript
July 18th, 2009, 02:35 AM
How would I go about installing clonezilla on ubuntu? I'm making a custom live cd for diagnostics (kind of like SystemRescueCD, but I'm making a ubuntu-based one as a learning experience :) and I'd like clonezilla to be one utility that I include. All I can find is the live CD version, though, but I'd like to actually install the software under my current ubuntu installation. Any ideas? I don't need any setup for multicasting or anything like that; I'd just like to have the ability to backup my partitions to image files from my custom CD.

I've had incredibly horrible luck with partimage (google "partimage can't read bitmap block 0 from image" and you'll see the seemingly random nature of the error that always seems to plague me no matter what I do with partimage) so I'm definitely working with just clonezilla. Thanks!

bwitherell
August 26th, 2009, 03:05 PM
Recently I have been toying with the same idea. To install Clonezilla without installing the server parts of it I just took it off of the live CD.

I downloaded the ISO. Mounted the Squashfs file and place the /opt/drbl directory from the mounted squashfs file into the /opt directory on my Ubuntu system. Then I added /opt/drbl:/opt/drbl/bin:/opt/drbl/sbin to my existing PATH setting. I tested creating an image and restoring an image. Both were successful.

Steps:
-download the clonzilla ISO and copy the /live/filesystem.squashfs file from the ISO to your home folder.
-open a terminal and su to root
sudo su
-make a directory to mount the squash file in
mkdir /media/sqfile
-mount the squash file
mount -t squashfs ./filesystem.squashfs /media/sqfile -o loop
-copy the /media/sqfile/opt/drbl directory to your /opt folder
-edit root's .bashrc file to permanently add clonezilla to the PATH environment variable.
gedit /root/.bashrc
-in the /root/.bashrc type the following line at the bottom of the file. I made this the very last line in the .bashrc file
PATH=$PATH:/opt/drbl:/opt/drbl/bin:/opt/drbl/sbin This adds /opt/drbl, /opt/drbl/bin and /opt/drbl/sbin to the PATH variable.
-save and close gedit.
-close the terminal and open a new one
-type
sudo su
-type
clonezilla you should be presented with the clonezilla menu interface inside your terminal window. Make sure you run clonezilla as root.

pythonscript
August 26th, 2009, 03:50 PM
Thanks for the tip! That definitely helps me.

pythonscript
September 5th, 2009, 11:50 PM
Any idea how I could make this into a deb package?

mario0318
November 19th, 2009, 03:27 AM
Is this really the best tutorial out there to install Clonezilla?

pythonscript
November 19th, 2009, 03:27 PM
Is this really the best tutorial out there to install Clonezilla?

Normally people don't install Clonezilla; they just run it from the LiveCD like they do other utilities from SystemRescueCD. I'm thankful to bwitherell for the help.

LukonLinux
November 29th, 2009, 01:25 AM
Thanks for the tutorial. I followed it, but when I run: 'sudo su' then 'clonezilla' - I get permission denied. If I try 'sudo clonezilla' - I get command not found...

How do I give myself the proper privileges to run clonezilla from terminal?

Thanks...

tanoloco
May 3rd, 2010, 11:38 AM
LukonLinux: just type
sudo chmod 750 /opt/drbl/sbin/* /opt/drbl/bin/*from a terminal to have permission to execute clonezilla and files it needs, which must be all owned by root:root of course.

bwitherell: thank you very much for your tutorial! I've just followed it and now I'll try clonezilla running from a terminal window of my ubuntu!! Exactly what I was searching.. hoping everything go ok. Thanks again! :)

SteffJay
July 13th, 2010, 09:04 AM
LukonLinux: just type
sudo chmod 750 /opt/drbl/sbin/* /opt/drbl/bin/*from a terminal to have permission to execute clonezilla and files it needs, which must be all owned by root:root of course.

bwitherell: thank you very much for your tutorial! I've just followed it and now I'll try clonezilla running from a terminal window of my ubuntu!! Exactly what I was searching.. hoping everything go ok. Thanks again! :)

Nice tut tanoloco ;)

AlexanderDGreat
August 26th, 2010, 07:45 AM
Can anyone tell me what clonezilla is good for?

I can backup my system using tar, and rsync, but why use clonezilla? Any particular use for me?

I have a file server in the office.

SteffJay
August 26th, 2010, 09:51 AM
Can anyone tell me what clonezilla is good for?

I can backup my system using tar, and rsync, but why use clonezilla? Any particular use for me?

I have a file server in the office.

Its just another form of system backup. If the others work fine for you, then no problem.

tanoloco
September 1st, 2010, 08:56 AM
It's not a system backup tool .. it's a cloning tool.

It clones drives and/or partitions.

Cheers
:D

pythonscript
September 3rd, 2010, 02:51 PM
It's not a system backup tool .. it's a cloning tool.

It clones drives and/or partitions.

Cheers
:D

Which, in essence, makes it a backup tool, since you can clone a partition to an image and restore the clone back to the same partition, thus imitating backup functionality.

pythonscript
September 3rd, 2010, 02:52 PM
On a side note, is there any way this thread can be closed? I've removed my subscription from it, but it seems like it's gotten far off the original topic (which has already been solved, hence why I marked it so).

elperrillo
December 6th, 2010, 06:23 PM
There is a tutoria on how to acomplish both task, I am going to see if I can find it for you. It even shows you how to create executable shortcuts on the desktop to start Clonezilla in multicasting mode, so you do not have to reconfigure the server again for this purpose.

elperrillo
February 6th, 2011, 03:02 AM
You need good tutorials that help you in your process, here are two very good links.

1) Install clonezilla on Ubuntu (http://geekyprojects.com/cloning/setup-a-clonezilla-server-on-ubuntu/)
2) Create a Custom Ubuntu Live CD (http://geekyprojects.com/ubuntu/build-your-own-custom-ubuntu-livecd/)

Hope this helps you and best of luck with your project.

limp
May 1st, 2011, 10:15 AM
Hi guys,

I followed all the steps bwitherell mentioned so that I run clonezilla from my Ubuntu Live USB stick and I found one thing missing.

When clonezilla starts with the image generation (I used the device-image method), I got errors like that:


/opt/drbl/sbin/ocs-functions: line 1010: partimage: command not found

or when I selected to used "dd" for generating the image I got:


/opt/drbl/sbin/ocs-functions: line 1140: partclone.dd: command not found

I figured out that all these tools are contained in the /media/sqfile/usr/sbin directory so the problem solved by adding /media/sqfile/usr/sbin into the PATH variable.

Hope that helped someone...

Regards.

cs_tekkies
July 3rd, 2011, 07:34 PM
thank you very much bwitherell (http://ubuntuforums.org/member.php?u=277152).... i hope that you will always share you expirience with us regarding ubuntu... you help me a lot... thanks again...

ZioNemo
January 29th, 2012, 02:07 PM
To whom it might concern:

With recent versions of clonezilla you happen to need "pigz".
You can install it in your ubuntu or just copy it from <mount-point>/usr/bin/pigz to /opt/drbl/bin.

I didn't like having clonezilla in my PATH, so I created /usr/local/bin/clonezilla with the following content:

#!/bin/bash
PATH=/opt/drbl:/opt/drbl/bin:/opt/drbl/sbin:$PATH
sudo /opt/drbl/sbin/clonezilla

HiH
ZioNemo