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

Contents of /trunk/www/2doc/doc/clonezilla.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (show annotations)
Thu May 20 17:17:28 2010 UTC (10 years, 5 months ago) by sng
File MIME type: text/html
File size: 38396 byte(s)
applying latest offline changes to all files through html2doc
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 - Offline Documentation: About Clonezilla Live</title>
7 <style type="text/css">
8 body { font-family: Arial, 'sans serif'; color: black; font-size: 12pt; background : url(null) 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 </style>
70 <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
71 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
72
73 </head>
74
75 <body>
76 <div id="header">
77 <H2>Clonezilla-SysRescCD</H2>
78 <H3>Offline Documentation: About Clonezilla Live</H3>
79 <div style="margin:0; padding: 3px; width: 980; position relative;">
80 <div style="position: absolute; left: 0px;"><H4>26/03/2010 - v 3.1.0</H4></div>
81 <div style="position: absolute; right: 0px;"><H4>Last update: 18/05/2010</H4></div>
82 </div>
83 </div>
84 <div id="linkline">
85
86
87 <!-- <a href="features.html">Features</a>-->
88 <a class="here" href="../README.html">Offline Documentation</a>
89
90
91
92
93
94 <!-- docline-top-->
95 <div id="docline-top"> <a href="boot-params.html">&lt; PREV</a> <a href="../README.html">UP</a> <a href="backup.html">NEXT &gt;</a> </div>
96 </div>
97 <div id="contarea">
98 <div id="content">
99 <a name="clonezilla-top"></a>
100
101
102
103
104 <!-- Intro -->
105 <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>
106 <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>
107 <!--empty line-->
108 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>
109
110
111 <p>
112 <b>Clonezilla Live</b> provides two modes of operation:
113 </p>
114
115 <ul>
116 <li><b>device-image</b><br>
117 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.
118 </li>
119 <li><b>device-device (cloning)</b><br>
120 This mode of operation creates an exact copy of the original disk/partition on the fly.</li>
121 </ul>
122 <p>When working in <b>device-image</b> mode, you will always have to specify three things:</p>
123 <ul>
124 <li>The location of the image file</li>
125 <li>The working parameters for the operation</li>
126 <li>The disk/partition that will be saved/restored</li>
127 </ul>
128
129 <p><b>Clonezilla Live</b> provides a user friendly interface in order to insert this data.<br><br>
130 <!--empty line-->
131 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.
132 </p>
133
134
135 <!-- Start - Stop -->
136 <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>
137 <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>
138 <p class="newcode">Now you can choose to:<br>
139 (0) Poweroff<br>
140 (1) Reboot<br>
141 (2) Enter command line prompt<br>
142 (3) Start over<br>
143 [2]</p>
144 <!--empty line-->
145 <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>
146 <p class="newcode"><a name="umount"></a>sudo su -<br>
147 mount | grep /dev/[sh]d</p>
148 <p>and then unmount the partitions shown by the last command. So if the results of this command is for example:</p>
149 <p class="newcode"><font color="Green">/dev/hda1</font> on /home/partimag type vfat (rw)</p>
150 <p>just type the command:</p>
151 <p class="newcode">umount <font color="Green">/dev/hda1</font></p>
152 <p>and it's now safe to Poweroff of Reboot.<br><br>
153 <!--empty line-->
154 If, on the other hand, you just want to restart the program, type:</p>
155 <p class="newcode">ocs-live</p>
156
157
158
159 <!-- About -->
160 <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>
161 <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>
162 <!--empty line-->
163 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 under <b>/home/partimag</b>.<br><br>
164 <!--empty line-->
165 This folder is very important for <b>Clonezilla Live</b>; the image file <b>must</b> be located under this directory, which means that the image file <b>must</b> be on the root directory of the mounted partition. So you can not, for example, create a folder called <b>all_my_images</b> and move all your image files in there; <b>Clonezilla Live</b> will not be able to find them!!!<br><br>
166 <!--empty line-->
167 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>
168 <!--empty line-->
169 There are two things you can do in this case; either unmount the partition, as stated <a href="#umount">above</a>, or select</p>
170 <p class="newcode"><font color="Red">skip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use existing /home/partimag</font></p>
171 <!--empty line-->
172 <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>
173 <!--empty line-->
174 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>
175
176
177
178 <!-- Options -->
179 <H2><a name="options"></a>Scripts' options <span class="hideprint">[<a href="#clonezilla-top" title="go to top of the page">^</a>]</span></H2>
180 <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>
181 <!-- 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. -->
182 <!--empty line-->
183 <H3><a name="backup-options"></a>Backup options [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H3>
184 <!--empty line-->
185 <H4><a name="imaging-program-priority"></a>Imaging program priority [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
186 <!--empty line-->
187 <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>
188 -q1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: Only dd (supports all filesystem, but inefficient)<br>
189 -q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: ntfsclone > partimage > dd<br>
190 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: partimage > dd (no ntfsclone)</font></p>
191 <!--empty-line-->
192 <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>
193 <!--empty line-->
194 <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>
195 <!--empty line-->
196 <H4><a name="various-backup-parameters"></a>Various parameters [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
197 <!--empty line-->
198 <p>These options are available at the second "<i><b>Clonezilla advanced extra parameters</b></i>" screen.</p>
199 <p class="newcode"><a name="backup-confirmation"></a><font color="Red">-c&nbsp;Client waits for confirmation before cloning</font></p>
200 <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>
201 <!--empty line-->
202 <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>
203 <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>
204 <!--empty line-->
205 <p class="newcode"><a name="backup-nogui"></a><font color="Red">-nogui&nbsp;Use text output only, no TUI/GUI output</font></p>
206 <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>
207 <!--empty line-->
208 <p class="newcode"><a name="backup-no-dma"></a><font color="Red">-a&nbsp;Do NOT force to turn on HD DMA</font></p>
209 <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>
210 <!--empty line-->
211 <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>
212 <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>
213 <!--empty line-->
214 <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>
215 <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>
216 <!--empty line-->
217 <p class="newcode"><a name="gen-md5"></a><font color="Red">-gm&nbsp;Generate image MD5 checksums</font></p>
218 <p>Causes <b>Clonezilla Live</b> to calculate MD5 checksum(s) of image(s) created. If the image cets 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>
219 <!--empty line-->
220 <p class="newcode"><a name="gen-sha1"></a><font color="Red">-gs&nbsp;Generate image SHA1 checksums</font></p>
221 <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>
222 <!--empty line-->
223 <H4><a name="compression-method"></a>Compression method [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
224 <!--empty line-->
225 <p class="newcode"><a name="z_option"></a><font color="Red">-z1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gzip compression (fast with a smaller image)<br>
226 -z2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bzip2 compression (slowest but smallest image)<br>
227 -z3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lzo compression (faster with image size approx. to that of gzip)(NOTE!!)<br>
228 -z4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lzma compression (slowest but also small image, faster decompression than bzip2)<br>
229 -z0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No compression (fastest but largest image size)</font></p>
230 <!--empty-line-->
231 <p>This option chooses the method which is used to compress the image while creating it.</p>
232
233 <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>
234
235 <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>
236
237 <p><b>Bzip2</b> and <b>lzma</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>
238 <!--empty line-->
239 <H4><a name="splitting"></a>Splitting [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
240 <!--empty line-->
241 <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>
242 <!--empty line-->
243 <H4><a name="backup-postaction"></a>Postaction [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
244 <!--empty line-->
245 <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>
246 -p reboot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reboot client when the clone finishes<br>
247 -p poweroff&nbsp;&nbsp;&nbsp;&nbsp;Shutdown client when the clone finishes</font></p>
248 <!--empty line-->
249 <p>In this screen you can decide what <b>Clonezilla Live</b> does when the disk/partition is cloned.</p>
250
251 <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>
252
253
254
255 <H3><a name="restore-options"></a>Restore options (script ocs-sr) [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H3>
256 <!--empty line-->
257 <H4><a name="various-restore-parameters"></a>Various parameters [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
258 <!--empty line-->
259 <p>These options are available at the first "<i><b>Clonezilla advanced extra parameters</b></i>" screen.</p>
260 <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>
261 <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>
262 <!--empty line-->
263 <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>
264 <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>
265 <!--empty line-->
266 <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>
267 <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>
268 <!--empty line-->
269 <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>
270 <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>
271 <!--empty line-->
272 <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>
273 <p>This option causes the MAC address -based hostname of Windows to change. This option needs also be enabled in the above condition.</p>
274 <!--empty line-->
275 <p class="newcode"><a name="verbose"></a><font color="Red">-v&nbsp;Prints verbose messages (especially for udpcast)</font></p>
276 <p>Causes <b>Clonezilla Live</b> to tell more information of what it does.</p>
277 <!--empty line-->
278 <p class="newcode"><a name="restore-nogui"></a><font color="Red">-nogui&nbsp;Use text output only, no TUI/GUI output</font></p>
279 <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>
280 <!--empty line-->
281 <p class="newcode"><a name="batch"></a><font color="Red">-b&nbsp;Run clone in batch mode (DANGEROUS!)</font></p>
282 <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>
283 <!--empty line-->
284 <p class="newcode"><a name="restore-confirmation"></a><font color="Red">-c&nbsp;Client waits for confirmation before cloning</font></p>
285 <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>
286 <!--empty line-->
287 <p class="newcode"><a name="no-mbr"></a><font color="Red">-t&nbsp;Client does not restore the MBR (Mater Boot Record)</font></p>
288 <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>
289 <!--empty line-->
290 <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>
291 <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>
292 <!--empty line-->
293 <p class="newcode"><a name="resize-fs"></a><font color="Red">-r&nbsp;Try to resize the filesystem to fit partition size</font></p>
294 <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>
295 <!--empty line-->
296 <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>
297 <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>
298 <!--empty line-->
299 <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>
300 <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>
301 <!--empty line-->
302 <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>
303 <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>
304 <!--empty line-->
305 <p class="newcode"><a name="check-md5"></a><font color="Red">-cm&nbsp;Check image by MD5 checksums</font></p>
306 <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>
307 <!--empty line-->
308 <p class="newcode"><a name="check-sha1"></a><font color="Red">-cs&nbsp;Check image by SHA1 checksums</font></p>
309 <p><p>This option is identical to the above, but checks SHA1 checksum(s) instead of MD5.</p>
310 <!--empty line-->
311 <p class="newcode"><a name="restore-no-dma"></a><font color="Red">-a&nbsp;Do NOT force to turn on HD DMA</font></p>
312 <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>
313 <!--empty line-->
314 <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>
315 <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>
316 <!--empty line-->
317 <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>
318 <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>
319 <!--empty line-->
320 <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>
321 <p class="newcode">run-parts --test /opt/drbl/share/ocs/postrun</p>
322 <!--empty line-->
323 <H4><a name="partition-table"></a>Partition table [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
324 <!--empty line-->
325 <p>This option decides what is done to the partition table of the target drive.</p>
326 <p class="newcode"><a name="image-partition-table"></a><font color="Red">&nbsp;Use the partition table from the image</font></p>
327 <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>
328 <!--empty-line-->
329 <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>
330 <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>
331 <!--empty-line-->
332 <p class="newcode"><a name="sfdisk"></a><font color="Red">-k1&nbsp;Create partition table proportionally (OK for MRB format, not GPT)</font></p>
333 <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>
334 <!--empty-line-->
335 <p class="newcode"><a name="enter-cmd"></a><font color="Red">-k2&nbsp;Enter command line prompt to create partition manually later</font></p>
336 <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>
337 <!--empty-line-->
338 <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>
339 <p>Use dd to dump the partition table from saved image instead of sfdisk.<br><br>
340 <!--empty line-->
341 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>
342
343 <p style="margin-left: 40pt; margin-right: 40pt;">When I use clonezilla to clone M$ 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 "<b>Missing Operating System</b>". What's going on ?<br><br>
344 <!--empty line-->
345 Usually this is because GNU/Linux and M$ windows interpret the CHS (cylinder, head, sector) value of harddrive differently. Some possible solutions:<br>
346 &nbsp;&nbsp;1. Maybe you can change the IDE harddrive setting in BIOS, try to use LBA instead of auto mode.<br>
347 &nbsp;&nbsp;2. Try to choose<br>
348 &nbsp;&nbsp;&nbsp;&nbsp;<b>[ ] -j0 Use dd to create partition table instead of sfdisk</b><br>
349 &nbsp;&nbsp;and<br>
350 &nbsp;&nbsp;&nbsp;&nbsp;<b>[ ] -t1 Client restores the prebuilt MBR from syslinux (For Windows only)</b><br>
351 &nbsp;&nbsp;when you restore the image.<br>
352 &nbsp;&nbsp;3. You can try to boot the machine with MS Windows 9x bootable floppy, and in the DOS command prompt, run: "fdisk /mbr".
353 &nbsp;&nbsp;4. 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>
354 &nbsp;&nbsp;5. 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></p>
355 <!--empty line-->
356 <p>It has been confirmed that activating the <font color="Red"><b>-j0</b></font> option, fixes the problem.</p>
357 <!--empty line-->
358 <p>This option doesn't work if you use LVM (Logical Volume Manager).</p>
359 <!--empty line-->
360 <p class="newcode"><a name="exit"></a><font color="Red">exit&nbsp;Exit</font></p>
361 <p>This option ends the restore process and enters command line prompt.</p>
362 <!--empty line-->
363 <H4><a name="restore-postaction"></a>Postaction [<a href="#clonezilla-top" title="go to top of the page">^</a>]</H4>
364 <!--empty line-->
365 <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>
366 -p reboot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reboot client when the clone finishes<br>
367 -p poweroff&nbsp;&nbsp;&nbsp;&nbsp;Shutdown client when the clone finishes</font></p>
368 <!--empty line-->
369 <p>When image restoration finishes, do one of the following: choose action (default), poweroff or reboot.</p>
370
371
372
373 <!-- Saving -->
374 <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>
375 <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>
376 <p class="newcode">Volume is scheduled for check<br>
377 Please boot into Windows TWICE, or use 'force' mount option"</p>
378 <p>and the backup procedure fails. There are two things you can do here:</p>
379
380 <ul>
381 <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
382 prompt, execute the command:</p>
383 <p class="newcode" style="margin-left: 0pt;"><font color="Red">chkdsk /f X:</font></p>
384 <!--empty line-->
385 <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>
386 <!--empty line-->
387 If the Windows version you use is not XP, boot into <b>SystemRescueCD</b> (graphical mode is not needed) and run the following command:
388 <p class="newcode" style="margin-left: 0pt;"><font color="Red">ntfsfix /dev/hda1</font></p>
389 <!--empty line-->
390 <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>
391 <!--empty line-->
392 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>
393 <!--empty line-->
394 <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>
395 <p class="newcode" style="margin-left: 0pt;">sudo su -<br>
396 ntfs-3g -o force /dev/<font color="Red">hda1</font> /home/partimag<br>
397 ocs-live</p>
398 <!--empty line-->
399 <p style="margin-left: 0pt;">and when you get to the screen "<b><i>Mount clonezilla image directory</i></b>", select</p>
400 <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>
401 </li>
402 </ul>
403
404
405 </div>
406
407
408
409 <!--<a name="template-top"></a>-->
410
411 <div id="footer">
412 <div id="docline-bottom"> <a href="boot-params.html">&lt; PREV</a> <a href="../README.html">UP</a> <a href="backup.html">NEXT &gt;</a> </div>
413 <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.1.0">Spiros Georgaras</a>, 2007-2010<br /><br/>
414 Hosted by <a href="http://www.hellug.gr" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>
415 </div>
416 </div>
417 </body>
418 </html>

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26