Linux Mint won't boot after restore

Help
istoOi
2014-02-13
2014-02-24
  • istoOi

    istoOi - 2014-02-13

    Hello Folks!

    I use Clonezilla Live for over a year for setting up windows workstations. I always save and restore entire HDDs and never had problems with Windows (XP, Vista, 7)

    Now i have to setup over 50 PCs (same hardware and disk size) with Linux Mint 13. I used the same options as for windows to save the whole HDD of my "Master-PC" to an image and for restoring it on the other machines.
    After reboot the restored machines shows me only a command promt with

    Grub>

    Semms it could not find any bootable Partition?

    After one restore prozess i saw in the promt that clonezilla tryes to restore/install grub 1 but did not find any config file. Strange, because my Mint distribution uses grub 2.0 oO

    I tryed few different options for restore, but nothing works:

    -g auto -e1 auto -e2 -r -j2 -p true restoredisk
    -g auto -e1 auto -e2 -c -r -j2 -p true restoredisk
    -g auto -e1 auto -e2 -c -j2 -j0 -p true restoredisk
    ...

    I didn't work so much with Linux, so its hard for me to find out whats wrong or get a solution, so, please help me :)

     
  • Steven Shiau

    Steven Shiau - 2014-02-14

    Apparently Clonezilla live does not detect the correct version of grub installed on the restored OS.
    Which version of Clonezilla live did you use?

    Steven.

     
  • istoOi

    istoOi - 2014-02-14

    How do i find out which version my clonezilla is? I use it only with PXE with unattended configs/scripts. Is there a command for shell?

    Anyway... i downloaded the latest stable clonezilla version and replaced the filesystem.squashfs and pxe files on my pxe server. Now clonezilla is able to use/restore grub2 from the image file.

     
  • istoOi

    istoOi - 2014-02-14

    Additional Question...

    i use my own script to start the restore prozess and this won't work with the new clonezilla version. Is there a documentation/wiki where i can find informations for that? google gives me nothing :(

    Here the Part of my script. It ends with "Fail to find the Clonezilla image home..." (i think "$ocsroot" was resolved with /home/partimag)

    image=${response}

                        ########################
                        ## Load CZ Enviroment ##
    
                        # Begin of the scripts:
                        # Load DRBL setting and functions
                        DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
    
                        . $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
                        . /etc/drbl/drbl-ocs.conf
                        . $DRBL_SCRIPT_PATH/sbin/ocs-functions
    
                        # load the setting for clonezilla live.
                        [ -e /etc/ocs/ocs-live.conf ] && . /etc/ocs/ocs-live.conf
                        # Load language files. For English, use "en_US.UTF-8". For Traditional Chinese, use "zh_TW.UTF-8"
                        ask_and_load_lang_set en_US.UTF-8
    
                        # The above is almost necessary, it is recommended to include them in your own custom-ocs.
                        # From here, you can write your own scripts.
    
                        # Start Clonezilla
                        if mountpoint $ocsroot &>/dev/null
                        then
                                echo "Clonezilla ready."
                        else
                                [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
                                echo "Fail to find the Clonezilla image home $ocsroot!"
                                echo "Program terminated!"
                                [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
                        exit
                        fi
    
                        ########################
    
                        #restore sda
                        ocs-sr -b -g auto -e2 -batch -r -j2 -k1 -p true restoredisk "${image}" "sda"
    
                        reboot -f
    
     
  • Steven Shiau

    Steven Shiau - 2014-02-24

    OK, Thanks for sharing that!

    Steven.

     

Log in to post a comment.