Menu

Customizing LiveCD - no server

Help
kudzou
2007-07-30
2013-04-05
  • kudzou

    kudzou - 2007-07-30

    Hello,
    I'm french and thank you for your product.

    I can create and restore linux/windows xp image on a NFS share.
    I have an image of my computer.

    I want customize my livecd.
    ---------------------
    The goal is :
    one user insert le DVD on the DVD-DRIVE.
    he has a window with a secure id, he phone me and i give him a number of authentification
    if the number is good, clonezilla in backgroung restore the computer automatically.
    (no user prompt, just one screen)
    ----------------------

    my problem : create the live cd about "clonezilla-live-1.0.3-18.zip"  without a clonezilla server
    ex in http://clonezilla.sourceforge.net/clonezilla-live/

    where i deposit my image cd ?

    how I create a iso bootable file starting from clonezilla-live-1.0.3-18.zip ?

    how I create a good interface ?

    Thanks for your answer!

     
    • kudzou

      kudzou - 2007-07-30

      and too, my image is into the DVD and not in the network or USB or ....

      Thks !!

       
    • Steven Shiau

      Steven Shiau - 2007-07-30

      Basically what you can do is:
      1. Boot your clonezilla live via USB flash drive or CD
      2. Choose to use shell command
      3. Mount the clonezilla image home, maybe it's on NFS, sshfs or local disk, any of them. Ex. There is already some clonezilla image in /dev/hdb1, then you can run
         mount /dev/hdb1 /home/partimag
      4. cd /home/partimag
      5. Say if you want to put the image "sarge-image" in CD, run command
         /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoredisk sarge-image hda" sarge-image
         (For the options, ref: http://clonezilla.sourceforge.net/clonezilla-live/#make_clonezilla_live\)

      If you want to put the password, more hacking is necessary. We will add this function in ocs-iso in the future.
      For the time being, you have to remaster the ISO file, and you can do that in the boot menu in the created iso image. The file is /isolinux/isolinux.cfg in that CD. For example, if you want to put the password as "clonezillapass", you can create the encrypted password by:
      /opt/drbl/bin/sha1pass clonezillapass
      $4$K7D35IDl$1yxmpYM/fboGLBLJM5mQDJJWkD8$
      Then edit /isolinux/isolinux.cfg, make it like:
      ...
      MENU MASTER PASSWD $4$K7D35IDl$1yxmpYM/fboGLBLJM5mQDJJWkD8$
      ...
      and uncomment all the "# MENU PASSWD" as "MENU PASSWD" in /isolinux/isolinux.cfg.

      That's all.
      Good luck.

       
    • kudzou

      kudzou - 2007-08-08

      Thank you for your answer.

      I have got an another problem.

      I want created my iso in a shared directory in a windows Xp client.

      I mount my mounted point :
      mount -t smbfs -o username=XXX,password=XXXX //IP/shared /home/partimag

      But when the iso image increase 2GO ,clonezilla stop the upload.
      My wxp is in NTFS with a hard drive 100 GO. I have full rights in this shared directory.
      In my shared directory i have :
      -----
      IMAGE --> directory --> disk,sda1.aa,parts............
      debian-live-for-ocs.iso --> file
      unifont.bgf --> file
      -----

      But if i use the command

      mount -c cifs -o username=XXX,password=XXXX //IP/shared /home/partimag

      after

      cd /home/partimag
      ls

      IMAGE
      debian-live-for-ocs.iso
      unifont.bgf

      after
      /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoredisk IMAGE sda" IMAGE

      clonezilla don't stop and my iso is created but when i burn my iso, there are more errors in the DVD
      and when i run le DVD in a client, there are an error in
      step 1 : choice of clonezilla begin
      step 2 : error after setup
                  - target_parts is not assigned in function task_restoreparts !!!
                    Program terminated!!

      My GOAL :
      Client--> ISO ---> WXP shared
      2GO >iso<4.5GO

      Create an iso image at the network in a windows xp client, and this image increase 4GO but no 4,5 Go

      Thanks for your explain

       
    • kudzou

      kudzou - 2007-08-08

      I read a post:
      SMB was a old version of CIFS : not created image size < 2Go
      CIF is recent image size > 4GO

      One question out.Good

      But why this message :

      target_parts is not assigned in function task_restoreparts !!!

      Thanks in advance for your help , once again!

       
      • Steven Shiau

        Steven Shiau - 2007-08-08

        The problem is, the image you saved is for partition only, and you are using
        "restoredisk sda"... It's for disk restore. That's the reason why.
        You should use something like:
        /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoreparts IMAGE sda1" IMAGE
        to create that.

        For more options about that, check
        /opt/drbl/sbin/ocs-sr -h

         
        • Steven Shiau

          Steven Shiau - 2007-08-08

          Did you save the image with savedisk or saveparts option ?
          If it's savedisk, your previous command should be OK. However, I am guessing you used saveparts.
          If it's saveparts, try this:
          /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoreparts IMAGE sda1 sda2 sda3" IMAGE

          BTW, if you have a lot of machine to clone, why not use clonezilla server (DRBL server) ? It supports multicast clone, and you do not have to prepare a lot of CD/DVD.
          For more info, check http://drbl.sf.net

           
    • kudzou

      kudzou - 2007-08-08

      Quickly answer, Thks Thks !!

      I want to restore ALL PARTITION OF A DISK with a DVD
      ex : sda1 and sda2 and sda3 .....

      I will read options about  /opt/drbl/sbin/ocs-sr -h

      But if you have a good explain for my work.
      I go to holidays friday, i must close this work. I whish use Clonezilla for my company.
      200 computer Xp - 20 computer LINUX.

      Clonezilla is very good because is quickly, open-source and Free and restore Centos-linux partition with no problem

      Thanks in advance for your help , once again, once again!

       
    • kudzou

      kudzou - 2007-08-08

      Thks for your ansewer

      ***BTW, if you have a lot of machine to clone, why not use clonezilla server (DRBL server) ? It supports multicast clone, and you do not have to prepare a lot of CD/DVD.
      For more info, check http://drbl.sf.net\***

      Because i have no time to setup a server and my colaborators (worker with who i work) are in the road and the station too. I want, they are independant to restore their computer.

      In the futur, I went use clonezilla server.

      Thanks in advance for your help , once again, once again ,once again! ! 

       
    • kudzou

      kudzou - 2007-08-08

      Re:

      I save the image with savedisk.

      If i restore my computer from Samba, the restoration is good.
      I have à problem with my clonezilla DVD stand alone.

      my check list :
      My computer : WINDOWS XP - 2 PARTITION --> C:  D: in FAT32 ALL
      My hard disk is a SATA DISK
      I have one hard drive

      I restart my computer and with the CD CLonezilla Live, I create my image with savedisk into /home/partimag --> shared samba.
      When my image is created, I execute this command

      mount -c cifs -o username=XXX,password=XXXX //IP/shared /home/partimag
      /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoreparts IMAGE sda" IMAGE

      My Clonezillla DVD iso is created.
      I burn this iso
      and I insert my DVD -->clonezillaLive
      after
      I have this message

      - target_parts is not assigned in function task_restoreparts !!!
      Program terminated!!

      I restart and recreate my image tree times

      (there many files in the directory IMAGE
      disk --- vi --> sda
      parts -- vi --> sda1 sda2
      sda-chs.sf -- vi -->cylinders=19457
                    heads=255
                    sectors=63
      sda1.aa
      sda2.aa
      sda-pt.sf  is empty
      sda-mbr)

       
    • kudzou

      kudzou - 2007-08-08

      oups!!!!!I copy-paste this previous post.
      The command what i execute is :
      /opt/drbl/sbin/ocs-iso -g en -t -k NONE -e "-b -c restoredisk IMAGE sda" IMAGE

       
      • Steven Shiau

        Steven Shiau - 2007-08-08

        Which version of clonezilla live are you using ?
        Better to try the latest one, since some bugs might be fixed already.

         
    • kudzou

      kudzou - 2007-08-09

      You are good. it's crasy, i use Clonezilla-gparted live CD is up and i use clonezilla stand alone live CD is down.

      It's good. Now i create my iso.   
      I found how to modify this iso.

      My next goal : a secure right of this iso.
      In the top of this post you give me a process to configure my isolinux.cfg
      is good

      But when i give the password to my user, after the user know the password and there no security.

      I want before launching isolinux.cfs to carry out a script with this action :

      calculate a password from a formula crypted

      first : the script calculated a random var --> put on environnement ex:  set env1=12313212
      seconde : the script from a formula calculate a another number ex: set env2=56*env1+56-33*env1

      After in my display (isolinux.cfg) the user see 12313212 and in lower part a blanck input case
      and a button "OK"
      he call me and give me env1
      I calculate in my computer with the same formula env2
      I give him env2 and he push "OK"

      if they are an error, no way for him.
      One problem = start script and the sript muste be crypted.

      Thanks for your help !!

       
      • Steven Shiau

        Steven Shiau - 2007-08-09

        Well, syslinux/isolinux is not an OS, so it's not easy to do such a calculation.
        On the other hand, you can do something after the booting, right before clonezilla starts. i.e. put your own script in /etc/ocs-live.d/, like /etc/ocs-live.d/S07passcheck and its mode is 755.
        However, this is still not a good solution to you, since an user can do something with kernel parameter or, just mount your own clonezilla live CD and get the clonezilla image.

         
    • kudzou

      kudzou - 2007-08-09

      the way of this work is very hard.

      this is still not a good solution to me

      if you have a proposal.

      other goal : the prompt write Y/N when clonezilla ask the user to overwrite the disk.
      if he click N, there are a message who give him root access
      how check out this ?

      Thanks you for all !!

       
      • Steven Shiau

        Steven Shiau - 2007-08-10

        Well, in that case, you have to modify the program.
        Before you create your own clonezilla live, you can modify /opt/drbl/sbin/ocs-functions,
        ---------------
        ...
        if [ "$confirm_before_clone" = "yes" ]; then
            echo $msg_delimiter_star_line
            [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
            echo "The following step is to save to the harddisk/partition(s) \&quot;$save_dev\&quot; in this machine as image \&quot;$save_img_name\&quot;."
            [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
            echo -n "Are you sure you want to continue ? (y/N) "
            read save_confirm_ans
            case "$save_confirm_ans" in
                 y|Y|[yY][eE][sS])
                    echo "Let's do it!"
                    ;;
                 *)
                    echo "$msg_program_stop!"
                    exit 1
            esac
          fi
        ...
        echo "$msg_let_me_ask_you_again, $msg_are_u_sure_u_want_to_continue ?"
            echo -n "[y/N] "
            read continue_restore
            case "$continue_restore" in
             y|Y|[yY][eE][sS])
               echo "OK, let's continue!"
               ;;
             *)
               echo "Abort!"
               exit 1
               ;;
            esac
        ---------------
        Replace those "exit 1" by something else, like "poweroff" or other commands.
        However, I do not think this is a nice method. You can always have your own best solution.

         
    • kudzou

      kudzou - 2007-10-09

      Hi,

      My iso is too large > DVD capacity < 2 DVD capacity

      Can i dump my computer from 2 DVD ?

      If you have a proposal

      Thks !

       
    • Steven Shiau

      Steven Shiau - 2007-10-13

      OOps... Something went wrong with the "monitor this forum" function in my sf account. I did not get any notification about this. Sorry for the late response.

      About your question,
      Sorry, for the time being, I think no such solution. Maybe you can try to use external usb disk or usb flash disk.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.