Menu

How to enable USB to Ethernet adapter prior to Pre-Run Scripts

2014-05-15
2014-09-21
  • Sam Bradbury

    Sam Bradbury - 2014-05-15

    Hi All,

    I am booting via EFI USB with a custom boot parameter script which is working if the machine has an on-board NIC. However alot of machines are omitting an on-board NIC nowadays. If I load Clonezilla (default) the USB to Ethernet adapter works but when I boot a custom script:

    menuentry "Model1"{
    search --set -f /live/vmlinuz
    linux /live/vmlinuz boot=live username=user config quiet noswap edd=on nomodeset noeject locales= ocs_live_run="ocs-sr -batch -g auto -e1 auto -e2 -r -j2 -p true restoredisk Model1 sda"  ocs_prerun01="sleep 1"  ocs_prerun02="sudo mkdir /home/logshare"  ocs_prerun03="mount 172.16.0.10:/home/datalog /home/logshare"  ocs_prerun04="sudo mkdir -p /home/logshare/acer/Model1/"  company_make="acer"  company_model="Model1"  ocs_prerun05="/home/logshare/usbwarning"  ocs_prerun06="/home/logshare/wipeandlog"  ocs_prerun07="mount 172.16.0.9:/home/Win8-1/acer /home/partimag"  ocs_postrun01="/home/logshare/imagename"  ocs_live_extra_param="--skip-prep-ocsroot"  ocs_live_keymap="/usr/share/keymaps/i386/qwerty/uk.kmap.gz"  ocs_live_batch="yes"  ocs_lang="" vga=788  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no toram=filesystem.squashfs
    initrd /live/initrd.img
    

    clonezilla loads then just before the ocs_prerun's would start, the console drops to a debian login prompt. This script boot and works fine if the NIC is on-board. Is there a boot parameter I can add to enable the USB to Ethernet adapter prior to the ocs-prerun's.

    These machine's are uEFI Secure Boot which is why I'm using clonezilla-live-20140114-saucy-amd64.

    Many thanks in advance.

    Sam

     
  • Steven Shiau

    Steven Shiau - 2014-05-17

    "add to enable the USB to Ethernet adapter prior to the ocs-prerun's" -> How do you enable the USB Ethernet adapter in the command line prompt? If you know that, then it should be in the 1st order of ocs_prerun* (ocs_prerun01).

    Steven.

     
  • Sam Bradbury

    Sam Bradbury - 2014-05-19

    Hi Steven,

    The USB to Ethernet issue seems to be irrelevant now. Upon further investigation even by selecting 'Clonezilla Live (default)' from the menu it still wont make it all the way to the Clonezilla GUI. Always drops to the 'trusty login:' prompt.

    I'm now using 'clonezilla-live-20140513-trusty-amd64' with the default boot parameters :

    menuentry "Clonezilla live (To RAM, boot media can be removed later)"{
    search --set -f /live/vmlinuz
    linux /live/vmlinuz boot=live username=user hostname=trusty config quiet union=overlayfs noswap edd=on nomodeset noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch=no video=uvesafb:mode_option=800x600-16 toram=filesystem.squashfs ip= splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no
    initrd /live/initrd.img
    }

    This only seems to happen on Laptop/Tablet hybrid machines. I have attached the boot.log and it seems to mention 'No account with NOPASSWD sudo privilege was found!' not sure if this is relevent.

    Thanks for replying

    Sam

     

    Last edit: Sam Bradbury 2014-05-19
  • Steven Shiau

    Steven Shiau - 2014-05-22

    "'No account with NOPASSWD sudo privilege was found!'" -> it means a live-config service fails. The service is to parse "username=user" then create the account "user".
    Is that possible you can take a video about booting Clonezilla live then post it?
    It would be easier for us to debug.

    Steven.

     
  • Sam Bradbury

    Sam Bradbury - 2014-05-23

    Hi Steven,

    Thanks for reply.

    I've shared a video via Dropbox on your email account steven@nchc.org.tw

    I have tried changing "username=user" to "username=root" and it still drops to the login prompt but now with root@trusty.

    Here are some example models if it helps:
    Acer Aspire V5-122P
    Acer Aspire P3-171
    HP Pavilion 11 x2 PC 11-h100sa
    Lenovo IdeaPad Flex 10
    Lenovo Yoga 2 11
    Toshiba W30Dt-A-100

    All machines are uEFI with touchscreens. Some have no option to go back to a Legacy BIOS (CSM). I have tried switching Secure Boot off but no change.

     
  • Diego Fernandez Speier

    Hi Sam, I am facing the same problem in a Yoga 2 11 of a friend.
    Have you solve the problem? Can you share the solution or still no lucky?
    Thanks in advance
    Diego

     
  • Steven Shiau

    Steven Shiau - 2014-08-29

    So did you try the latest versions of Clonezilla live, including those testing ones:
    http://clonezilla.org/downloads.php
    Maybe that helps.

    Steven.

     
  • David K

    David K - 2014-09-04

    Hi Steve, I believe I am also experiencing a similar problem with this start up error.
    ""'No account with NOPASSWD sudo privilege was found!'" -> it means a live-config service fails. "

    I'm working on a destined Win8 tablet computer. (Panasonic FZ-G1 Toughpad.)
    It exhibits this behavior with every version of AMD64 Trusty I have tried in every boot mode, even legacy bios. The stick works perfectly in a Dell Optiplex elsewhere on my desk. Built with TuxBoot.
    clonezilla-live-20140518-trusty-amd64
    clonezilla-live-20140630-trusty-amd64
    clonezilla-live-20140902-trusty-amd64

    I tried a Debian stable branch and it worked fine, granted with secure boot disabled. This might be related to some behavior in the Ubuntu flavor. I will use this workaround for now.

    We might need to rename the thread.

     

    Last edit: David K 2014-09-04
  • David K

    David K - 2014-09-12

    clonezilla-live-20140910-utopic-amd64 is also giving me the same issue.
    When booting under the “safe” graphic settings, the terminal contains before going to utopic login:
    Live media is in /lib/live/mount/medium
    Updating /etc/ocs/ocs-live.conf based on kernel parameters if found…
    Done!
    No account with NOPASSWD sudo privilege was found!
    Program terminated!
    Trying to arm the wake on LAN for wlan0… wwan0… done!
    Finished Clonezilla live env preparing…

    Still the same problem. I may try to get a Ubuntu or some other live boot distro and see if the problem exists there as well. So far only Debian Clonezilla boots properly on these tablets.

    I should also point out that the fail safe boot option did not start on either this system or my desktop control system. The output complains about not being able to find “IRQ in Bios” (fail -19) then throws startup error -22 and leaves the system in an unresponsive state. Probably a problem with the test release.

     
  • Steven Shiau

    Steven Shiau - 2014-09-21

    I could not reproduce the issue here, therefore it's very difficult for me to fix this.
    I tend to believe this is about hardware/kernel issue, so maybe newer version of Clonezilla live with newer Linux kernel might work. Did you try Clonezilla live 2.2.4-12 which runs Linux 3.16?
    http://clonezilla.org/downloads.php

    Steven.

     

    Last edit: Steven Shiau 2014-09-21

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.