/[clonezilla-sysresccd]/tags/2.6.0/boot-params.html
ViewVC logotype

Contents of /tags/2.6.0/boot-params.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (show annotations)
Mon Mar 22 00:17:03 2010 UTC (14 years ago) by sng
File MIME type: text/html
File size: 41474 byte(s)
tagging v. 2.6.0 (for completeness)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">
5 <link rel="shortcut icon" href="favicon.ico">
6 <title>Clonezilla-SysRescCD - Boot parameters</title>
7 <style type="text/css">
8 body { font-family: 'sans serif'; background : url(null) fixed no-repeat; background-color: White; }
9 H1,H2,H3,H4{color: #990000; text-align: left;}
10 H2{margin-top: 2em;}
11 H3{margin-top: 1.5em}
12 H4{margin-top: 1em}
13 li { font-family: 'sans serif'; margin-top: 1em;}
14 a{text-decoration: none;}
15 a:hover{text-decoration: underline;}
16 .hidden{ display:none; }
17 p,td,table,tr,li { font-family: 'sans serif'; margin-left: 15pt;}
18 .nav{margin-left: 0pt;}
19 .newcode{font-family : "Courier New", Courier, monospace; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;}
20 .note{margin-top: 30pt; margin-bottom: 30pt; text-align: left; background-color: #FFEFEF; border: double 3px; border-color: #FFD5D5;}
21 hr{color: Black; background-color: Black; height: 1px; border: none;}
22 .otherpage{margin-left: 15pt;border: solid 1px darkgoldenrod; padding: 20pt; background-color: lemonchiffon;}
23 IMG {display: block; margin-left: auto; margin-right: auto }
24 </style>
25 <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
26 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
27
28 </head>
29 <body style="margin-left: 40pt; margin-right: 40pt;">
30 <a name="boot-top"></a>
31 <H1> Clonezilla-SysRescCD<br>Boot parameters<br>08/02/2009 - v 3.1.0</H1>
32 <!--site-only--><table border="0" width="95%" style="margin-left: auto;margin-right: auto;"><tr><td><font size="-1">Copyright: &#169; 2007-2009, <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.1.0">Spiros Georgaras &lt;sng@hellug.gr&gt;</a></font></td><td align="right"><font size="-1"><a href="onepage.php" target="_blank" title="View the whole site in one big page">Single&nbsp;page</a></font></td></tr><tr><td><font size="-1">Last update: 23/12/2009</font></td><td align="right"><font size="-1"><a href="printable.php" target="_blank" title="View a printable version of this page">Printable&nbsp;version</a></font></td></tr><tr><td><font size="-1"></font></td><td align="right"><font size="-1"></font></td></tr><tr><td><font size="-1">&nbsp;</font></td><td align="right"><font size="-1"></font></td></tr><tr><td><!-- <font size="-1">Select language: <img src="en.png" border="0" width="21" height="14" alt="English">&nbsp;<a href=""><img src="el.png" border="0" width="21" height="14" alt="Greek"></a></font> --></td><td align="right"><font size="-1"><a href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss" title="RSS news feed"><img src="rss-orange-11.png" border="0" width="30" height="14" alt="RSS news feed"></a></font></td></tr><tr><td><font size="-1">&nbsp;</font></td><td align="right"><font size="-1"></font></td></tr></table><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="usb.html">Previous</a></td> <td width="34%" align="center"><a href="index.html">Contents</a></td> <td width="33%" align="right"><a href="clonezilla.html">Next</a></td> </tr></table><hr style="margin: 0;"><!--end-site-only-->
33
34
35 <!-- Intro -->
36
37 <H2 style="margin-top: 1em;"><a name="boot-intro"></a>Intro <span class="hideprint">[<a href="#boot-top" title="go to top of the page">^</a>]</span></H2>
38 <p>Booting a linux system means loading a kernel, which is actually the operating system. Well, this is not exactly true, and it is not the only thing that happens during boot up phase, but it is not my intension to explain it here.
39 <br><br>
40 The kernel is loaded by Isolinux (the CD boot manager), which is able to pass a number of parameters to it, through its configuration file <b>isolinux.cfg</b>.
41 <br><br>
42 These parameters, called boot parameters, are documented by the kernel itself, and can differentiate its behavior dramatically. In our case, each CD (SystemRescueCD and Clonezilla Live) accept a different set of parameters, because they are based on <a href="http://www.gentoo.org/" target="_blank">gentoo</a> and <a href="http://www.debian.org/" target="_blank">debian</a>, respectively.
43 <br><br>
44 While in the splash screen of <b>Clonezilla-SysRescCD</b>, you can edit the boot parameters by pressing TAB. They will be presented to you, and you can add or remove what you want. You must be careful not to change or remove the parameters that are dedicated to the CD itself, as altering them will certainty make it unbootable. When you are done, just press ENTER to boot.
45 </p>
46
47
48 <!-- sysresccd -->
49 <H2><a name="sysresccd"></a>SystemRescueCD boot parameters <span class="hideprint">[<a href="#boot-top" title="go to top of the page">^</a>]</span></H2>
50 <!-- note -->
51 <div align="center"><table class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="info.png"></td><td>
52 The following info applies to <b>SystemRescueCD v. 1.3.3</b>. In case<br>
53 you need to get info for a more recent version of <b>SystemRescueCD</b><br>
54 please see the page "<a href="http://www.sysresccd.org/Sysresccd-manual-en_Booting_the_CD-ROM" target="_blank">Sysresccd-manual-en Booting the CD-ROM</a>"
55 </td></tr></table></div>
56 <p>A typical sysresccd isolinux entry is:</p>
57
58 <p class="newcode">kernel rescuecd<br>
59 append initrd=initram.igz video=ofonly</p>
60 <!--empty-line-->
61 <p>The kernel used is <b>rescuecd</b>, and anything after the word <b>append</b> is a boot parameter.<br><br>
62 <!--empty-line-->
63 Available kernels (boot images):</p>
64
65 <ul class="otherpage" style="padding: 0px 10px 20px 40px">
66 <li><b>rescuecd</b> This is the default choice for 32bits systems, with Framebuffer disabled, best choice.</li>
67 <li><b>altker32</b> This is an alternative kernel for 32bits systems. Boot with this kernel in case you have problems with rescuecd. altker32 was named vmlinuz2 in versions prior to SystemRescueCd-1.0.0.</li>
68 <li><b>rescue64</b> This is the default 64 bits kernel. Use it if you want to chroot to a 64bits linux system installed on your hard disk, or if you have to run 64 bits programs. This kernel is able to boot SystemRescueCd from the cdrom with 32bits programs, and it required a processor with 64bits instructions (amd64 / em64t).</li>
69 <li><b>altker64</b> This is an alternative kernel for 64bits systems. Boot with this kernel in case you have problems with rescue64. Only available from SystemRescueCd-1.0.0 and newer.</li>
70 </ul>
71
72
73 <p><br>The boot parameters you can use are:</p>
74
75
76 <div class="otherpage">
77 <p><b>General boot options</b></p>
78
79 <ul><li><b>setkmap=xx</b>: if you don't want to be asked for the keymap, you can choose which keymap to load automatically. Replace <code>xx</code> with your keymap (for example: <code>setkmap=de</code> for german keyboards)
80 </li><li><b>docache</b>: this option is very useful if you need to insert another disc in the CD drive after booting. The CD-ROM will be fully loaded into memory, and you will be able to remove the disc from the drive. The <code>docache</code> option requires 400MB of memory if you want to cache everything (including the <code>bootdisks</code> and <code>isolinux</code> directories). You can add the <code>lowmem</code> option if you have less that 400MB of memory of to prevent these directories to be copied into memory.
81 </li><li><b>root=xxx</b>: the <a href="http://www.sysresccd.org/news/2008/06/05/use-systemrescuecd-to-boot-a-linux-os-from-the-hard-disk/" class="external text" title="http://www.sysresccd.org/news/2008/06/05/use-systemrescuecd-to-boot-a-linux-os-from-the-hard-disk/" rel="nofollow">root=&lt;device&gt; option</a> lets you boot an existing linux system. For example, if you have a linux gentoo installed on <code>/dev/sda6</code>, you can type <code>rescuecd root=/dev/sda6</code> and Gentoo Linux will be started instead of the system that is on the CD-ROM. Keep in mind that you must use a 64bits kernel if your system is made of 64bits programs. For instance, you can boot a 64bits linux system installed on /dev/sda6 with <code>rescue64 root=/dev/sda6</code>. From SystemRescueCd-1.0.4, this option works with LVM disks, so you can write something like <code>rescuecd root=/dev/VolGroup00/LogVol00</code>. SystemRescueCd-1.0.4 and newer versions also supports <code>root=auto</code>, that will scan all the block devices of the computer to find a linux system. The first linux system found on the disks will be started. So with <code>root=auto</code> let you start the system installed from the CD-ROM in case you have problem with your boot loader or with your kernel for instance. You can have <a href="http://www.sysresccd.org/news/2008/06/05/use-systemrescuecd-to-boot-a-linux-os-from-the-hard-disk/" class="external text" title="http://www.sysresccd.org/news/2008/06/05/use-systemrescuecd-to-boot-a-linux-os-from-the-hard-disk/" rel="nofollow">more details</a> about that option.
82 </li><li><b>initscript=service:action</b>: This options allows you to automatically start/stop a service at boot time. For instance if you need the samba service to be started, you can boot with the following option: <code>initscript=samba:start</code>. This does the same thing as <code>/etc/init.d/samba start</code>. You can use this option several times with different services. All the action that are supported by an initscript can be used. This option is available with SystemRescueCd-1.0.2 and newer.
83 </li><li><b>backstore=xxx</b>: SystemRescueCd-1.1.x comes with support for the <a href="http://www.sysresccd.org/news/2008/06/29/creating-a-backing-store-to-keep-your-modifications-in-sysresccd/" class="external text" title="http://www.sysresccd.org/news/2008/06/29/creating-a-backing-store-to-keep-your-modifications-in-sysresccd/" rel="nofollow">backing-stores</a>. Basically, a backing-store is a loopback filesystem which saves all the changes you can make in SystemRescueCd when you use it. In other words it allows you to save all the files which changes in SystemRescueCd while you use it, so that you keep these changes the next time you boot it. By default, sysresccd automatically scan all your removable devices (eg: usb sticks) at boot time and uses the first backing-store it finds if there is one. A backing-store is not mandatory and it the scan fails it will just store the files which change in memory. To disable the disks scan at boot time you can specify <code>backstore=off</code> on the boot command line. If you want to save your backing-store file on an harddisk, you will have to boot with <code>backstore=alldev</code> so that it scans all devices not just removable devices. The default place for backing-stores file is any file named <code>sysrcd.bs</code> located at the root of a disk which is often an USB key. You can change the path by using an option such as <code>backstore=/sysrcd/mybackstore.bs</code> and then sysresccd will try to find a file named <code>mybackstore.bs</code> located in <code>/sysrcd</code> in any block-device (partition, USB-stick, ...). You can find more information about on the page about <a href="http://www.sysresccd.org/news/2008/06/29/creating-a-backing-store-to-keep-your-modifications-in-sysresccd/" class="external text" title="http://www.sysresccd.org/news/2008/06/29/creating-a-backing-store-to-keep-your-modifications-in-sysresccd/" rel="nofollow">backing-stores</a>.
84 </li></ul>
85
86 <p><b><BR>Hardware, drivers and troubleshooting options</b></p>
87
88 <ul><li><b>nonet</b>: this will disable the network auto detection at startup
89 </li><li><b>scandelay=x</b>: pauses x seconds during the startup to allow slow devices to initialize. This is required when you boot an usb device. A delay of only few seconds should be enough.
90 </li><li><b>doxdetect</b>: Since version 0.3.5 the auto-configuration is done in X.Org itself, and then mkxf86config is disabled by default. This option forces the system to run the mkxf86config startup script to run the hardware auto-detection from this script. Use this option if you have problems with the graphical environment configuration. This option replaces the option <code>noxdetect</code> that was useful in previous versions.
91 </li><li><b>nodetect</b>: prevents the generic hardware auto-detection. Use this option if you have problems with the hardware auto-detection.
92 </li><li><b>doload=xxx</b>: forces to load one/several modules at startup (example: <code>doload=3c59x</code>)
93 </li><li><b>noload=xxx</b>: prevents the system to load one/several modules at startup (example: <code>noload=3c59x</code>). Use this option if you have a problem when the system loads a particular module at boot time.
94 </li><li><b>dostartx</b>: This option will force the system to load the X.Org graphical environment at boot time. You won't have to type <code>startx</code> by hand to get it.
95 </li><li><b>forcevesa</b>: Forces X.Org to work with the safe vesa driver instead of the best video driver detected for your video card. Use this option if you cannot get the graphical environment working with the default options.
96 </li><li><b>forcevesa=xxx</b>: The <code>startx</code> command will load the <code>Xvesa</code> server instead of <code>Xorg</code>, and Xvesa will use the screen resolution given as parameter (eg: <code>1024x768</code>, <code>1280x1024x32</code>). The <code>forcevesa</code> option can take a parameter from SystemRescueCd-1.0.0 and more recent.
97 </li><li><b>all-generic-ide</b>: In case of problems related to your hard disk, try to enable this option (eg <code>rescuecd all-generic-ide</code>)
98 </li><li><b>acpi-off</b> / <b>noapic</b> / <b>irqpool</b>: use these options if you have any problem when the kernel boots: if it hangs on a driver or if it crashes, ...
99 </li><li><b>dodebug</b>: Enables verbose messages in the linuxrc script.
100 </li><li><b>lowmem</b>: Prevents non critical things to be loaded into memory (like the sshd and nfsd services)
101 </li><li><b>skipmount=/dev/xxx</b>: The system mounts all the storage devices at boot time to find the sysrcd.dat file. You may not want it to mount a device, for instance if your hard disk is broken because it would crash the system. You can just boot with <code>skipmount=/dev/sda1 skipmount=/dev/sda2</code> if you want SystemRescueCd to ignore these two partitions. This boot option requires SystemRescueCd-1.0.1 or more recent.
102 </li><li><b>nodmraid</b>: Disable dmraid, which is the program that drives RAID disks based on cheap RAID controller built-in motherboards.
103 </li><li><b>nomdadm</b>: Disable mdadm, which is the program that drives software RAID.
104 </li></ul>
105
106 <p><b><BR>Network auto-configuration and remote access</b></p>
107
108 <ul><li><b>dodhcp</b>: Use <code>dodhcp</code> if you have a DHCP server on your network and you want the system to get a dynamic IP address at boot time.
109 </li><li><b>ethx=ipaddr/cidr</b>: Sets the static IP address of all the ethernet interfaces found on the system. The <code>/cidr</code> extension is optional. For instance, if you use option <code>ethx=192.168.0.1</code> on a machine with two ethernet adapters, both <code>eth0</code> and <code>eth1</code> will be configured with <code>192.168.0.1</code>. You can also write something like <code>ethx=10.0.0.1/24</code> (using the cidr notation) if you don't use the default netmask.
110 </li><li><b>eth0=ipaddr/cidr</b>: This option is similar to <code>ethx=ipaddr/cidr</code> but it configures only one interface at a time. Of course, you can use <a href="http://www.sysresccd.org/news/2008/04/13/new-boot-options-for-advanced-ethernet-ip-configuration/" class="external text" title="http://www.sysresccd.org/news/2008/04/13/new-boot-options-for-advanced-ethernet-ip-configuration/" rel="nofollow">the eth0=ipaddr/cidr option</a> it for all the ethernet interfaces, not just eth0. For instance if you want to configure the network on a server that has two interfaces, you can write something like this: <code>eth0=192.168.10.1/24 eth1=192.168.20.1</code>. This option requires SystemRescueCd-1.0.2 or newer.
111 </li><li><b>dns=ipaddr</b>: Sets the static IP address of the DNS nameserver you want to use to resolve the names. For instance <code>dns=192.168.0.254</code> means that you want to use <code>192.168.0.254</code> as the DNS server.
112 </li><li><b>gateway=ipaddr</b>: Sets the static IP address of the default route on your network. For instance <code>gateway=192.168.0.254</code> means that the computer can connect to a computer outside of the local network via <code>192.168.0.254</code>.
113 </li><li><b>rootpass=123456</b>: Sets the root password of the system running on the livecd to <code>1234</code>. That way you can connect from the network and ssh on the livecd and give <code>123456</code> password as the root password.
114 </li><li><b>vncserver=x:123456</b>: The <a href="http://www.sysresccd.org/news/2008/04/12/use-systemrescuecd-remotely-with-vnc-server/" class="external text" title="http://www.sysresccd.org/news/2008/04/12/use-systemrescuecd-remotely-with-vnc-server/" rel="nofollow">vncserver boot option</a> has been introduced in SystemRescueCd-1.0.2. This options forces the system to configure the VNC-server and to start it automatically at boot time. You have to replace <code>x</code> with the number of displays you want, and <code>123456</code> with your password The password must be between 5 and 8 characters, else the boot option will be ignored. In other words the <code>vncserver=2:MyPaSsWd</code> option will give you access to two displays (display=1 on tcp/5901 and display=2 on tcp/5902). Display 0 is reserved for X.Org since SystemRescueCd-1.1.0.
115 </li><li><b>nameif=xxx</b>: You can can <a href="http://www.sysresccd.org/news/2008/06/28/option-to-define-the-name-of-a-network-interface-using-the-mac-address/" class="external text" title="http://www.sysresccd.org/news/2008/06/28/option-to-define-the-name-of-a-network-interface-using-the-mac-address/" rel="nofollow">specify what interface name to give</a> to a particular interface using the mac address. You need SystemRescueCd-1.1.0 or newer to do that. Here is how you can specify which interface is using which mac address on a machine with two network interfaces: <code>nameif=eth0!00:0C:29:57:D0:6E,eth1!00:0C:29:57:D0:64</code>. Be careful, you have to respect the separator (comma between the interfaces and exclamation marks between the name and the mac address).
116 </li></ul>
117
118 <p><b><BR>Options provided by the autorun</b></p>
119
120 <ul><li><b>ar_source=xxx</b>: place where the autorun are stored. It may be the root directory of a partition (<code>/dev/sda1</code>), an nfs share (<code>nfs://192.168.1.1:/path/to/scripts</code>), a samba share (<code>smb://192.168.1.1/path/to/scripts</code>), or an http directory (<code><a href="http://192.168.1.1/path/to/scripts" class="external free" title="http://192.168.1.1/path/to/scripts" rel="nofollow">http://192.168.1.1/path/to/scripts</a></code>).
121 </li><li><b>autoruns=[0-9]</b>: comma separated list of the autorun script that have to be run. For instance if you use <code>autoruns=0,2,7</code> then the following autorun scripts will be executed: <code>autorun0</code>, <code>autorun2</code>, <code>autorun7</code>. Use <code>autoruns=no</code> to disable all the autorun scripts with a number.
122 </li><li><b>ar_ignorefail</b>: continue to execute the scripts chain even if a script failed (returned a non-zero status)
123 </li><li><b>ar_nodel</b>: do not delete the temporary copy of the autorun scripts located in <code>/var/autorun/tmp</code> after execution
124 </li><li><b>ar_disable</b>: completely disable autorun, the simple <code>autorun</code> script will not be executed
125 </li><li><b>ar_nowait</b>: do not wait for a keypress after the autorun script have been executed.
126 </li></ul>
127 </div>
128
129
130 <!-- Clonezilla -->
131 <H2><a name="clonezilla"></a>Clonezilla Live boot parameters <span class="hideprint">[<a href="#boot-top" title="go to top of the page">^</a>]</span></H2>
132 <!-- note -->
133 <div align="center"><table class="note" border="0" cellpadding="20"><tr valign="top"><td><img src="info.png"></td><td>
134 The following info applies to <b>Clonezilla Live v. 1.2.2-31</b><br>
135 In case you need to get info for a more recent version of <b>Clonezilla Live</b><br>
136 please see the page "<a href="http://www.clonezilla.org/clonezilla-live/doc/fine-print.php?path=./99_Misc/00_live-initramfs-manual.doc#00_live-initramfs-manual.doc" target="_blank">The boot parameters for Clonezilla live</a>"
137 </td></tr></table></div>
138
139 <p>A typical Clonezilla Live isolinux entry is:</p>
140
141 <p class="newcode"> kernel /live/vmlinuz1<br>
142 append initrd=/live/initrd1.img boot=live union=aufs ocs_live_run="ocs-live-general"<br>
143 ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=791 nolocales</p>
144 <!--empty-line-->
145 <p>The kernel used is <b>vmlinuz</b>, and anything after the word <b>append</b> is a boot parameter.</p>
146 <!--empty-line-->
147
148
149 <p>The following info comes from the page titled <a href="http://www.clonezilla.org/clonezilla-live/doc/fine-print.php?path=./99_Misc/00_live-initramfs-manual.doc#00_live-initramfs-manual.doc" target="_blank">The boot parameters for Clonezilla live</a>.</p>
150
151 <!-- Start of copy/paste 3 -->
152 <div class="otherpage">Clonezilla live is based on <a href="http://wiki.debian.org/DebianLive/" target=_blank>Debian live</a> with clonezilla installed. Therefore there are 2 kinds of boot parameters:
153 <ol>
154 <li>Boot parameters from live-initramfs. You can refer to this <a href="#live-initramfs">manual of live-initramfs</a>.
155 <li>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.
156 <ul>
157 <li>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.<br>
158 e.g. ocs_live_run="ocs-live-general"
159 <li>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.<br>
160 e.g. ocs_live_extra_param="-b -c restoredisk sarge-r5 hda"
161 <li>ocs_live_keymap is for keymap used in Clonezilla live. Man install-keymap for more details.<br>
162 e.g. ocs_live_keymap="NONE" (won't change the default layout)<br>
163 ocs_live_keymap="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" (French keyboard)
164 <li>batch mode or not (yes/no), if no, will run interactively.<br>
165 e.g. ocs_live_batch="no"
166 <li>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/)
167 e.g. ocs_lang="en_US.UTF-8"
168 <li>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.
169 <li>ocs_daemonon, ocs_daemonoff, ocs_numlk, ocs_capslk.<br>
170 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.
171 <li>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.
172 <li>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.
173 </ul>
174 </ol>
175 <hr>
176
177 With the above options, we have the following examples:
178 <ol>
179 <li>A PXE config example for you to boot Clonezilla live via PXE, and ssh service is on, the password of account "user" is assigned:<br>
180 ----------------------------------------<br>
181 label Clonezilla Live<br>
182 MENU LABEL Clonezilla Live<br>
183 MENU DEFAULT<br>
184 kernel vmlinuz1<br>
185 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"<br>
186 ----------------------------------------<br>
187
188 The usercrypted password is created by:<br>
189 echo YOUR_PASSWORD | mkpasswd -s<br>
190 ("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").<br>
191 //NOTE// If you do not assign salt to mkpasswd, the encrypted password will not be the same every time you create it.<br>
192 For more about usercrypted discussion, please check the <a href="http://lists.debian.org/debian-live/2008/10/msg00020.html" target=_blank>here</a>.
193 <br><br>
194 <li>How to put your own binary driver in Clonezilla live without modifying /live/filesystem.squashfs:
195 <ul>
196 <li>Boot clonezilla live
197 <li>Become root by running "sudo su -"
198 <li>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.: <br>
199 cp -r /live/image/lsi /home/partimag
200 <li>cd /home/partimag
201 <li>/opt/drbl/sbin/ocs-live-dev -c -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
202 <li>/opt/drbl/sbin/ocs-iso -s -i lsi -u lsi -x "ocs_prerun=/live/image/lsi/prep-lsi.sh"
203 <li>///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:
204 <pre>
205 ------------------------
206 #!/bin/bash
207 cp -f /live/image/lsi/megasr.ko /lib/modules/`uname -r`/kernel/drivers/block/
208 chown root.root /lib/modules/`uname -r`/kernel/drivers/block/megasr.ko
209 depmod -a modprobe megasr
210 sleep 1
211 ------------------------
212 </pre>
213 </ul>
214
215 <li>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):<br>
216 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).<br>
217 Therefor your pxelinux.cfg/default file is like:
218 <p>------------------------<br>
219 label Clonezilla Live<br>
220 MENU DEFAULT<br>
221 # MENU HIDE<br>
222 MENU LABEL Clonezilla Live<br>
223 # MENU PASSWD<br>
224 kernel vmlinuz1<br>
225 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<br>
226 TEXT HELP<br>
227 Boot Clonezilla live via network<br>
228 ENDTEXT<br>
229 <p>------------------------<br>
230 The content of custom-ocs-2 can be like:
231 <pre>
232 ------------------------
233 #!/bin/bash
234 . /opt/drbl/sbin/drbl-conf-functions
235 . /opt/drbl/sbin/ocs-functions
236 . /etc/ocs/ocs-live.conf
237
238 # Load language file
239 ask_and_load_lang_set en_US.UTF-8
240
241 # 1. Mount the clonezilla image home.
242 # Types: local_dev, ssh_server, samba_server, nfs_server
243 prep-ocsroot -t nfs_server
244
245 # 2. Restore the image
246 if mountpoint /home/partimag/ &>/dev/null; then
247 ocs-sr -l en_US.UTF-8 -c -p choose restoredisk ask_user ask_user
248 else
249 [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
250 echo "Fail to find the Clonezilla image home /home/partimag!"
251 echo "Program terminated!"
252 [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
253 fi
254 ------------------------
255 </pre>
256 </li>
257 </ol>
258 </div>
259 <!-- End of copy/paste 3 -->
260
261 <H3><a name="live-initramfs"></a>live-initramfs manual <span class="hideprint">[<a href="#boot-top" title="go to top of the page">^</a>]</span></H3>
262
263 <p>This is the manual of <a href="http://www.clonezilla.org/clonezilla-live/live-initramfs-param.php" target=_blank>live-initramfs</a>
264 <BR>
265 </p>
266
267 <div class="otherpage"><pre>
268 live-initramfs(7)
269 =================
270
271 Name
272 ----
273 live-initramfs - Debian Live initramfs hook
274
275 Synopsis
276 --------
277 BOOT=live
278
279 as kernel parameter at boot prompt.
280
281 Description
282 -----------
283
284 live-initramfs is a hook for the initramfs-tools, used to generate a initramfs
285 capable to boot live systems, such as those created by *live-helper*(7).
286 This includes the Debian Live isos, netboot tarballs, and usb stick images.
287
288 At boot time it will look for a (read-only) media containing a "/live"
289 directory where a root filesystems (often a compressed filesystem image like
290 squashfs) is stored. If found, it will create a writable environment, using
291 aufs, for Debian like systems to boot from.
292
293 You probably do not want to install this package onto a non-live system,
294 although it will do no harm.
295
296 live-initramfs is a fork of link:http://packages.ubuntu.com/casper/[casper].
297 casper was originally written by Tollef Fog Heen &lt;tfheen@canonical.com&gt;
298 and Matt Zimmerman &lt;mdz@canonical.com&gt;.
299
300 Boot options
301 ------------
302
303 Here is the complete list of recognized boot parameters by live-initramfs.
304
305 access=*ACCESS*::
306
307 Set the accessibility level for physically or visually impared users. ACCESS
308 must be one of v1, v2, v3, m1, or m2. v1=lesser visual impairment, v2=moderate
309 visual impairment, v3=blindness, m1=minor motor difficulties, m2=moderate motor
310 difficulties.
311
312 console=*TTY,SPEED*::
313
314 Set the default console to be used with the "live-getty" option. Example:
315 "console=ttyS0,115200"
316
317 debug::
318
319 Makes initramfs boot process more verbose.
320
321 fetch=*URL*::
322
323 Another form of netboot by downloading a squashfs image from a given url,
324 copying to ram and booting it.
325
326 hostname=*HOSTNAME*, username=*USER*, userfullname=*USERFULLNAME*::
327
328 Those parameters lets you override values read from the config file.
329
330 ignore_uuid
331
332 Do not check that any UUID embedded in the initramfs matches the discovered
333 medium. live-initramfs may be told to generate a UUID by setting
334 LIVE_GENERATE_UUID=1 when building the initramfs.
335
336 integrity-check::
337
338 If specified, an MD5 sum is calculated on the live media during boot and
339 compared to the value found in md5sum.txt found in the root directory of the
340 live media.
341
342 ip=**[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]***::
343
344 Let you specify the name(s) and the options of the interface(s) that should be
345 configured at boot time. Do not specify this if you want to use dhcp (default).
346 It will be changed in a future release to mimick official kernel boot param
347 specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).
348
349 ip[=**frommedia**]::
350
351 If this variable is set, dhcp and static configuration are just skipped and the
352 system will use the (must be) media-preconfigured /etc/network/interfaces
353 instead.
354
355 {keyb|kbd-chooser/method}=**KEYBOARD**, {klayout|console-setup/layoutcode}=**LAYOUT**, {kvariant|console-setup/variantcode}=**VARIANT**, {kmodel|console-setup/modelcode}=**CODE**, koptions=**OPTIONS**::
356
357 Configure the running keyboard as specified, if this one misses live-initramfs
358 behaves as if "keyb=us" was specified. It will be interfered from "locale=" if
359 locale is only 2 lowecase letters as a special case. You could also specify
360 console layout, variant, code, and options (no defaults).
361
362 live-getty::
363
364 This changes the auto-login on virtual terminals to use the (experimental)
365 live-getty code. With this option set the standard kernel argument "console=" is
366 parsed and if a serial console is specified then live-getty is used to autologin
367 on the serial console.
368
369 {live-media|bootfrom}=**DEVICE**::
370
371 If you specify one of this two equivalent forms, live-initramfs will first try
372 to find this device for the "/live" directory where the read-only root
373 filesystem should reside. If it did not find something usable, the normal scan
374 for block devices is performed.
375
376 {live-media-encryption|encryption}=**TYPE**::
377
378 live-initramfs will mount the encrypted rootfs TYPE, asking the passphrase,
379 useful to build paranoid live systems :-). TYPE supported so far are "aes" for
380 loop-aes encryption type.
381
382 live-media-offset=**BYTES**::
383
384 This way you could tell live-initramfs that your image starts at offset BYTES in
385 the above specified or autodiscovered device, this could be useful to hide the
386 Debian Live iso or image inside another iso or image, to create "clean" images.
387
388 live-media-path=**PATH**::
389
390 Sets the path to the live filesystem on the medium. By default, it is set to
391 '/live' and you should not change that unless you have customized your media
392 accordingly.
393
394 live-media-timeout=**SECONDS**::
395
396 Set the timeout in seconds for the device specified by "live-media=" to become
397 ready before giving up.
398
399 {locale|debian-installer/locale}=**LOCALE**::
400
401 Configure the running locale as specified, if not present the live-media rootfs
402 configured locale will be used and if also this one misses live-initramfs behave
403 as "locale=en_US.UTF-8" was specified. If only 2 lowercase letter are specified
404 (like "it"), the "maybe wanted" locale is generated (like en:EN.UTF-8), in this
405 case if also "keyb=" is unspecified is set with those 2 lowercase letters
406 (keyb=us). Beside that facility, only UTF8 locales are supported by
407 live-initramfs.
408
409 module=**NAME**::
410
411 Instead of using the default optional file "filesystem.module" (see below)
412 another file could be specified without the extension ".module"; it should be
413 placed on "/live" directory of the live medium.
414
415 netboot[=**nfs**|**cifs**]::
416
417 This tells live-initramfs to perform a network mount. The parameter "nfsroot="
418 (with optional "nfsopts="), should specify where is the location of the root
419 filesystem. With no args, will try cifs first, and if it fails nfs.
420
421 nfsopts=::
422
423 This lets you specify custom nfs options.
424
425 noautologin::
426
427 This parameter disables the automatic terminal login only, not touching gdk/kdm.
428
429 noxautologin::
430
431 This parameter disables the automatic login of gdm/kdm only, not touching
432 terminals.
433
434 nofastboot::
435
436 This parameter disables the default disabling of filesystem checks in
437 /etc/fstab. If you have static filesystems on your harddisk and you want them to
438 be checked at boot time, use this parameter, otherwise they are skipped.
439
440 nopersistent::
441
442 disables the "persistent" feature, useful if the bootloader (like syslinux) has
443 been installed with persistent enabled.
444
445 noprompt
446
447 Do not prompt to eject the CD on reboot.
448
449 nosudo::
450
451 This parameter disables the automatic configuration of sudo.
452
453 swapon::
454
455 This parameter enables usage of local swap partitions.
456
457 nouser::
458
459 This parameter disables the creation of the default user completely.
460
461 noxautoconfig::
462
463 This parameter disables Xorg auto-reconfiguration at boot time. This is valuable
464 if you either do the detection on your own, or, if you want to ship a custom,
465 premade xorg.conf in your live system.
466
467 persistent[=nofiles]::
468
469 live-initramfs will look for persistent and snapshot partitions or files labeled
470 "live-rw", "home-rw", and files called "live-sn*", "home-sn*" and will try to,
471 in order: mount as /cow the first, mount the second in /home, and just copy the
472 contents of the latter in appropriate locations (snapshots). Snapshots will be
473 tried to be updated on reboot/shutdown. Look at live-snapshot(1) for more
474 informations. If "nofiles" is specified, only filesystems with matching labels
475 will be searched; no filesystems will be traversed looking for archives or image
476 files. This results in shorter boot times.
477
478 {preseed/file|file}=**FILE**::
479
480 A path to a file present on the rootfs could be used to preseed debconf
481 database.
482
483 package/question=**VALUE**::
484
485 All debian installed packages could be preseeded from command-line that way,
486 beware of blanks spaces, they will interfere with parsing, use a preseed file in
487 this case.
488
489 quickreboot::
490
491 This option causes live-initramfs to reboot without attempting to eject the
492 media and without asking the user to remove the boot media.
493
494 showmounts::
495
496 This parameter will make live-initramfs to show on "/" the ro filesystems
497 (mostly compressed) on "/live". This is not enabled by default because could
498 lead to problems by applications like "mono" which store binary paths on
499 installation.
500
501 textonly
502
503 Start up to text-mode shell prompts, disabling the graphical user interface.
504
505 timezone=**TIMEZONE**::
506
507 By default, timezone is set to UTC. Using the timezone parameter, you can set it
508 to your local zone, e.g. Europe/Zurich.
509
510 todisk=**DEVICE**::
511
512 Adding this parameter, live-initramfs will try to copy the entire read-only
513 media to the specified device before mounting the root filesystem. It probably
514 needs a lot of free space. Subsequent boots should then skip this step and just
515 specify the "live-media=DEVICE" boot parameter with the same DEVICE used this
516 time.
517
518 toram::
519
520 Adding this parameter, live-initramfs will try to copy the whole read-only media
521 to the computer's RAM before mounting the root filesystem. This could need a lot
522 of ram, according to the space used by the read-only media.
523
524 union=**aufs**|**unionfs**::
525
526 By default, live-initramfs uses aufs. With this parameter, you can switch to
527 unionfs.
528
529 utc=**yes**|**no**::
530
531 By default, Debian systems do assume that the hardware clock is set to UTC. You
532 can change or explicitly set it with this parameter.
533
534 xdebconf::
535
536 Uses xdebconfigurator, if present on the rootfs, to configure X instead of the
537 standard procedure (experimental).
538
539 xvideomode=**RESOLUTION**::
540
541 Doesn't do xorg autodetection, but enforces a given resolution.
542
543 Files
544 -----
545
546 /etc/live.conf
547
548 Some variables can be configured via this config file (inside the live system).
549
550 /live/filesystem.module
551
552 This optional file (inside the live media) contains a list of white-space or
553 carriage-return-separated file names corresponding to disk images in the "/live"
554 directory. If this file exists, only images listed here will be merged into the
555 root aufs, and they will be loaded in the order listed here. The first entry
556 in this file will be the "lowest" point in the aufs, and the last file in
557 this list will be on the "top" of the aufs, directly below /cow. Without
558 this file, any images in the "/live" directory are loaded in alphanumeric order.
559
560 /etc/live-persistence.binds
561
562 This optional file (which resides in the rootfs system, not in the live media)
563 is used as a list of directories which not need be persistent: ie. their
564 content does not need to survive reboots when using the persistence features.
565
566 This saves expensive writes and speeds up operations on volatile data such as
567 web caches and temporary files (like e.g. /tmp and .mozilla) which are
568 regenerated each time. This is achieved by bind mounting each listed directory
569 with a tmpfs on the original path.
570
571
572 See also
573 --------
574
575 live-snapshot(1), initramfs-tools(8), live-helper(7), live-initscripts(7),
576 live-webhelper(7)
577
578 Bugs
579 ----
580
581 Report bugs against live-initramfs
582 link:http://packages.qa.debian.org/live-initramfs[http://packages.qa.debian.org/live-initramfs].
583
584 Homepage
585 --------
586
587 More information about the Debian Live project can be found at
588 link:http://debian-live.alioth.debian.org/[http://debian-live.alioth.debian.org/] and
589 link:http://wiki.debian.org/DebianLive/[http://wiki.debian.org/DebianLive/].
590
591 Authors
592 -------
593
594 live-initramfs is maintained by Daniel Baumann &lt;daniel@debian.org&gt;
595 for the Debian project.
596
597 live-initramfs is a fork of link:http://packages.ubuntu.com/casper/[casper].
598 casper was originally written by Tollef Fog Heen &lt;tfheen@canonical.com&gt;
599 and Matt Zimmerman &lt;mdz@canonical.com&gt;.</pre>
600 </div>
601
602 <!--site-only--><hr style="margin: 0;"><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="usb.html">Previous</a></td> <td width="34%" align="center"><a href="index.html">Contents</a></td> <td width="33%" align="right"><a href="clonezilla.html">Next</a></td> </tr></table><!--end-site-only-->
603 <!--site-only--><p align="right" style="margin-bottom: 2em;"> <a href="http://feedvalidator.org/check.cgi?url=http%3A//clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss" target="_blank"><img src="valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" border="0" align="right"></a>&nbsp;&nbsp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://clonezilla-sysresccd.hellug.gr/boot-params.html" target="_blank"> <img style="border:0;width:88px;height:31px" src="valid-css.png" alt="Valid CSS!" border="0" align="right"></a>&nbsp; <a href="http://validator.w3.org/check?uri=http://clonezilla-sysresccd.hellug.gr/boot-params.html" target="_blank"><img src="valid-html401.png" alt="Valid HTML 4.01 Transitional" height="31" width="88" border="0" align="right"></a></p><!--end-site-only-->
604 </body>
605 </html>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26