Menu

Clonezilla Network unreachable/Custom Entry

Help
Alex Gonzo
2020-03-16
2020-04-08
  • Alex Gonzo

    Alex Gonzo - 2020-03-16

    Hey all,

    I have altered my syslinux.cfg file to include

    label Clonezilla live
    MENU DEFAULT
    # MENU HIDE
    MENU LABEL Clonezilla live (Endless 55)
    # MENU PASSWD
    kernel /live/vmlinuz
    append initrd=/live/initrd.img boot=live username=agonzalez config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
    TEXT HELP
    * Boot menu for BIOS machine
    * Clonezilla live version: 2.6.1-25-amd64. (C) 2003-2019, NCHC, Taiwan
    * Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
    ENDTEXT

    And my grub.cfg file

    menuentry "Clonezilla live (Endless 55 inch)"{
    search --set -f /live/vmlinuz
    linux /live/vmlinuz boot=live username=user config components quiet noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
    initrd /live/initrd.img
    }

    When I attempt to mount my samba drive manually I get an error 101, network unreachable. When I attempt to run my entry in the grub I get an error stating there is no such file in /home/partimag/Base-img.

    What am I doing wrong? Any help will be much appreciated

     
  • Alex Gonzo

    Alex Gonzo - 2020-03-17

    I was able to fix my problem by writing a bash script that would mount my samba server for me, but for some reason I am unable to get my clonezilla to automate this process. It seems as if my mount just does not want to work in a ocsprerun option.

    Here is my current isolinux.cfg set up.

    label Clonezilla live
      MENU DEFAULT
      # MENU HIDE
      MENU LABEL Clonezilla live (Option Name)
      # MENU PASSWD
      kernel /live/vmlinuz
      append initrd=/live/initrd.img boot=live username=user config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no ocsprerun="sudo mkdir /media/usb" ocsprerun1="sudo mount /dev/sdb /media/usb" ocsprerun2="sleep 10" ocsprerun3="sudo /media/usb/mount_55.sh"  
      TEXT HELP
      * Boot menu for BIOS machine
      * Clonezilla live version: 2.6.1-25-amd64. (C) 2003-2019, NCHC, Taiwan
      * Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
      ENDTEXT
    

    BASH SCRIPT

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    #!/bin/bash
    echo -e "#########################################################################################\n"
    
    echo "# 1. Network Configuration, Enabling DHCP"
    
    dhclient 
    sleep 10
    
    echo -e "#########################################################################################\n"
    
    echo "# 2. Samba Mount"
    
    mount -t cifs "//10.x.x.x/Images/x/" /home/partimag -o user="xxx",domain=xxx,password="xxx",vers=2.0
    sleep 10
    
    echo -e "#########################################################################################\n"
    
    echo "# 3. Image Configuration"
    
    /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk x-img sda
    
    echo -e "#########################################################################\n"
    
     

    Last edit: Alex Gonzo 2020-03-17
  • Steven Shiau

    Steven Shiau - 2020-04-08

    ocsprerun2="sudo dhclient -v etho0" -> Are you sure the NIC is etho0? Not eth0?

    Steven

     

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.