Clonezilla-SysRescCD
Παράμετροι εκκίνησης
08/02/2009 - v 3.1.0

Πνευματικά δικαιώματα: © 2007-2009, Σπύρος Γεωργαράς <sng@hellug.gr>Μία σελίδα
Τελευταία ενημέρωση: 19/12/2009Εκτυπώσιμη μορφή
 
Επιλογή γλώσσας: Αγγλικά ΕλληνικάΡοή νέων RSS
 

Εισαγωγή [^]

Η εκκίνηση ενός συστήματος linux έχει να κάνει κυρίως με τη φόρτωση ενός kernel (πυρήνα), που είναι στην πραγματικότητα το λειτουργικό σύστημα. Βέβαια αυτό δεν είναι απόλυτα σωστό, ούτε και είναι το μόνο που συμβαίνει κατά τη φάση της εκκίνησης, αλλά δεν είναι πρόθεσή μου να την παρουσιάσω εδώ.

Το kernel φορτώνεται από το Isolinux (το διαχειριστή εκκίνησης του CD), το οποίο μπορεί να περάσει παραμέτρους σε αυτό, μέσω του αρχείου ρυθμίσεών του, το isolinux.cfg.

Αυτές οι παράμετροι, που ονομάζονται παράμετροι εκκίνησης, καθορίζονται από το ίδιο το kernel, και μπορούν να τροποποιήσουν σημαντικά τη συμπεριφορά του. Στη δική μας περίπτωση, το κάθε CD (το SystemRescueCD και το Clonezilla Live) δέχεται ένα διαφορετικό σύνολο παραμέτρων, επειδή βασίζονται στο gentoo και το debian, αντίστοιχα.

Όταν βρίσκεστε στην αρχική οθόνη του Clonezilla-SysRescCD, μπορείτε να δείτε τις παραμέτρους εκκίνησης πατώντας TAB. Τότε θα σας παρουσιαστούν και θα μπορέσετε να προσθέσετε ή να αφαιρέσετε όποιες θέλετε. Πρέπει να είστε πολύ προσεκτικοί να μην αφαιρέσετε ή αλλάξετε τις παραμέτρους που έχουν σχέση με το ίδιο το CD, αφού αλλάζοντάς τις μπορεί να το καταστήσει μη εκκινήσιμο. Όταν τελειώσετε, πατήστε ENTER για να γίνει η εκκίνηση.

Παράμετροι εκκίνησης του SystemRescueCD [^]

Οι παρακάτω πληροφορίες αναφέρονται στο SystemRescueCD v. 1.2.0. Αν
θέλετε να λάβετε πληροφορίες για κάποια νεότερη έκδοση του SystemRescueCD
ανατρέξτε στην σελίδα "Sysresccd-manual-en Booting the CD-ROM"

Μια τυπική καταχώρηση του isolinux για το sysresccd είναι:

kernel rescuecd
append initrd=initram.igz video=ofonly

Το kernel που θα φορτωθεί είναι το rescuecd, και οτιδήποτε μετά τη λέξη append είναι παράμετρος εκκίνησης.

Τα διαθέσιμα kernel (boot images) είναι:


Οι παράμετροι εκκίνησης που μπορείτε να χρησιμοποιήσετε είναι:

General boot options


Hardware, drivers and troubleshooting options


Network auto-configuration and remote access


Options provided by the autorun

Παράμετροι εκκίνησης του Clonezilla Live [^]

Οι παρακάτω πληροφορίες αναφέρονται στο Clonezilla Live v. 1.2.2-14
Αν θέλετε να λάβετε πληροφορίες για κάποια νεότερη έκδοση του Clonezilla Live
ανατρέξτε στην σελίδα "The boot parameters for Clonezilla live"

Μια τυπική καταχώρηση του isolinux για το Clonezilla Live είναι:

kernel /live/vmlinuz1
append initrd=/live/initrd1.img boot=live union=aufs ocs_live_run="ocs-live-general"
ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=791 nolocales

Το kernel που θα φορτωθεί είναι το vmlinuz, και οτιδήποτε μετά τη λέξη append είναι παράμετρος εκκίνησης.

Παρακάτω εμφανίζονται τα περιεχόμενα της σελίδας 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"
    • 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.
      e.g. ocs_live_keymap="NONE" (won't change the default layout)
      ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" (French keyboard)
    • batch mode or not (yes/no), if no, will run interactively.
      e.g. ocs_live_batch="no"
    • ocs_lang is the language used in Clonezilla live. Available value: en_US.UTF-8, zh_TW.UTF-8... (see $DRBL_SCRIPT_PATH/lang/bash/) e.g. ocs_lang="en_US.UTF-8"
    • ocs_debug (or ocs-debug) is for you to enter command line prompt before any clonezilla-related action is run. This is easier for you to debug.
    • 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_pre_run is for you to run a shell script before Clonezilla is started. E.g. ocs_pre_run="/live/image/myscript.sh"

With the above options, we have the following examples:
  1. A PXE config example for you to boot Clonezilla live via PXE, and ssh service is on, the password of account "user" is assigned:
    ----------------------------------------
    label Clonezilla Live
    MENU LABEL Clonezilla Live
    MENU DEFAULT
    kernel vmlinuz1
    append initrd=initrd1.img boot=live union=aufs noswap noprompt vga=788 fetch=tftp://192.168.120.254/filesystem.squashfs usercrypted=bkuQxLqLRuDW6 ocs_numlk="on" ocs_daemonon="ssh"
    ----------------------------------------
    The usercrypted password is created by:
    echo YOUR_PASSWORD | mkpasswd -s
    ("mkpasswd" is from package "whois" in Debian or Ubuntu. Check your GNU/Linux to see which package provides this command if you are not using Debian or Ubuntu. Replace YOUR_PASSWORD with your plain text password, and remember do not put any " in the boot parameters of live-initramfs (while it's ok for those ocs_* boot parameters), i.e. do NOT use something like usercrypted="bkuQxLqLRuDW6").
    //NOTE// If you do not assign salt to mkpasswd, the encrypted password will not be the same every time you create it.
    For more about usercrypted discussion, please check the here.

  2. How to put your own binary driver in Clonezilla live without modifying /live/filesystem.squashfs:
    • Boot clonezilla live
    • Become root by running "sudo su -"
    • Copy the dir lsi, which contains a precompiled kernel module matching the running kernel in Clonezilla live and a script to run it, to a working dir, e.g.:
      cp -r /live/image/lsi /home/partimag
    • cd /home/partimag
    • /opt/drbl/sbin/ocs-live-dev -c -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
    • /opt/drbl/sbin/ocs-iso -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
    • ///NOTE/// In this example, the 2 files in dir lsi are: megasr.ko (the binary driver) and prep-lsi.sh. The contents of prep-lsi.sh:
      ------------------------
      #!/bin/bash
      cp -f /live/image/lsi/megasr.ko /lib/modules/`uname -r`/kernel/drivers/block/
      chown root.root /lib/modules/`uname -r`/kernel/drivers/block/megasr.ko
      depmod -a modprobe megasr
      sleep 1
      ------------------------
      
  3. To put your customized script with a PXE version of Clonezilla live (You have to use Clonezilla live version 1.2.2-2 or later):
    In this example, we assume (1) The IP address of your PXE server is 192.168.120.254, (2) the customized script (custom-ocs-2) is put on your PXE server's tftpd root dir (E.g. On DRBL server, the path is /tftpboot/nbi_img/. It might be different in your case if you are not use DRBL server as a PXE server).
    Therefor your pxelinux.cfg/default file is like:

    ------------------------
    label Clonezilla Live
    MENU DEFAULT
    # MENU HIDE
    MENU LABEL Clonezilla Live
    # MENU PASSWD
    kernel vmlinuz1
    append initrd=initrd1.img boot=live union=aufs noswap noprompt vga=788 ip=frommedia fetch=tftp://192.168.120.254/filesystem.squashfs ocs_prerun="busybox tftp -g -b 10240 -r custom-ocs-2 -l /tmp/custom-ocs-2 192.168.120.254" ocs_live_run="bash /tmp/custom-ocs-2" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="en_US.UTF-8" nolocales
    TEXT HELP
    Boot Clonezilla live via network
    ENDTEXT

    ------------------------
    The content of custom-ocs-2 can be like:

    ------------------------
    #!/bin/bash
    . /opt/drbl/sbin/drbl-conf-functions
    . /opt/drbl/sbin/ocs-functions
    . /etc/ocs/ocs-live.conf
    
    # Load language file
    ask_and_load_lang_set en_US.UTF-8
    
    # 1. Mount the clonezilla image home.
    # Types: local_dev, ssh_server, samba_server, nfs_server
    prep-ocsroot -t nfs_server
    
    # 2. Restore the image
    if mountpoint /home/partimag/ &>/dev/null; then
      ocs-sr -l en_US.UTF-8 -c -p choose restoredisk ask_user ask_user
    else
      [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
      echo "Fail to find the Clonezilla image home /home/partimag!"
      echo "Program terminated!"
      [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
    fi
    ------------------------
    

Εγχειρίδιο του live-initramfs [^]

Παρακάτω παρατίθεται το εγχειρίδιο του live-initramfs

live-initramfs(7)
=================

Name
----
live-initramfs - Debian Live initramfs hook

Synopsis
--------
BOOT=live

as kernel parameter at boot prompt.

Description
-----------

live-initramfs is a hook for the initramfs-tools, used to generate a initramfs
capable to boot live systems, such as those created by *live-helper*(7).
This includes the Debian Live isos, netboot tarballs, and usb stick images.

At boot time it will look for a (read-only) media containing a "/live"
directory where a root filesystems (often a compressed filesystem image like
squashfs) is stored. If found, it will create a writable environment, using
aufs, for Debian like systems to boot from.

You probably do not want to install this package onto a non-live system,
although it will do no harm.

live-initramfs is a fork of link:http://packages.ubuntu.com/casper/[casper].
casper was originally written by Tollef Fog Heen <tfheen@canonical.com>
and Matt Zimmerman <mdz@canonical.com>.

Boot options
------------

Here is the complete list of recognized boot parameters by live-initramfs.

 access=*ACCESS*::

Set the accessibility level for physically or visually impared users. ACCESS
must be one of v1, v2, v3, m1, or m2. v1=lesser visual impairment, v2=moderate
visual impairment, v3=blindness, m1=minor motor difficulties, m2=moderate motor
difficulties.

 console=*TTY,SPEED*::

Set the default console to be used with the "live-getty" option. Example:
"console=ttyS0,115200"

 debug::

Makes initramfs boot process more verbose.

 fetch=*URL*::

Another form of netboot by downloading a squashfs image from a given url,
copying to ram and booting it.

 hostname=*HOSTNAME*, username=*USER*, userfullname=*USERFULLNAME*::

Those parameters lets you override values read from the config file.

 ignore_uuid

Do not check that any UUID embedded in the initramfs matches the discovered
medium. live-initramfs may be told to generate a UUID by setting
LIVE_GENERATE_UUID=1 when building the initramfs.

 integrity-check::

If specified, an MD5 sum is calculated on the live media during boot and
compared to the value found in md5sum.txt found in the root directory of the
live media.

 ip=**[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]***::

Let you specify the name(s) and the options of the interface(s) that should be
configured at boot time. Do not specify this if you want to use dhcp (default).
It will be changed in a future release to mimick official kernel boot param
specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).

 ip[=**frommedia**]::

If this variable is set, dhcp and static configuration are just skipped and the
system will use the (must be) media-preconfigured /etc/network/interfaces
instead.

 {keyb|kbd-chooser/method}=**KEYBOARD**, {klayout|console-setup/layoutcode}=**LAYOUT**, {kvariant|console-setup/variantcode}=**VARIANT**, {kmodel|console-setup/modelcode}=**CODE**, koptions=**OPTIONS**::

Configure the running keyboard as specified, if this one misses live-initramfs
behaves as if "keyb=us" was specified. It will be interfered from "locale=" if
locale is only 2 lowecase letters as a special case. You could also specify
console layout, variant, code, and options (no defaults).

 live-getty::

This changes the auto-login on virtual terminals to use the (experimental)
live-getty code. With this option set the standard kernel argument "console=" is
parsed and if a serial console is specified then live-getty is used to autologin
on the serial console.

 {live-media|bootfrom}=**DEVICE**::

If you specify one of this two equivalent forms, live-initramfs will first try
to find this device for the "/live" directory where the read-only root
filesystem should reside. If it did not find something usable, the normal scan
for block devices is performed.

 {live-media-encryption|encryption}=**TYPE**::

live-initramfs will mount the encrypted rootfs TYPE, asking the passphrase,
useful to build paranoid live systems :-). TYPE supported so far are "aes" for
loop-aes encryption type.

 live-media-offset=**BYTES**::

This way you could tell live-initramfs that your image starts at offset BYTES in
the above specified or autodiscovered device, this could be useful to hide the
Debian Live iso or image inside another iso or image, to create "clean" images.

 live-media-path=**PATH**::

Sets the path to the live filesystem on the medium. By default, it is set to
'/live' and you should not change that unless you have customized your media
accordingly.

 live-media-timeout=**SECONDS**::

Set the timeout in seconds for the device specified by "live-media=" to become
ready before giving up.

 {locale|debian-installer/locale}=**LOCALE**::

Configure the running locale as specified, if not present the live-media rootfs
configured locale will be used and if also this one misses live-initramfs behave
as "locale=en_US.UTF-8" was specified. If only 2 lowercase letter are specified
(like "it"), the "maybe wanted" locale is generated (like en:EN.UTF-8), in this
case if also "keyb=" is unspecified is set with those 2 lowercase letters
(keyb=us). Beside that facility, only UTF8 locales are supported by
live-initramfs.

 module=**NAME**::

Instead of using the default optional file "filesystem.module" (see below)
another file could be specified without the extension ".module"; it should be
placed on "/live" directory of the live medium.

 netboot[=**nfs**|**cifs**]::

This tells live-initramfs to perform a network mount. The parameter "nfsroot="
(with optional "nfsopts="), should specify where is the location of the root
filesystem.  With no args, will try cifs first, and if it fails nfs.

 nfsopts=::

This lets you specify custom nfs options.

 noautologin::

This parameter disables the automatic terminal login only, not touching gdk/kdm.

 noxautologin::

This parameter disables the automatic login of gdm/kdm only, not touching
terminals.

 nofastboot::

This parameter disables the default disabling of filesystem checks in
/etc/fstab. If you have static filesystems on your harddisk and you want them to
be checked at boot time, use this parameter, otherwise they are skipped.

 nopersistent::

disables the "persistent" feature, useful if the bootloader (like syslinux) has
been installed with persistent enabled.

 noprompt

Do not prompt to eject the CD on reboot.

 nosudo::

This parameter disables the automatic configuration of sudo.

 swapon::

This parameter enables usage of local swap partitions.

 nouser::

This parameter disables the creation of the default user completely.

 noxautoconfig::

This parameter disables Xorg auto-reconfiguration at boot time. This is valuable
if you either do the detection on your own, or, if you want to ship a custom,
premade xorg.conf in your live system.

 persistent[=nofiles]::

live-initramfs will look for persistent and snapshot partitions or files labeled
"live-rw", "home-rw", and files called "live-sn*", "home-sn*" and will try to,
in order: mount as /cow the first, mount the second in /home, and just copy the
contents of the latter in appropriate locations (snapshots). Snapshots will be
tried to be updated on reboot/shutdown. Look at live-snapshot(1) for more
informations. If "nofiles" is specified, only filesystems with matching labels
will be searched; no filesystems will be traversed looking for archives or image
files. This results in shorter boot times.

 {preseed/file|file}=**FILE**::

A path to a file present on the rootfs could be used to preseed debconf
database.

 package/question=**VALUE**::

All debian installed packages could be preseeded from command-line that way,
beware of blanks spaces, they will interfere with parsing, use a preseed file in
this case.

 quickreboot::

This option causes live-initramfs to reboot without attempting to eject the
media and without asking the user to remove the boot media.

 showmounts::

This parameter will make live-initramfs to show on "/" the ro filesystems
(mostly compressed) on "/live". This is not enabled by default because could
lead to problems by applications like "mono" which store binary paths on
installation.

 textonly

Start up to text-mode shell prompts, disabling the graphical user interface.

 timezone=**TIMEZONE**::

By default, timezone is set to UTC. Using the timezone parameter, you can set it
to your local zone, e.g. Europe/Zurich.

 todisk=**DEVICE**::

Adding this parameter, live-initramfs will try to copy the entire read-only
media to the specified device before mounting the root filesystem. It probably
needs a lot of free space. Subsequent boots should then skip this step and just
specify the "live-media=DEVICE" boot parameter with the same DEVICE used this
time.

 toram::

Adding this parameter, live-initramfs will try to copy the whole read-only media
to the computer's RAM before mounting the root filesystem. This could need a lot
of ram, according to the space used by the read-only media.

 union=**aufs**|**unionfs**::

By default, live-initramfs uses aufs. With this parameter, you can switch to
unionfs.

 utc=**yes**|**no**::

By default, Debian systems do assume that the hardware clock is set to UTC. You
can change or explicitly set it with this parameter.

 xdebconf::

Uses xdebconfigurator, if present on the rootfs, to configure X instead of the
standard procedure (experimental).

 xvideomode=**RESOLUTION**::

Doesn't do xorg autodetection, but enforces a given resolution.

Files
-----

 /etc/live.conf

Some variables can be configured via this config file (inside the live system).

  /live/filesystem.module

This optional file (inside the live media) contains a list of white-space or
carriage-return-separated file names corresponding to disk images in the "/live"
directory. If this file exists, only images listed here will be merged into the
root aufs, and they will be loaded in the order listed here. The first entry
in this file will be the "lowest" point in the aufs, and the last file in
this list will be on the "top" of the aufs, directly below /cow.  Without
this file, any images in the "/live" directory are loaded in alphanumeric order.

/etc/live-persistence.binds

This optional file (which resides in the rootfs system, not in the live media)
is used as a list of directories which not need be persistent: ie. their
content does not need to survive reboots when using the persistence features.

This saves expensive writes and speeds up operations on volatile data such as
web caches and temporary files (like e.g. /tmp and .mozilla) which are
regenerated each time. This is achieved by bind mounting each listed directory
with a tmpfs on the original path.


See also
--------

live-snapshot(1), initramfs-tools(8), live-helper(7), live-initscripts(7),
live-webhelper(7)

Bugs
----

Report bugs against live-initramfs
link:http://packages.qa.debian.org/live-initramfs[http://packages.qa.debian.org/live-initramfs].

Homepage
--------

More information about the Debian Live project can be found at
link:http://debian-live.alioth.debian.org/[http://debian-live.alioth.debian.org/] and
link:http://wiki.debian.org/DebianLive/[http://wiki.debian.org/DebianLive/].

Authors
-------

live-initramfs is maintained by Daniel Baumann <daniel@debian.org>
for the Debian project.

live-initramfs is a fork of link:http://packages.ubuntu.com/casper/[casper].
casper was originally written by Tollef Fog Heen <tfheen@canonical.com>
and Matt Zimmerman <mdz@canonical.com>.

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

Valid HTML 4.01 Transitional Valid CSS! [Valid RSS]

[Valid RSS]   Valid CSS!  Valid HTML 4.01 Transitional

[Valid RSS]   Valid CSS!  Valid HTML 4.01 Transitional

[Valid RSS]   Valid CSS!  Valid HTML 4.01 Transitional