--- trunk/www/boot-params.html 2010/03/23 10:28:53 37 +++ trunk/www/boot-params.html 2010/05/17 23:45:40 41 @@ -78,8 +78,8 @@

Clonezilla-SysRescCD

Documentation: Boot parameters

-

25/02/2010 - v 3.1.0

-

Last update: 23/03/2010

+

26/03/2010 - v 3.1.0

+

Last update: 18/05/2010

@@ -145,40 +145,52 @@
-

General boot options

- - - -


Hardware, drivers and troubleshooting options

- - - -


Network auto-configuration and remote access

- -
@@ -220,14 +245,17 @@

The following info comes from the page titled The boot parameters for Clonezilla live.

- + + +
Clonezilla live is based on Debian live with clonezilla installed. Therefore there are 2 kinds of boot parameters:
  1. Boot parameters from live-initramfs. You can refer to this manual of live-initramfs.
  2. Boot parameters specially for Clonezilla. All of them are named as "ocs_*", e.g. ocs_live_run, ocs_live_extra_param, ocs_live_batch, ocs_lang.
    • ocs_live_run is the main program to run in Clonezilla live to save or restore. or other command. Available program: ocs-live-general, ocs-live-restore or any command you write. Use the Absolute path in Clonezilla live.
      - e.g. ocs_live_run="ocs-live-general" + e.g. ocs_live_run="ocs-live-general"
      + //NOTE// You might have to use "sudo" command inside your own script, or you can assign it like: ocs_live_run="sudo bash /my-clonezilla"
    • ocs_live_extra_param will be used only when ocs_live_run=ocs-live-restore (not for ocs-live-general or any other), then it will be passed to ocs-sr. Therefore these parameters are actually those of ocs-sr.
      e.g. ocs_live_extra_param="-b -c restoredisk sarge-r5 hda"
    • ocs_live_keymap is for keymap used in Clonezilla live. Man install-keymap for more details.
      @@ -241,7 +269,17 @@
    • ocs_daemonon, ocs_daemonoff, ocs_numlk, ocs_capslk.
      Ex. for the first 2 parameters, ocs_daemonon="ssh", then ssh service will be turned on when booting. For the last 2 parameters, use "on" or "off", e.g. ocs_numlk=on to turn on numberlock when booting.
    • ocs_prerun, ocs_prerun1, ocs_prerun2... is for you to run a shell script before Clonezilla is started. E.g. ocs_prerun="/live/image/myscript.sh". If you have more commands to run, you can assign them in the order: ocs_prerun=..., ocs_prerun1=..., ocs_prerun2=.... If more than 10 parameters, remember to use ocs_prerun01, ocs_prerun02..., ocs_prerun11 to make it in order. -
    • ocs_live_run_tty. This option allows you to specify the tty where $ocs_live_run is run. By default $ocs_live_run is run on /dev/tty1 only. (It was also on /dev/ttyS0 before, but since Clonezilla live >= 1.2.3-22 no more this due to a problem). If you want to use ttyS0, for example, add live-getty and console=ttyS0,38400n81 in the boot parameter. +
    • ocs_live_run_tty. This option allows you to specify the tty where $ocs_live_run is run. By default $ocs_live_run is run on /dev/tty1 only. (It was also on /dev/ttyS0 before, but since Clonezilla live >= 1.2.3-22 no more this due to a problem). If you want to use ttyS0, for example, add live-getty and console=ttyS0,38400n81 in the boot parameter.
      + //NOTE//
      +
        +
      • This parameter was added in Clonezilla live 1.2.3-22 or later. +
      • If "live-getty console=$tty,38400n81" are assigned in the boot parameters, ocs_live_run_tty will honor $tty, even other value is assigned to ocs_live_run_tty in boot parameter. +
      • It's recommended to assign ocs_lang and ocs_live_keymap in the boot parameters too. +
      +
    • ip, this option allows you to specify the network parameters for network card. In Clonezilla live a patched live-initramfs is used, which is different from the original live-initramfs so that you can assign DNS server, too. Its format is: ip=ethernet port,IP address, netmask, gateway, DNS. E.g. If you want to assing eth0 with IP address 10.0.100.1, netmask 255.255.255.0, gateway 10.0.100.254, DNS server 8.8.8.8, you can assign the following in the boot parameter:
      +ip=eth0,10.0.100.1,255.255.255.0,10.0.100.254,8.8.8.8
      +If more than one network card, you can use ":" to separate them, e.g.:
      +ip=eth0,10.0.100.1,255.255.255.0,10.0.100.254,8.8.8.8:eth1,192.168.120.1,255.255.255.0,192.168.120.254,,
    • Besides, "live-netdev" (yes, not ocs_live_netdev) can be used when using PXE booting, you can force to assign the network device to get filesystem.squashfs. This is useful when there are two or more NICs are linked. E.g. live-netdev="eth1" allows you to force the live-initramfs to use eth1 to fetch the root file system filesystem.squashfs.