/[clonezilla-sysresccd]/trunk/www/clonezilla.html
ViewVC logotype

Contents of /trunk/www/clonezilla.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 172 - (show annotations)
Sat May 28 23:49:40 2011 UTC (12 years, 9 months ago) by sng
File MIME type: text/html
File size: 45361 byte(s)
updating trunk site
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 - Documentation: About Clonezilla Live</title>
7 <style type="text/css">
8 body { font-family: Arial, 'sans serif'; color: black; font-size: 12pt; background : fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px; margin-bottom: 5px; }
9
10
11
12 #header {position:relative; display: block; width: 980px; height: 121px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/header.png');clear:both;}
13 #header h2{ color: #FFE6BC; font-weight: bold; font-size: 2.2em; margin:0; padding:0; padding-left: 10px; padding-top: 7px; text-shadow: #333333 2px 2px 4px;}
14 #header h3{ color: #FFE6BC; font-weight: bold; font-size: 1.8em; margin:0; padding: 0; padding-left: 10px; text-shadow: #333333 2px 2px 4px;}
15 #header h4{ color: #FFE6BC; font-weight: bold; font-size: 1.2em; margin:0; padding: 0; padding-left: 10px; padding-right: 10px; text-shadow: #333333 2px 2px 4px;}
16 #header a {text-decoration:none;}
17
18 #contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD; clear:both;}
19
20 #linkline { width: 980px; height: 29px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/linkline.png');clear:both; }
21 #linkline a{float: left; color: #FFE6BC; font-weight: bold; font-size: 0.8em; text-decoration: none; text-shadow: #333333 2px 2px 4px; padding-left: 10px; padding-right: 10px; padding-top: 5px;}
22 #linkline a:visited{color: #FFE6BC;}
23 #linkline a:hover{color: #333333;}
24 #linkline a.here {color: #333333; text-decoration: none;}
25
26 #lastupdate {float: right; display: block; text-align: right; margin: 0; margin-top: -1.2em; padding: 0; padding-right: 15px;}
27
28 #rss { float: right; text-align: right; padding-top: 3px;}
29
30 #docline-top { float: right; padding-right: 40px; text-align: right; }
31 #docline-bottom { float: right; padding-right: 40px; text-align: right; font-size: 0.8em; padding-top: 15px; }
32 #docline-bottom a{ padding-left: 10px; padding-right: 10px; }
33
34 #menu { float: right; display: block; width: 170px; margin: auto; padding: 15px; font-size: 0.8em; font-weight: bold; background-color: #FFE6BC;}
35 #menu h1 {color: #990000; font-size: 1.8em;text-shadow: gray 2px 2px 4px;}
36 #menu a,a:visited{ color: black; text-decoration: none; font-weight: normal;}
37 #menu a:hover{ text-decoration: underline;}
38 #menu p{ margin-bottom: 10px;}
39
40 #content { float: left; display: block; width: 950px; margin: auto; padding: 15px;}
41
42
43 #footer {display: block; width: 980px; height: 100px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/footer.png');clear:both;text-shadow: #333333 2px 2px 4px;}
44 #footer p{color: #FFE6BC; font-weight: bold; padding:15px; padding-left: 10px;}
45 #footer a,a:visited{color: #FFE6BC; font-weight: bold; text-decoration:none;}
46 #footer a:hover{ color: #333333; text-decoration: none;}
47
48
49 #content H1,H2,H3,H4{color: #990000; text-align: left;}
50 #content H2{margin-top: 2em;}
51 #content H3{margin-top: 1.5em}
52 #content H4{margin-top: 1em}
53 #content li { margin-top: 1em;}
54 #content a,a:active,a:visited{text-decoration: none; color: #4075CA; font-weight: normal;}
55 #content a:hover{text-decoration: underline; font-weight: normal;}
56 #content .hidden{ display:none; }
57 #content p,td,table,tr,li { font-family: Arial, 'sans serif'; }
58 #content .nav{margin-left: 0pt;}
59 #content .newcode{font-family : "Courier New", Courier, monospace; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;}
60 #content .note{margin-top: 30pt; margin-bottom: 30pt; text-align: left; background-color: #FFEFEF; border: double 3px; border-color: #FFD5D5;}
61 #content hr{color: Black; background-color: Black; height: 1px; border: none;}
62 #content .header-news{margin-top: 2em; margin-left: 25pt; font-weight: bold; color: #990000;}
63 #content .item-news{margin-left: 45pt; margin-right: 45pt;}
64 #content .otherpage{border: solid 1px darkgoldenrod; padding: 20pt; background-color: lemonchiffon;}
65 #content IMG {display: block; margin-left: auto; margin-right: auto; }
66 #content .red{color: white; background-color: Red; font-weight: bold;}
67 #lphp{text-align: right; padding-left: 10px; padding-right: 10px; padding-top: 50px; float: right;}
68 #lphp a{padding-left: 5px;}
69 #warning { margin: 5px; padding: .4em; background-color: Red; color: White; align: center; font-weight: bold; border-width: 2px; border-color: white; border-style: solid; }
70 #warning a { color: white; font-weight: bold; text-decoration: underline; }
71 </style>
72 <link href="warning.css" rel="stylesheet" type="text/css" />
73 <!--
74 The file waring.css exists only in the root of the site
75 and it hides the UNSTABLE warnings. Its contents are
76 #warning { display: none; }
77 -->
78 <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
79 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
80
81 </head>
82
83 <body>
84 <div id="warning" align="center">
85 WARNING<br>
86 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
87 To access our current stable version, please click <a href="../index.html">here</a>
88 </div>
89 <div id="header">
90 <div id="lphp" style=""><a target="_blank" title="Display all in one long page" href="onepage.html"><img src="images/chain.png" border="0" /></a><a target="_blank" title="Display printable page" href="printable.php"><img src="images/print_it.png" border="0" /></a></div>
91 <H2>Clonezilla-SysRescCD</H2>
92 <H3>Documentation: About Clonezilla Live</H3>
93 <div style="margin:0; padding: 3px; width: 980; position relative;">
94 <div style="position: absolute; left: 0px;"><H4>30/06/2011 - v 3.2.0</H4></div>
95 <div style="position: absolute; right: 0px;"><H4>Last update: 29/05/2011</H4></div>
96 </div>
97 </div>
98 <div id="linkline">
99 <a href="index.html">Home</a>
100 <a href="news.php">News</a>
101 <!-- <a href="features.html">Features</a>-->
102 <a class="here" href="doc.html">Documentation</a>
103 <a href="download.html">Download</a>
104 <a href="screenshots.html">Screenshots</a>
105 <a href="index.html#credits">Credits</a>
106 <a href="help.html">Help</a>
107
108 <div id="rss">
109 <a href="clonezilla-sysresccd.rss"><img src="images/rss-orange-11.png" width="30" height="14" border="0"/></a>
110 </div>
111 <!-- docline-top-->
112 <div id="docline-top"> <a href="boot-params.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="backup.html">NEXT &gt;</a> </div>
113 </div>
114 <div id="contarea">
115 <div id="content">
116 <a name="clonezilla-top"></a>
117
118
119
120
121 <!-- Intro -->
122 <H2 style="margin-top: 0;"><a name="clonezilla-intro"></a>Intro <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
123 <p>The DRBL-based PXEBoot Clonezilla is used to clone many computers simultaneously. It is an extremely useful tool, however, it does have several limitations. In order to use it, you must first prepare a DRBL server AND the machine to be cloned must boot from a network (e.g. PXE/Etherboot).<br><br>
124 <!--empty line-->
125 To address these limitations, the Free Software Lab at the NCHC has combined <a href="http://debian-live.alioth.debian.org/" target=_blank>Debian Live</a> with Clonezilla to produce "<b>Clonezilla Live</b>", a new software that can be used to easily clone individual machines.</p>
126
127
128 <p>
129 <b>Clonezilla Live</b> provides two modes of operation:
130 </p>
131
132 <ul>
133 <li><b>device-image</b><br>
134 In this mode of operation, a disk/partition can be saved to an image file. This image file can be used to restore the original disk/partition. With Clonezilla-SysRescCD, it can also be used to create an automated restore CD/DVD. This is the mode of operation we will discuss here.
135 </li>
136 <li><b>device-device (cloning)</b><br>
137 This mode of operation creates an exact copy of the original disk/partition on the fly.</li>
138 </ul>
139 <p>When working in <b>device-image</b> mode, you will always have to specify three things:</p>
140 <ul>
141 <li>The location of the image file</li>
142 <li>The working parameters for the operation</li>
143 <li>The disk/partition that will be saved/restored</li>
144 </ul>
145
146 <p><b>Clonezilla Live</b> provides a user friendly interface in order to insert this data.<br><br>
147 <!--empty line-->
148 When <b>Clonezilla Live</b> is booted up, either normally or copied to RAM, the contents of the whole CD/DVD can be found in folder <b>/live/image</b>. This is where you will find any extra files, such as the <b>restorecd</b> and the <b>doc</b> folders.
149 </p>
150
151
152 <!-- Start - Stop -->
153 <H2><a name="start-stop"></a>Starting and stopping Clonezilla Live <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
154 <p>When you boot into <b>Clonezilla Live</b>, the program (actually a script) starts automatically. There are many places where you can stop it, by selecting <b>Cancel</b> or answering <b>N(o)</b> to a question. When you do that you will probably get the following:</p>
155 <p class="newcode">Now you can choose to:<br>
156 (0) Poweroff<br>
157 (1) Reboot<br>
158 (2) Enter command line prompt<br>
159 (3) Start over<br>
160 [2]</p>
161 <!--empty line-->
162 <p>Select Poweroff or Reboot, <b>only</b> if you haven't already mounted a disk partition. I found out by experience, it is not always safe to let any live CD automatically unmount my partitions. So if you have already specified the image partition and/or the partition to save/restore, you should enter command line prompt and type:</p>
163 <p class="newcode"><a name="umount"></a>sudo su -<br>
164 mount | grep /dev/[sh]d</p>
165 <p>and then unmount the partitions shown by the last command. So if the results of this command is for example:</p>
166 <p class="newcode"><font color="Green">/dev/hda1</font> on /home/partimag type vfat (rw)</p>
167 <p>just type the command:</p>
168 <p class="newcode">umount <font color="Green">/dev/hda1</font></p>
169 <p>and it's now safe to Poweroff of Reboot.<br><br>
170 <!--empty line-->
171 If, on the other hand, you just want to restart the program, type:</p>
172 <p class="newcode">ocs-live</p>
173
174
175
176 <!-- About -->
177 <H2><a name="about"></a>About the Image file <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
178 <p>One thing should be made clear about the image file: it is not a file, it is a <b>folder</b>, containing the actual image file and some data about the disk/partition it is associated with. So when you insert the image file name, you actually insert the folder name where the image will be saved/restored.<br><br>
179 <!--empty line-->
180 Before you are able to insert the image file name, a list of partitions will be presented to you, so that you can choose where it should be saved/found. When you select one of them, it will be mounted and a list of folders will be presented to you, so you can select the base image directory (first level directory within the partition), which will then be mounted under <b>/home/partimag</b>. This way you can, for example, create a folder called <b>all_my_images</b> in one of your disk partitions, and move all your image files in there; <b>Clonezilla Live</b> will be able to find them!!!<br><br>
181 <!--empty line-->
182 Another thing that should be pointed out is that <b>only unmounted</b> partitions will be included in the above list. This means that if you have stopped the program at some point after specifying the partition where the image file resides, and it has been mounted, it will not be present in the list the next time it is presented to you, and you will not be able to use it.<br><br>
183 <!--empty line-->
184 There are two things you can do in this case; either unmount the partition, as stated <a href="#umount">above</a>, or select</p>
185 <p class="newcode"><font color="Red">skip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use existing /home/partimag</font></p>
186 <!--empty line-->
187 <p>instead of any other option, when you restart the program. The later of course means that you still want to use the previously specified partition as the image file location.<br><br>
188 <!--empty line-->
189 Fianlly I should say that <b>Clonezilla Live</b> is able to use a remote disk/partition as the location of the image file, mounted through <b>ssh</b>, <b>samba</b> or <b>nfs</b>. Using any of these options is a more advanced topic, way beyond the scope of this presentation.</p>
190
191
192
193 <!-- Options -->
194 <H2><a name="options"></a>Scripts' options <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
195 <p>This section presents the options which are available at the "<i><b>Clonezilla advanced extra parameters</b></i>" screens, if the "Expert" mode is selected. For other options, see <a href="backup.html">Getting backups</a> and <a href="restoration.html">Restoring data</a>.</p>
196 <!-- Yes, the latter page doesn't exist yet (as of 17 Dec 2009). I think it's not a good idea to keep advanced parameters and a generic restoration guide on the same page. -->
197 <!--empty line-->
198 <H3><a name="backup-options"></a>Backup options [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H3>
199 <!--empty line-->
200 <H4><a name="imaging-program-priority"></a>Imaging program priority [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
201 <!--empty line-->
202 <p class="newcode"><a name="q_option"></a><font color="Red">-q2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: partclone > partimage > dd<br>
203 -q1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: Only dd (supports all filesystem, but inefficient)<br>
204 -q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: ntfsclone > partimage > dd<br>
205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: partimage > dd (no ntfsclone)</font></p>
206 <!--empty-line-->
207 <p>This option chooses which imaging programs are preferred. By default, <b>Clonezilla Live</b> uses <b>partclone</b> for nearly all filesystems, including ext2/3/4, NTFS and FAT32. If a filesystem isn't supported by <b>partclone</b>, but is supported by <b>partimage</b> (spesifically: if the filesystem is HFS, HPFS or JFS), it is cloned by <b>partimage</b>. If it isn't supported by either (for example Linux swap, though it doesn't make any sense to clone swap partitions), it is cloned by <b>dd</b>. Unlike <b>partclone</b> or <b>partimage</b>, <b>dd</b> copies all blocks of the partition instead of only used, resulting in slower imaging process and bigger images.</p>
208 <!--empty line-->
209 <p>Normally the default option <font color="Red"><b>-q2</b></font> should be preferred. Try another option if you have problems and believe they are caused by the imaging program used.</p>
210 <!--empty line-->
211 <H4><a name="various-backup-parameters"></a>Various parameters [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
212 <!--empty line-->
213 <p>These options are available at the second "<i><b>Clonezilla advanced extra parameters</b></i>" screen.</p>
214 <p class="newcode"><a name="backup-confirmation"></a><font color="Red">-c&nbsp;Client waits for confirmation before cloning</font></p>
215 <p>This option causes <b>Clonezilla Live</b> to ask if you really want to clone the disk/partition just before it starts cloning. It is enabled by default.</p>
216 <!--empty line-->
217 <p class="newcode"><a name="backup-hidden-data"></a><font color="Red">-j2&nbsp;Clone the hidden data between MBR and 1st partition</font></p>
218 <p>If this option is set, the 15 hidden sectors between Master Boot Record and the first partition are copied. This area usually contains some data necessary for booting. The option is enabled by default and should be kept enabled if you are cloning a bootable disk.</p>
219 <!--empty line-->
220 <p class="newcode"><a name="backup-nogui"></a><font color="Red">-nogui&nbsp;Use text output only, no TUI/GUI output</font></p>
221 <p>Causes <b>Clonezilla Live</b> to force the used programs to use only command-line interface even if text-based or graphical user interface is available.</p>
222 <!--empty line-->
223 <p class="newcode"><a name="backup-no-dma"></a><font color="Red">-a&nbsp;Do NOT force to turn on HD DMA</font></p>
224 <p>Prevents <b>Clonezilla Live</b> from using DMA for communicating with hard drives. Slows cloning down but in some conditions cloning without this option can be impossible.</p>
225 <!--empty line-->
226 <p class="newcode"><a name="rm-win-swap-hib"></a><font color="Red">-rm-win-swap-hib&nbsp;Remove page and hibernation files in Win if exists</font></p>
227 <p>This option prevents <b>Clonezilla Live</b> from cloning your page file if you are cloning a partition containing Windows. Often the page file is big and unneeded, and skipping it may speed cloning up without causing any harm. Mind you, this option is disabled by default because sometimes the page file may be necessary.</p>
228 <!--empty line-->
229 <p class="newcode"><a name="ntfs-ok"></a><font color="Red">-ntfs-ok&nbsp;Skip checking NTFS integrity, even bad sectors (ntfsclone only)</font></p>
230 <p>This option works only if you selected the <font color="Red"><b>-q</b></font> option and you're cloning a NTFS partition. It prevents the integrity check of NTFS partitions and speeds the cloning process up a little. However, if the check is disabled, there is a risk that the filesystem is damaged and the image created from it is useless.</p>
231 <!--empty line-->
232 <p class="newcode"><a name="rescue"></a><font color="Red">-rescue&nbsp;Continue reading next one when disk blocks read errors</font></p>
233 <p>If this option is set, <b>Clonezilla Live</b> continues cloning even if a read error occurs. If there is one, the disk image will be corrupted, but failing hard drives can only be cloned with this option enabled.</p>
234 <!--empty line-->
235 <p class="newcode"><a name="fsck-src-part"></a><font color="Red">-fsck-src-part&nbsp;Check and repair source file system before saving</font></p>
236 <p>This option causes <b>Clonezilla Live</b> to check the integrity of the partition(s) to be cloned. If the filesystem of the partition is damaged, <b>Clonezilla Live</b> also attempts to repair it automatically. Enabling this option reduces the risk that the image contains a damaged filesystem. However, the option is disabled by default because the automatic filesystem repair attempt may cause data loss.</p>
237 <!--empty line-->
238 <p class="newcode"><a name="gen-md5"></a><font color="Red">-gm&nbsp;Generate image MD5 checksums</font></p>
239 <p>Causes <b>Clonezilla Live</b> to calculate MD5 checksum(s) of image(s) created. If the image gets corrupted afterwards, the checksum allows to notice the corruption before the image is restored. Mind you, calculating the checksum takes some time and slows the process down a little.</p>
240 <!--empty line-->
241 <p class="newcode"><a name="gen-sha1"></a><font color="Red">-gs&nbsp;Generate image SHA1 checksums</font></p>
242 <p>This option is identical to the above, but creates SHA1 checksum(s) instead of MD5. SHA1 is considered to be more accurate checksum algorithm than MD5, but MD5 is more popular.</p>
243 <!--empty line-->
244 <H4><a name="compression-method"></a>Compression method [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
245 <!--empty line-->
246 <p class="newcode"><a name="z_option"></a><font color="Red">-z1p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use parallel gzip compression (testing), for multicore/CPU<br>
247 -z1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gzip compression (fast with a smaller image)<br>
248 -z2p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use parallel bzip2 compression (testing), for multicore/CPU<br>
249 -z2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bzip2 compression (slowest but smallest image)<br>
250 -z3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lzo compression (faster with image size approx. to that of gzip)(NOTE!!)<br>
251 -z4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lzma_compression_(slowest_but_also_small_image,_faster_decompression_than_bzip2)<br>
252 -z5p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use_parallel_xz_compression_(testing),_for_multicore/CPU<br>
253 -z5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xz_compression_(slowest_but_also_small_image,_faster_decompression_than_bzip2)<br>
254 -z6p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use_parallel_lzip_compression_(testing),_for_multicore/CPU<br>
255 -z6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lzip_compression_(slowest_but_also_small_image,_faster_decompression_than_bzip2)<br>
256 -z0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No compression (fastest but largest image size)</font></p>
257 <!--empty-line-->
258 <p>This option chooses the method which is used to compress the image while creating it.</p>
259
260 <p>If no compression is used at all, there won't be any negative speed impact caused by compression. However, the image file size is the size of all the data backed up - for example, if you clone a 160 GB hard drive containing 60 gigabytes of data, the resulting disk image will be 60 gigabytes in size.</p>
261
262 <p><b>Gzip</b> and <b>lzop</b> are fast compression methods. <b>Lzop</b> is many times faster than <b>gzip</b>, but creates slightly larger images. <b>Clonezilla Live</b> warns that <b>lzop</b> requires good-quality RAM, but I (the contributor who wrote this chapter) think other compression methods require good RAM too.</p>
263
264 <p><b>Bzip2</b>, <b>lzma</b>, <b>xz</b> and <b>lzip</b> are powerful compression methods. <b>Lzma</b> creates a little smaller images than <b>bzip2</b>, and decompressing lzma-compressed images is faster than decompressing <b>bzip2</b> images. But there is no free lunch: <b>lzma</b> compression method is very slow compared even to <b>bzip2</b>, which isn't fast method either.</p>
265
266 <p><b>Lzma</b> method is becoming obsolete, and both <b>xz</b> and <b>lzip</b> are attempting to become its successor. They are a bit less powerful compression methods than <b>lzma</b>, but much faster. The differences between <b>xz</b> and <b>lzip</b> are virtually non-existent.</p>
267
268 <p>If you don't use the i486 version of <b>Clonezilla-SysRescCD</b> and your processor contains multiple cores and/or supports Hyper-Threading, parallel <b>gzip</b>, <b>bzip2</b>, <b>xz</b> and <b>lzip</b> compression methods are also available. Parallel compression means that each processor core compresses a different part of the image at a time. Without parallel compression one core compresses everything.</p>
269
270 <p>The speed impact caused by parallel compression depends on the number of processor cores available. In addition, Hyper-Threading increases the speed by about 30 % if parallel compression is used. For example, if your processor contains four cores and supports Hyper-Threading, speed with parallel compression is nearly 5,2 times as high as without. However, parallel compression is currently an experimental feature.</p>
271 <!--empty line-->
272 <H4><a name="splitting"></a>Splitting [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
273 <!--empty line-->
274 <p>This option (command line: <b>-i <font color="Red">[number]</font></b>) decides if the created image files are splitted into smaller pieces, and if yes, how large the pieces are. This setting doesn't usually matter, but some filesystems (most importantly FAT32) don't allow files larger than four gigabytes. If you're saving the disk image to a FAT32 partition, enter 4000 or less. (Value 0 disables splitting, so don't use it in that case.) If the filesystem allows files big enough, enter any value which isn't too small (you don't want to split the image into too many pieces, do you?)</p>
275
276 <p><b>Clonezilla Live</b> warns that it is no longer safe to disable splitting because value 0 can confuse init. I (the contributor) don't know what the warning exactly means and haven't been able to reproduce the problem. Anyway, entering a very big value, for example 999999999999, is a safe way to keep the image in one piece.</p>
277 <!--empty line-->
278 <H4><a name="backup-postaction"></a>Postaction [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
279 <!--empty line-->
280 <p class="newcode"><a name="backup_p_option"></a><font color="Red">-p true&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do nothing when the clone finishes<br>
281 -p reboot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reboot client when the clone finishes<br>
282 -p poweroff&nbsp;&nbsp;&nbsp;&nbsp;Shutdown client when the clone finishes</font></p>
283 <!--empty line-->
284 <p>In this screen you can decide what <b>Clonezilla Live</b> does when the disk/partition is cloned.</p>
285
286 <p>Spiros told <a href="#start-stop">above</a> that he has found out that it's not always safe to allow Live CDs automatically unmount partitions, and I have lost data when trying auto-unmount with a script. So, avoid <font color="Red"><b>-p reboot</b></font> and <font color="Red"><b>-p poweroff</b></font> options if possible. You have been warned.</p>
287
288
289
290 <H3><a name="restore-options"></a>Restore options (script ocs-sr) [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H3>
291 <!--empty line-->
292 <H4><a name="various-restore-parameters"></a>Various parameters [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
293 <!--empty line-->
294 <p>These options are available at the first "<i><b>Clonezilla advanced extra parameters</b></i>" screen.</p>
295 <p class="newcode"><a name="reinstall-grub"></a><font color="Red">-g auto&nbsp;Reinstall grub in client disk MBR (only if grub config exists)</font></p>
296 <p>Causes <b>Clonezilla Live</b> to reinstall GRUB into the Master Boot Record of the disk if at least one partition contains GRUB config file (/boot/grub/menu.lst). The option is enabled by default and shouldn't cause any harm. However, it should be disabled if you for example have another bootloader in MBR and chainload GRUB with it.</p>
297 <!--empty line-->
298 <p class="newcode"><a name="ntfs-geometry"></a><font color="Red">-e1 auto&nbsp;Automatically adjust filesystem geometry for a NTFS boot partition if exists</font></p>
299 <p>The NTLDR bootloader used by Windows isn't able to determine automatically where the files it needs are stored. It only knows their physical locations, which sometimes change when the disk or partition is copied. If the locations are changed and this option is selected, the location information of the files is changed accordingly. This option is enabled by default and if it's disabled, the cloned Windows will fail to boot.</p>
300 <!--empty line-->
301 <p class="newcode"><a name="chs-from-edd"></a><font color="Red">-e2&nbsp;sfdisk uses CHS of hard drive from EDD(for non-grub boot loader)</font></p>
302 <p>This option requires that the <font color="Red"><b>-e1 auto</b></font> option is selected. It causes <b>Clonezilla Live</b> to use disk read interface named EDD for determining the physical locations of the files when updating the location information used by NTLDR. The option is enabled by default because it reduces the risk that Windows doesn't boot.</p>
303 <!--empty line-->
304 <p class="newcode"><a name="change-win-ip-based-host"></a><font color="Red">-hn0 PC&nbsp;Change MS Win hostname (based on IP address) after clone</font></p>
305 <p>If this option is selected and a partition containing Microsoft Windows is cloned, its IP address -based hostname is changed after cloning. Computers which are on any network simultaneously need to have different hostnames, so this option is needed if a Windows system is cloned to another computer and the original computer is still used in addition to the one where the image was restored to.</p>
306 <!--empty line-->
307 <p class="newcode"><a name="change-win-mac-based-host"></a><font color="Red">-hn1 PC&nbsp;Change MS Win hostname (based on MAC address) after clone</font></p>
308 <p>This option causes the MAC address -based hostname of Windows to change. This option needs also be enabled in the above condition.</p>
309 <!--empty line-->
310 <p class="newcode"><a name="verbose"></a><font color="Red">-v&nbsp;Prints verbose messages (especially for udpcast)</font></p>
311 <p>Causes <b>Clonezilla Live</b> to tell more information of what it does.</p>
312 <!--empty line-->
313 <p class="newcode"><a name="restore-nogui"></a><font color="Red">-nogui&nbsp;Use text output only, no TUI/GUI output</font></p>
314 <p>Causes <b>Clonezilla Live</b> to force the used programs to use only command-line interface even if text-based or graphical user interface is available.</p>
315 <!--empty line-->
316 <p class="newcode"><a name="batch"></a><font color="Red">-b&nbsp;Run clone in batch mode (DANGEROUS!)</font></p>
317 <p>Causes <b>Clonezilla Live</b> to run in batch mode. According to Clonezilla Live reference card, this option is dangerous, though I (the contributor) don't know why.</p>
318 <!--empty line-->
319 <p class="newcode"><a name="restore-confirmation"></a><font color="Red">-c&nbsp;Client waits for confirmation before cloning</font></p>
320 <p>This option causes <b>Clonezilla Live</b> to ask if you really want to clone the disk/partition just before it starts cloning. It is enabled by default.</p>
321 <!--empty line-->
322 <p class="newcode"><a name="no-mbr"></a><font color="Red">-t&nbsp;Client does not restore the MBR (Mater Boot Record)</font></p>
323 <p>Do NOT restore the MBR (Mater Boot Record) when restoring image. If this option is set, you must make sure there is an existing MBR in the current restored harddisk. Default is Yes.</p>
324 <!--empty line-->
325 <p class="newcode"><a name="restore-syslinux-mbr"></a><font color="Red">-t1&nbsp;Client restores the prebuilt MBR from syslinux (For Windows only)</font></p>
326 <p>If this option is set, the MBR is overwritten by prebuilt one which chainloads Windows. Use this option if you have to restore Windows and make it bootable, but don't have the original MBR or backup of it.</p>
327 <!--empty line-->
328 <p class="newcode"><a name="resize-fs"></a><font color="Red">-r&nbsp;Try to resize the filesystem to fit partition size</font></p>
329 <p>This option is useful if you are cloning a small disk to larger one. It tries to resize the restored filesystem to the size of the partition where it was restored to. It allows you to use the whole size of your new disk without resizing the partition afterwards. The option requires that the disk where the image is copied already contains a partition where the image is restored or that the option <font color="Red"><b>-k1</b></font> is enabled.</p>
330 <!--empty line-->
331 <p class="newcode"><a name="load-geometry"></a><font color="Red">-e&nbsp;sfdisk uses the CHS value of hard drive from the saved image</font></p>
332 <p>Force to use the saved CHS (cylinders, heads, sectors) when using sfdisk. Of cource, there is no use of it when using any of <b><font color="Red">-j0</font></b>, <b><font color="Red">-k</font></b> or <b><font color="Red">-k2</font></b> options.</p>
333 <!--empty line-->
334 <p class="newcode"><a name="ignore-crc"></a><font color="Red">-icrc&nbsp;Ignore CRC checking of partclone</font></p>
335 <p>This option causes <b>partclone</b> to skip checking the CRC32 checksums of the image. Enabling this option speeds the restore process up. However, if this option is enabled and the <b><font color="Red">-cm</font></b> and <b><font color="Red">-cs</font></b> options are disabled, there is no way to notice if the image has corrupted.</p>
336 <!--empty line-->
337 <p class="newcode"><a name="mbr-again"></a><font color="Red">-j1&nbsp;Write MBR (512 B) again after image is restored. Not OK for partition table diffe</font></p>
338 <p>When a disk image is restored, the partition table must be updated to reflect the actual partitions in the disk. If you don't want it to happen, enable this option. Then the Master Boot Record (including the partition table) is restored again after restoring the image. Note that using this option can destroy all the data in the target drive.</p>
339 <!--empty line-->
340 <p class="newcode"><a name="restore-hidden-data"></a><font color="Red">-j2&nbsp;Clone the hidden data between MBR and 1st partition</font></p>
341 <p>If this option is set, the 15 hidden sectors between Master Boot Record and the first partition are restored. This area usually contains some data necessary for booting. The option is enabled by default and should be kept enabled if you are cloning a bootable disk.</p>
342 <!--empty line-->
343 <p class="newcode"><a name="check-md5"></a><font color="Red">-cm&nbsp;Check image by MD5 checksums</font></p>
344 <p>If the image folder contains MD5 checksum(s), this option causes <b>Clonezilla Live</b> to check if the image has corrupted by calculating its checksum and comparing it to the precalculated one. Mind you, calculating the checksum takes some time and slows the process down a little.</p>
345 <!--empty line-->
346 <p class="newcode"><a name="check-sha1"></a><font color="Red">-cs&nbsp;Check image by SHA1 checksums</font></p>
347 <p><p>This option is identical to the above, but checks SHA1 checksum(s) instead of MD5.</p>
348 <!--empty line-->
349 <p class="newcode"><a name="restore-no-dma"></a><font color="Red">-a&nbsp;Do NOT force to turn on HD DMA</font></p>
350 <p>Prevents <b>Clonezilla Live</b> from using DMA for communicating with hard drives. Slows cloning down but in some conditions cloning without this option can be impossible.</p>
351 <!--empty line-->
352 <p class="newcode"><a name="run-prerun-dir"></a><font color="Red">-o0&nbsp;Run script in $OCS_PRERUN_DIR before clone starts</font></p>
353 <p>Run the scripts in the directory $OCS_PRERUN_DIR before clone is started. The location of the directory can be determined by editing the file drbl-ocs.conf. By default it is /opt/drbl/share/ocs/prerun.</p>
354 <!--empty line-->
355 <p class="newcode"><a name="run-postrun-dir"></a><font color="Red">-o1&nbsp;Run script in $OCS_POSTRUN_DIR as clone finishes</font></p>
356 <p>Run the scripts in the directory $OCS_POSTRUN_DIR when clone is finished. The location of the directory can be determined by editing the file drbl-ocs.conf. By default it is /opt/drbl/share/ocs/postrun. The command will be run before that assigned in <font color="Red"><b>-p</b></font>.</p>
357 <!--empty line-->
358 <p>The scripts will be executed by the program "run-parts". run-parts only accepts that the name of the scripts must consist entirely of upper and lower case letters, digits and underscores. So if your file name has an illegal character ".", run-parts won't run it. You can test which files will be executed by entering the command:</p>
359 <p class="newcode">run-parts --test /opt/drbl/share/ocs/postrun</p>
360 <!--empty line-->
361 <H4><a name="partition-table"></a>Partition table [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
362 <!--empty line-->
363 <p>This option decides what is done to the partition table of the target drive.</p>
364 <p class="newcode"><a name="image-partition-table"></a><font color="Red">&nbsp;Use the partition table from the image</font></p>
365 <p>This option causes <b>Clonezilla Live</b> to copy the partition table from the image. Use this option if you are cloning a whole disk or somehow know that the partition tables are identical (for example, if you are restoring a partition to the same disk where it was copied from and haven't repartitioned the drive after creating the backup). This is the default option.</p>
366 <!--empty-line-->
367 <p class="newcode"><a name="no-fdisk"></a><font color="Red">-k&nbsp;Do NOT create a partition table on the target disk</font></p>
368 <p>Do NOT create partition in target harddisk. If this option is set, you must make sure there is an existing partition table in the current restored harddisk.</p>
369 <!--empty-line-->
370 <p class="newcode"><a name="sfdisk"></a><font color="Red">-k1&nbsp;Create partition table proportionally (OK for MRB format, not GPT)</font></p>
371 <p>Causes <b>Clonezilla Live</b> to create the partition table automatically using sfdisk after restoring the images. This option works nearly always, but sometimes cloned Windows don't boot. Note that this option doesn't work if you have GUID Partition Table on your disk. (Most likely you don't have one.)</p>
372 <!--empty-line-->
373 <p class="newcode"><a name="enter-cmd"></a><font color="Red">-k2&nbsp;Enter command line prompt to create partition manually later</font></p>
374 <p>Like the <font color="Red"><b>-k</b></font> option, this option doesn't create the partition table automatically. However, after restoring the image you are led to command line prompt where you can create the partition table manually. Don't use this option if you don't know how the partition table can be created.</p>
375 <!--empty-line-->
376 <p class="newcode"><a name="dd"></a><font color="Red">-j0&nbsp;Use dd to create partition (NOT OK if logical drives exist)</font></p>
377 <p>Use dd to dump the partition table from saved image instead of sfdisk.<br><br>
378 <!--empty line-->
379 We read in <a href="http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/23_Missing_OS.faq#23_Missing_OS.faq" target="_blank">DRBL FAQ/Q&#038;A</a>:</p>
380
381 <p class="otherpage">
382 When I use clonezilla to clone MS windows, there is no any problem when saving an image from template machine. However, after the image is restored to another machine, it fails to boot, the error message is "Missing Operating System" or just a blinking underscore. What's going on ?<br><br>
383 Usually this is because GNU/Linux and M$ windows interpret the CHS (cylinder, head, sector) value of harddrive differently. Some possible solutions:<br>
384 &nbsp;&nbsp;1. Maybe you can change the IDE harddrive setting in BIOS, try to use LBA instead of auto mode.<br>
385 &nbsp;&nbsp;2. Try to choose both<br>
386 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>[*] -j0 Use dd to create partition table instead of sfdisk</b><br>
387 &nbsp;&nbsp;and <br>
388 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>[*] -t1 Client restores the prebuilt MBR from syslinux</b> (For Windows only)<br>
389 &nbsp;&nbsp;&nbsp;&nbsp;when you restore the image.<br>
390 &nbsp;&nbsp;3. Try to choose<br>
391 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>[*] -t1 Client restores the prebuilt MBR from syslinux</b> (For Windows only)<br>
392 &nbsp;&nbsp;and *uncheck*<br>
393 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>[ ] -g auto Reinstall grub in client disk MBR</b> (only if grub config exists)<br>
394 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>[ ] -r Try to resize the filesystem to fit partition size</b><br>
395 &nbsp;&nbsp;when you restore the image. You can refer to <a href="http://www.ecs.umass.edu/pipermail/umasslug/2008-August/003380.html" target=_blank>this discussion</a>. Thanks to Alex Mckenzie for posting this on the forum.<br>
396 &nbsp;&nbsp;4. You can try to boot the machine with MS Windows 9x bootable floppy, and in the DOS command prompt, run: "fdisk /mbr".<br>
397 &nbsp;&nbsp;5. You can try to boot the machine with MS Windows XP installation CD, enter recovery mode (by pressing F10 key in MS XP, for example), then in the console, run "fixmbr" to fix it. Maybe another command "fixboot" will help, too. For more info, refer to <a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B314058&x=7&y=14" _target=blank>this doc</a><br>
398 &nbsp;&nbsp;6. Use <a href="http://sourceforge.net/projects/ntfsfixboot/" target=_blank>ntfsfixboot</a> to fix it. This program is included in Clonezila live and its name is partclone.ntfsfixboot, and you can use it to adjust FS geometry on NTFS partitions. By default this should be done by Clonezilla with the option -e1 and -e2 checked. If not, you can force to do that again. For more info, please run "partclone.ntfsfixboot --help" or refer to <a href="http://sourceforge.net/projects/ntfsfixboot/" target=_blank>http://sourceforge.net/projects/ntfsfixboot/</a>.<br>
399 &nbsp;&nbsp;7. Use ntfsreloc to adjust FS geometry on NTFS partitions. For more info, refer to <a href="http://www.linux-ntfs.org/doku.php?id=contrib:ntfsreloc" target=_blank>http://www.linux-ntfs.org/doku.php?id=contrib:ntfsreloc</a>. //NOTE// ntfsreloc is an older version of partclone.ntfsfixboot.<br>
400 &nbsp;&nbsp;8. If you get error messages like "0xc0000225, 0xc00000e", and something about Winload.exe, refer to <a href="http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/94_windows_winload_err.faq#94_windows_winload_err.faq">this</a>.<br>
401 &nbsp;&nbsp;9. Some more discussions are available <a href="https://sourceforge.net/projects/clonezilla/forums/forum/663168/topic/3748791" target=_blank>here</a>.
402 </p>
403
404
405
406
407
408 <!--empty line-->
409 <p>It has been confirmed that activating the <font color="Red"><b>-j0</b></font> option, usually fixes the problem.</p>
410 <!--empty line-->
411 <p>This option doesn't work if you use LVM (Logical Volume Manager).</p>
412 <!--empty line-->
413 <p class="newcode"><a name="exit"></a><font color="Red">exit&nbsp;Exit</font></p>
414 <p>This option ends the restore process and enters command line prompt.</p>
415 <!--empty line-->
416 <H4><a name="restore-postaction"></a>Postaction [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
417 <!--empty line-->
418 <p class="newcode"><a name="restore_p_option"></a><font color="Red">-p true&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do nothing when the clone finishes<br>
419 -p reboot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reboot client when the clone finishes<br>
420 -p poweroff&nbsp;&nbsp;&nbsp;&nbsp;Shutdown client when the clone finishes</font></p>
421 <!--empty line-->
422 <p>When image restoration finishes, do one of the following: choose action (default), poweroff or reboot.</p>
423
424
425
426 <!-- Saving -->
427 <H2><a name="ntfs"></a>Saving image files in NTFS partitions <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
428 <p>Although not recomended, you may find yourself having to save your image file in a NTFS (Windows XP) partition. You may never have a problem doing this, but you may get a message like the following one, when the partition gets mounted:</p>
429 <p class="newcode">Volume is scheduled for check<br>
430 Please boot into Windows TWICE, or use 'force' mount option"</p>
431 <p>and the backup procedure fails. There are two things you can do here:</p>
432
433 <ul>
434 <li><p style="margin-left: 0pt;">Exit the program, reboot and use <b>Windows XP Recovery Console</b> to fix the NTFS file system. From Recovery Console
435 prompt, execute the command:</p>
436 <p class="newcode" style="margin-left: 0pt;"><font color="Red">chkdsk /f X:</font></p>
437 <!--empty line-->
438 <p style="margin-left: 0pt;">where <font color="Red"><b>X:</b></font> is the drive letter of the disk. When done, boot back into <b>Clonezilla Live</b> and repeat the backup procedure.</p>
439 <!--empty line-->
440 <p style="margin-left: 0pt;">If the disk/partition you are trying to backup is not the Windows System disk (usually <b>C:</b>), you can boot Windows, and execute the command in a DOS window. To open a DOS window click <b>Start / Run... </b> and at the prompt <b>Open:</b> type <b><font color="Red">cmd</font>.</b></li></p>
441 <!--empty line-->
442 <p style="margin-left: 0pt;">If the Windows version you use is not XP and you're trying to backup the Windows System drive, boot into <b>SystemRescueCD</b> (graphical mode is not needed) and run the following command:</p>
443 <p class="newcode" style="margin-left: 0pt;"><font color="Red">ntfsfix /dev/hda1</font></p>
444 <!--empty line-->
445 <p style="margin-left: 0pt;">where <b>/dev/<font color="Red">hda1</font></b> is the partition name in GNU/Linux. When done, boot back into <b>Clonezilla Live</b> and repeat the backup procedure.</p>
446 <!--empty line-->
447 <li><p style="margin-left: 0pt;">If <b>Windows XP Recovery Console</b> is not available, you don't have the time to execute the procedure described above, or even if you have executed it but you still get the same message, and you are <b><u>absolutely sure</u></b> that you get this message because the NTFS partition is really scheduled for check, and it's not because Windows crushed or have become corrupt, you can mount the patririon by hand and tell <b>Clonezilla Live</b> to use it. Assuming the partition is <b>/dev/<font color="Red">hda1</font></b>, exit the program and execute the commands:</p>
448 <p class="newcode" style="margin-left: 0pt;">sudo su -<br>
449 ntfs-3g -o force /dev/<font color="Red">hda1</font> /home/partimag<br>
450 ocs-live</p>
451 <!--empty line-->
452 <p style="margin-left: 0pt;">and when you get to the screen "<b><i>Mount clonezilla image directory</i></b>", select</p>
453 <p class="newcode" style="margin-left: 0pt;"><font color="Red">skip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use existing /home/partimag</font></p>
454 </li>
455 </ul>
456
457
458 </div>
459
460
461
462 <!--<a name="template-top"></a>-->
463
464 <div id="footer">
465 <div id="docline-bottom"> <a href="boot-params.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="backup.html">NEXT &gt;</a> </div>
466 <p>Copyright: &#169; <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.2.0">Spiros Georgaras</a>, 2007-2010<br /><br/>
467 Hosted by <a href="http://hellug.gr/index.php/OSullogos/Tautothta?from=Main.HELLUG" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>
468 </div>
469 </div>
470 <div id="warning" align="center">
471 WARNING<br>
472 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
473 To access our current stable version, please click <a href="../index.html">here</a>
474 </div>
475 </body>
476 </html>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26