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

Annotation of /trunk/www/reloc-img.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 183 - (hide annotations)
Mon Jul 4 13:31:17 2011 UTC (10 years, 3 months ago) by sng
File MIME type: text/html
File size: 28961 byte(s)
- Fixing a misplaced cd command in usb.html
- Adding a basic tutorial (basic-vi.html)
- Updating trunk site

1 sng 28 <!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: Restoring to a different location</title>
7     <style type="text/css">
8 sng 125 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 sng 28
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 sng 145 #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 sng 144 #warning a { color: white; font-weight: bold; text-decoration: underline; }
71 sng 28 </style>
72 sng 144 <link href="warning.css" rel="stylesheet" type="text/css" />
73     <!--
74     The file waring.css exists only in the root of the site
75 sng 146 and it hides the UNSTABLE warnings. Its contents are
76 sng 144 #warning { display: none; }
77     -->
78 sng 28 <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 sng 144 <div id="warning" align="center">
85     WARNING<br>
86 sng 146 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
87 sng 149 To access our current stable version, please click <a href="../index.html">here</a>
88 sng 144 </div>
89 sng 28 <div id="header">
90 sng 124 <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 sng 28 <H2>Clonezilla-SysRescCD</H2>
92     <H3>Documentation: Restoring to a different location</H3>
93     <div style="margin:0; padding: 3px; width: 980; position relative;">
94 sng 172 <div style="position: absolute; left: 0px;"><H4>30/06/2011 - v 3.2.0</H4></div>
95 sng 183 <div style="position: absolute; right: 0px;"><H4>Last update: 04/07/2011</H4></div>
96 sng 28 </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 sng 95 <a href="download.html">Download</a>
104 sng 28 <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="restore-burn.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="supergrubdisk.html">NEXT &gt;</a> </div>
113     </div>
114     <div id="contarea">
115     <div id="content">
116     <a name="reloc-img-top"></a>
117    
118     <!-- On the CD -->
119    
120     <H2 style="margin-top: 0;"><a name="reloc-img-intro"></a>Intro <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H2>
121    
122     <p>In the past restoring to a different location was not supported by <b>Clonezilla Live</b> at all. Because of that, a script called <b>reloc-img</b> was added to <b>Clonezilla-SysRescCD</b>, which would help the user perform this task.</p>
123    
124     <p>Recent versions of <b>Clonezilla Live</b> partly support restoring to a different location, so the <b>reloc-img</b> script is obsolete, and has been removed. <b>Clonezilla Live</b> now supports:</p>
125    
126     <ul>
127     <li>Relocation of a disk image (restoring a whole disk)</li>
128     <li>Relocation of a partition image (restoring a partition)</li>
129     </ul>
130    
131     <p><b>Clonezilla Live</b> does not support:</p>
132     <ul>
133     <li>Relocation of a single partition contained into a disk image.<br>
134     <br>
135     Imagine you have a disk backup image named <b>hda-2009-02-02</b>. The image contains three partitions, <span style="color: Red; font-weight: bold;">hda1</span> (operating system), <span style="color: Red; font-weight: bold;">hda2</span> (user data) and <span style="color: Red; font-weight: bold;">hda3</span> (other data).<br>
136     <br>
137     You want to restore your <b>other data</b> partition (<span style="color: Red; font-weight: bold;">hda3</span>), to a different system (partition <span style="color: Green; font-weight: bold;">sdb2</span>) but there is no way to restore (extract) a single partition from a disk image - you can only restore the whole disk.
138     </li>
139     </ul>
140    
141     <p>In order to address this situation, two new scripts have been written for <b>Clonezilla-SysRescCD</b>: <b>imginfo</b> and <b>imgconvert</b>
142    
143     <H2><a name="imginfo-script"></a>Script imginfo <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H2>
144    
145     <p>The script will be used to print info about existing image files.</p>
146    
147     <p>Its help screen is:</p>
148    
149     <p class="newcode">
150     #&nbsp;<font color="Red">imginfo&nbsp;-h</font><br>
151     Clonezilla&nbsp;Live&nbsp;Image&nbsp;Information<br>
152 sng 167 imginfo&nbsp;v.&nbsp;0.2&nbsp;-&nbsp;(C)&nbsp;2009-2010&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
153 sng 28 <br>
154     Usage:&nbsp;imginfo&nbsp;&lt;options&gt;&nbsp;&lt;directory&gt;<br>
155     <br>
156     Available&nbsp;options:<br>
157     &nbsp;&nbsp;s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Search&nbsp;in&nbsp;sub-directories&nbsp;too<br>
158     &nbsp;&nbsp;i&nbsp;[name]&nbsp;&nbsp;Pring&nbsp;info&nbsp;for&nbsp;image&nbsp;[name]<br>
159     &nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
160     &nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit
161     </p>
162    
163     <H2><a name="imgconvert-script"></a>Script imgconvert <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H2>
164    
165 sng 167 <p>The script will be used to convert an existing <b>disk</b> or <b>partition</b> image file to a new <b>partition</b> image file.</p>
166 sng 28
167     <p><b>imgconvert</b> can create two type of images:</p>
168    
169     <ol>
170     <li><b>Temporary image</b><br>
171     This type of image is created by linking the data files of the existing disk image to the new partition image. This means that the original image <b>must</b> be present for the new image to be used. This is the default image type created by <b>imgconvert</b>.
172     </li>
173     <li><b>Permanent image</b><br>
174     This type of image is created by copying the data files from the existing disk image to the new partition image. This means that the original image is not needed in order to use the new one. Permenant image files are created using the command line parameter <b>-p</b>.</li>
175     </ol>
176    
177     <p>Its help screen is:</p>
178    
179     <p class="newcode"># <font color="Red">imgconvert -h</font><br>
180     Clonezilla Live Image Conversion<br>
181 sng 167 imgconvert v. 0.2 - (C) 2009-2011 S. Georgaras &lt;sng@hellug.gr&gt;<br>
182 sng 28 <br>
183     Usage: imgconvert &lt;options&gt; [image] [partition] &lt;new partition&gt;<br>
184     <br>
185     Parameters&nbsp;are:<br>
186     &nbsp;&nbsp;[image]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disk&nbsp;image&nbsp;to&nbsp;be&nbsp;converted&nbsp;to&nbsp;partition&nbsp;image<br>
187     &nbsp;&nbsp;[partition]&nbsp;Partition&nbsp;name&nbsp;to&nbsp;convert.&nbsp;It&nbsp;must&nbsp;be&nbsp;a&nbsp;valid&nbsp;device&nbsp;name<br>
188     <br>
189     Available&nbsp;options:<br>
190     &nbsp;&nbsp;o&nbsp;[image]&nbsp;&nbsp;Save&nbsp;new&nbsp;imag&nbsp;as&nbsp;[image]<br>
191     &nbsp;&nbsp;p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save&nbsp;new&nbsp;partition&nbsp;instead&nbsp;of&nbsp;making&nbsp;a&nbsp;link&nbsp;to&nbsp;the&nbsp;old&nbsp;one<br>
192     &nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
193     &nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit</p>
194    
195    
196    
197     <H2><a name="scripts-using"></a>Using the scripts <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H2>
198    
199     <H3><a name="restore_part"></a>Restoring to a partition <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H3>
200    
201     <p>After booting into <b>Clonezilla Live</b>, I select<br>
202     <br>
203     <span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enter_shell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enter command line prompt</span><br>
204     <br>
205     when the menu is displayed and then I press <span style="color: Red; font-weight: bold;">2</span> to exit to the shell.<br>
206     <br>
207     At this point I will mount my images partition (in this example <span style="color: Green; font-weight: bold">/dev/sdc4</span>), and use script <b>imginfo</b> to get info about my image files.</p>
208    
209    
210     <p class="newcode">$ sudo su -<br>
211     # mount <span style="color: Green; font-weight: bold">/dev/sdc4</span> /home/partimag<br>
212     # cd /home/partimag<br>
213     # <span style="color: Red;">imginfo</span><br>
214     Image files found in: <span style="color: Green;">/home/partimag</span><br>
215     &nbsp;&nbsp;Image:&nbsp;usb250-img,&nbsp;disk:&nbsp;sda,&nbsp;size:&nbsp;259MB,&nbsp;parts:&nbsp;1<br>
216     &nbsp;&nbsp;&nbsp;&nbsp;part:&nbsp;sda4,&nbsp;size:&nbsp;247.00MB,&nbsp;type:&nbsp;FAT16<br>
217     &nbsp;&nbsp;Image:&nbsp;sys-bck,&nbsp;disk:&nbsp;hda,&nbsp;size:&nbsp;320.0GB,&nbsp;parts:&nbsp;3<br>
218     &nbsp;&nbsp;&nbsp;&nbsp;part:&nbsp;hda1,&nbsp;size:&nbsp;22.36GB,&nbsp;type:&nbsp;Linux<br>
219     &nbsp;&nbsp;&nbsp;&nbsp;part:&nbsp;hda2,&nbsp;size:&nbsp;39.06GB,&nbsp;type:&nbsp;Linux<br>
220     &nbsp;&nbsp;&nbsp;&nbsp;part:&nbsp;<span style="color: Green;">hda3</span>,&nbsp;size:&nbsp;233.87GB,&nbsp;type:&nbsp;Linux
221     </p>
222    
223     <p>As you can see there are two disk images under /home/partimag: <b>usb250-img</b> and <b>sys-bck</b>. </p>
224    
225     <p><b>sys-bck</b> is a backup of my old system, which had three partitions. What I need to do now is "copy" the <span style="color: Green; font-weight: bold">hda3</span> partition to my current system, by transfering its data to partition <span style="color: Green; font-weight: bold">sdb2</span>.<br>
226     <br>
227     The way to proceed is:
228     </p>
229    
230     <ol>
231     <li>Create a new partition image (containing <span style="color: Green; font-weight: bold">hda3</span>'s data) based on the existing disk image file, by executing the command:
232    
233     <p class="newcode"># <span style="color: Red;">imgconvert sys-bck hda3 sdb2</span><br>
234     Clonezilla Live Image Conversion<br>
235 sng 167 imgconvert v. 0.2 - (C) 2009-2011 S. Georgaras <sng@hellug.gr><br>
236 sng 28 <br>
237     Determining input image<br>
238     &nbsp;&nbsp;Input&nbsp;image:&nbsp;"/home/partimag/sys-bck"<br>
239     &nbsp;&nbsp;Validating&nbsp;image...&nbsp;&nbsp;&nbsp;ok<br>
240     Determining&nbsp;input&nbsp;partition<br>
241     &nbsp;&nbsp;Input&nbsp;partition:&nbsp;"hda3"<br>
242     &nbsp;&nbsp;Validating&nbsp;input&nbsp;partition...&nbsp;&nbsp;&nbsp;ok<br>
243     Determining&nbsp;output&nbsp;image<br>
244     &nbsp;&nbsp;Output&nbsp;image:&nbsp;"<span style="color: Green;">/home/partimag/sys-bck-cnv</span>"<br>
245     &nbsp;&nbsp;Validating&nbsp;output&nbsp;image...&nbsp;&nbsp;&nbsp;ok<br>
246     &nbsp;&nbsp;Checking&nbsp;permissions...&nbsp;&nbsp;&nbsp;ok<br>
247     Determining&nbsp;output&nbsp;partition<br>
248     &nbsp;&nbsp;Output&nbsp;partition:&nbsp;"sda2"<br>
249     &nbsp;&nbsp;Validating&nbsp;output&nbsp;partition...&nbsp;&nbsp;&nbsp;ok<br>
250     Creating&nbsp;output&nbsp;image:&nbsp;/home/partimag/sys-bck-cnv<br>
251     &nbsp;&nbsp;<span style="color: #990000;">Linking&nbsp;files...</span>&nbsp;&nbsp;&nbsp;done<br>
252     &nbsp;&nbsp;Fixing&nbsp;info&nbsp;files...&nbsp;&nbsp;&nbsp;done
253     </p>
254     This command will create a <b>temporary</b> partition image file (automatically named <span style="color: Green; font-weight: bold">sys-bck-cnv</span>), which contains <span style="color: Green; font-weight: bold">sdb2</span> only, as you can see by executing:
255    
256    
257     <p class="newcode"># <span style="color: Red;">imginfo -i</span> <span style="color: Green;">sys-bck-cnv</span><br>
258     &nbsp;&nbsp;&nbsp;&nbsp;Image: sys-bck-cnv, part:&nbsp;<span style="color: Green;">sdb2</span>,&nbsp;size:&nbsp;233.87GB,&nbsp;type:&nbsp;Linux
259     </p>
260     </li>
261    
262     <li>Restart <b>Clonezilla Live</b> by pressing <b>Control-D</b> twice.</li>
263    
264     <li>Restore the new image file into <span style="color: Green; font-weight: bold">sdb2</span>, by selecting<br>
265     <br>
266     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Screen&nbsp;1:&nbsp;<span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start_Clonezilla&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start Clonezilla</span><br>
267     <br>
268     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Screen&nbsp;2:&nbsp;<span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;device-image&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;disk/partition to/from image</span><br>
269     <br>
270     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Screen&nbsp;3:&nbsp;<span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;skip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use existing /home/partimag</span><br>
271     <br>
272     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Screen&nbsp;4:&nbsp;<span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Beginer / Expert</span><br>
273     <br>
274     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Screen&nbsp;5:&nbsp;<span style="color: Red; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;restoreparts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Restore_an_image_to_local_partition</span><br>
275     <br>
276     and continue as usual to restore the partition.</li>
277     </ol>
278    
279    
280     <H3><a name="converting_img"></a>Converting image files <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H3>
281    
282    
283    
284    
285     <p class="newcode"># <span style="color: Red;">imgconvert <span style="color: #990000;">-p -o other_data</span> sys-bck hda3 sdb2</span><br>
286     Clonezilla Live Image Conversion<br>
287 sng 167 imgconvert v. 0.2 - (C) 2009-2011 S. Georgaras <sng@hellug.gr><br>
288 sng 28 <br>
289     Determining input image<br>
290     &nbsp;&nbsp;Input&nbsp;image:&nbsp;"/home/partimag/sys-bck"<br>
291     &nbsp;&nbsp;Validating&nbsp;image...&nbsp;&nbsp;&nbsp;ok<br>
292     Determining&nbsp;input&nbsp;partition<br>
293     &nbsp;&nbsp;Input&nbsp;partition:&nbsp;"hda3"<br>
294     &nbsp;&nbsp;Validating&nbsp;input&nbsp;partition...&nbsp;&nbsp;&nbsp;ok<br>
295     Determining&nbsp;output&nbsp;image<br>
296     &nbsp;&nbsp;Output&nbsp;image:&nbsp;"<span style="color: Green;">/home/partimag/other_data</span>"<br>
297     &nbsp;&nbsp;Validating&nbsp;output&nbsp;image...&nbsp;&nbsp;&nbsp;ok<br>
298     &nbsp;&nbsp;Checking&nbsp;permissions...&nbsp;&nbsp;&nbsp;ok<br>
299     Determining&nbsp;output&nbsp;partition<br>
300     &nbsp;&nbsp;Output&nbsp;partition:&nbsp;"sda2"<br>
301     &nbsp;&nbsp;Validating&nbsp;output&nbsp;partition...&nbsp;&nbsp;&nbsp;ok<br>
302     Creating&nbsp;output&nbsp;image:&nbsp;/home/partimag/other_data<br>
303     &nbsp;&nbsp;<span style="color: #990000;">Copying&nbsp;files...</span>&nbsp;&nbsp;&nbsp;done<br>
304     &nbsp;&nbsp;Fixing&nbsp;info&nbsp;files...&nbsp;&nbsp;&nbsp;done
305     </p>
306    
307    
308     <p class="newcode"># <span style="color: Red;">imginfo -i</span> <span style="color: Green;">other_data</span><br>
309     &nbsp;&nbsp;&nbsp;&nbsp;Image: other_data, part:&nbsp;<span style="color: Green;">sdb2</span>,&nbsp;size:&nbsp;233.87GB,&nbsp;type:&nbsp;Linux</p>
310    
311    
312     <p class="newcode"># <span style="color: Red;">ls -la <span style="color: Green;">sys-bck</span></span><br>
313     total 1111972<br>
314     drwxr-xr-x&nbsp;&nbsp;&nbsp;2&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4096&nbsp;2007-11-22&nbsp;03:21&nbsp;.<br>
315     drwxr-xr-x.&nbsp;34&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4096&nbsp;2009-04-06&nbsp;21:28&nbsp;..<br>
316     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;2007-11-20&nbsp;20:33&nbsp;disk<br>
317     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;1081716736&nbsp;2007-11-20&nbsp;20:32&nbsp;hda1.aa<br>
318     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;45453312&nbsp;2007-11-20&nbsp;20:33&nbsp;hda2.aa<br>
319     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;<span style="color: Green;">10317824</span>&nbsp;2007-11-20&nbsp;20:33&nbsp;<span style="color: Green;">hda3.aa</span><br>
320     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;2007-11-21&nbsp;18:56&nbsp;hda-chs.sf<br>
321     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;2007-11-21&nbsp;18:50&nbsp;hda-chs.sf.orig<br>
322     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;512&nbsp;2007-11-20&nbsp;20:31&nbsp;hda-mbr<br>
323     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;259&nbsp;2007-11-21&nbsp;18:59&nbsp;hda-pt.sf<br>
324     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;259&nbsp;2007-11-21&nbsp;18:50&nbsp;hda-pt.sf.orig<br>
325     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15&nbsp;2007-11-20&nbsp;20:33&nbsp;parts<br>
326     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17&nbsp;2007-11-20&nbsp;20:33&nbsp;swappt-hda4.info<br>
327     #<br>
328     #<br>
329     # <span style="color: Red;">ls -la <span style="color: Green;">other_data</span></span><br>
330     total 24<br>
331     drwxr-xr-x&nbsp;&nbsp;&nbsp;2&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4096&nbsp;2009-04-06&nbsp;21:27&nbsp;.<br>
332     drwxr-xr-x.&nbsp;35&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4096&nbsp;2009-04-06&nbsp;21:27&nbsp;..<br>
333     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;2009-04-06&nbsp;21:27&nbsp;parts<br>
334     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;<span style="color: Green;">10317824</span>&nbsp;2009-04-06&nbsp;21:27&nbsp;<span style="color: Green;">sdb2.aa</span><br>
335     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;37&nbsp;2009-04-06&nbsp;21:27&nbsp;sdb-chs.sf<br>
336     -rw-r--r--&nbsp;&nbsp;&nbsp;1&nbsp;root&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;106&nbsp;2009-04-06&nbsp;21:27&nbsp;sdb-pt.sf
337     </p>
338    
339    
340    
341    
342    
343    
344    
345    
346    
347    
348    
349    
350    
351    
352    
353     <H2><a name="reloc-img-boot"></a>Booting a restored Linux system <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H2>
354    
355     <p>A Linux system that has been restored to a new disk/partition, is usually not ready to be booted right after the restoration procedure is finished.</p>
356    
357     <p>There are two more steps that you may have to take:</p>
358    
359     <ul>
360     <li>Fix <b>/etc/fstab</b></li>
361     <li>Reinstall <b>GRUB</b>.<br>
362     I will assume GRUB is your boot manager, as it is the usual case nowadays.</li>
363     </ul>
364    
365     <p>For this example I will assume that you have restored a Linux system (that used to be in <font color="Red"><b>sdb</b></font>), to a new disk (<font color="Green"><b>hda</b></font>), and that it contains three partitions, <b>/</b> (the root partition), <b>/home</b> (user's partition) and a <b>swap</b> partition. You must be really careful here, as the name of the new disk depends on the system to be booted. If it uses one of the newest Linux kernels (using the libata disk driver), ALL your disks will be recognised as SCSI. More info: "<a href="annex-a-devices.html#annex-a-scsi-ata">Identifying devices in Linux</a>" section "<a href="annex-a-devices.html#annex-a-scsi-ata">SCSI disks when there are none!!!</a>".</p>
366    
367     <p>This is what we have:</p>
368    
369     <p class="newcode">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root partition&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;home partition&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap partition<br>
370     Old system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">/dev/sdb1</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">/dev/sdb2</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">/dev/sdb3</font><br>
371     New system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Green">/dev/hda1</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Green">/dev/hda2</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Green">/dev/hda3</font></p>
372    
373    
374     <H3><a name="reloc-img-boot-fstab"></a>Fixing /etc/fstab <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H3>
375    
376     <p>Since we are still in <b>Clonezilla Live</b>, right after the restore procedure has finished, we will use it to mount our restored root partition, and edit its <b>/etc/fstab</b>. We issue the commands:</p>
377    
378     <p class="newcode">mkdir /new-root<br>
379     mount /dev/hda1 /new-root<br>
380     vi /new-root/etc/fstab</p>
381    
382     <p>The contents of <b>/etc/fstab</b> could be something like</p>
383    
384     <p class="newcode"><font color="Red">/dev/sdb1</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reiserfs&nbsp;&nbsp;&nbsp;acl,user_xattr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;1<br>
385     <font color="Red">/dev/sdb2</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/home&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reiserfs&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;2<br>
386     <font color="Red">/dev/sdb3</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;0</p>
387    
388     <p>and we have to change ti to</p>
389    
390     <p class="newcode"><font color="Green">/dev/hda1</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reiserfs&nbsp;&nbsp;&nbsp;acl,user_xattr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;1<br>
391     <font color="Green">/dev/hda2</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/home&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reiserfs&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;2<br>
392     <font color="Green">/dev/hda3</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;swap&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;0</p>
393    
394     <p>Finally, we unmount the partition, and we are ready to reboot</p>
395    
396     <p class="newcode">umount /new-root<br>
397     reboot</p>
398    
399     <H3><a name="reloc-img-boot-grub"></a>Reinstalling GRUB <span class="hideprint">[<a href="#reloc-img-top" title="go to top of the page">^</a>]</span></H3>
400    
401     <p>When <b>Clonezilla-SysRescCD</b> menu appears, we select <i><b>Tools &gt; Super Grub Disk</b></i></p>
402    
403     <p>Then we select <i><b>Super Grub Disk &gt; Super Grub Disk (WITH HELP) &gt; English Super Grub Disk &gt; Gnu/Linux &gt; Fix Boot of Gnu/Linux (GRUB)</b></i>. From this entry we will be able to reinstall GRUB to our hard disk.</p>
404    
405     <p>You may also want to have a look at <b>Super Grub Disk</b> "<a href="http://www.supergrubdisk.org/wiki/SuperGrubDiskDocumentation" target="_blank">documentation</a>".</p>
406    
407    
408     </div>
409    
410    
411    
412     <!--<a name="template-top"></a>-->
413    
414     <div id="footer">
415     <div id="docline-bottom"> <a href="restore-burn.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="supergrubdisk.html">NEXT &gt;</a> </div>
416 sng 180 <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" title="About Clonezilla-SysRescCD">Spiros Georgaras</a>, 2007-2011 &amp; <a href="mailto:&#115;&#097;&#110;&#100;&#103;&#116;&#120;&#064;&#103;&#109;&#097;&#105;&#108;&#046;&#099;&#111;&#109;?subject=About Clonezilla-SysRescCD v 3.2.0 documentation" title="About Clonezilla-SysRescCD Documentation">Jyrki Vesterinen</a>, 2010-2011<br /><br/>
417 sng 129 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>
418 sng 28 </div>
419     </div>
420 sng 144 <div id="warning" align="center">
421     WARNING<br>
422 sng 146 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
423 sng 149 To access our current stable version, please click <a href="../index.html">here</a>
424 sng 144 </div>
425 sng 28 </body>
426     </html>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26