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 - Custom CDs</title> |
7 |
<style type="text/css"> |
8 |
body { font-family: 'sans serif'; background : url(null) fixed no-repeat; background-color: White; } |
9 |
H1,H2,H3,H4{color: #990000; text-align: left;} |
10 |
H2{margin-top: 2em;} |
11 |
H3{margin-top: 1.5em} |
12 |
H4{margin-top: 1em} |
13 |
li { font-family: 'sans serif'; margin-top: 1em;} |
14 |
a{text-decoration: none;} |
15 |
a:hover{text-decoration: underline;} |
16 |
.hidden{ display:none; } |
17 |
p,td,table,tr,li { font-family: 'sans serif'; margin-left: 15pt;} |
18 |
.nav{margin-left: 0pt;} |
19 |
.newcode{font-family : "Courier New", Courier, monospace; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;} |
20 |
.note{margin-top: 30pt; margin-bottom: 30pt; text-align: left; background-color: #FFEFEF; border: double 3px; border-color: #FFD5D5;} |
21 |
hr{color: Black; background-color: Black; height: 1px; border: none;} |
22 |
.otherpage{margin-left: 15pt;border: solid 1px darkgoldenrod; padding: 20pt; background-color: lemonchiffon;} |
23 |
IMG {display: block; margin-left: auto; margin-right: auto } |
24 |
</style> |
25 |
<META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba"> |
26 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
27 |
|
28 |
</head> |
29 |
<body style="margin-left: 40pt; margin-right: 40pt;" > |
30 |
<a name="custom-top"></a> |
31 |
<H1> Clonezilla-SysRescCD<br>Custom CDs<br>08/02/2009 - v 3.1.0</H1> |
32 |
<!--site-only--><table border="0" width="95%" style="margin-left: auto;margin-right: auto;"><tr><td><font size="-1">Copyright: © 2007-2009, <a href="mailto:sng@hellug.gr?subject=About Clonezilla-SysRescCD v 3.1.0">Spiros Georgaras <sng@hellug.gr></a></font></td><td align="right"><font size="-1"><a href="onepage.php" target="_blank" title="View the whole site in one big page">Single page</a></font></td></tr><tr><td><font size="-1">Last update: 23/12/2009</font></td><td align="right"><font size="-1"><a href="printable.php" target="_blank" title="View a printable version of this page">Printable version</a></font></td></tr><tr><td><font size="-1"></font></td><td align="right"><font size="-1"></font></td></tr><tr><td><font size="-1"> </font></td><td align="right"><font size="-1"></font></td></tr><tr><td><!-- <font size="-1">Select language: <img src="en.png" border="0" width="21" height="14" alt="English"> <a href=""><img src="el.png" border="0" width="21" height="14" alt="Greek"></a></font> --></td><td align="right"><font size="-1"><a href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss" title="RSS news feed"><img src="rss-orange-11.png" border="0" width="30" height="14" alt="RSS news feed"></a></font></td></tr><tr><td><font size="-1"> </font></td><td align="right"><font size="-1"></font></td></tr></table><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="project.html">Previous</a></td> <td width="34%" align="center"><a href="index.html">Contents</a></td> <td width="33%" align="right"><a href="usb.html">Next</a></td> </tr></table><hr style="margin: 0;"><!--end-site-only--> |
33 |
|
34 |
|
35 |
<!-- Intro --> |
36 |
<H2 style="margin-top: 1em;"><a name="custom-intro"></a>Intro <span class="hideprint">[<a href="#custom-top" title="go to top of the page">^</a>]</span></H2> |
37 |
<p> |
38 |
Customizing the original CDs has to do with adding some features they miss. These are: |
39 |
<ul> |
40 |
|
41 |
<li><b>SystemRescueCD - Adding a script to start the X server</b><br> |
42 |
This is necessary to properly start the X server in machines with an ATI graphics card and TFT monitor. I have an ACER laptop with that configuration, and this is the only way to enable the graphical environment. |
43 |
</li> |
44 |
<li> |
45 |
<b>Clonezilla Live</b><br> |
46 |
Clonezilla Live has seen huge improvement recently, so there is no need to create a customised CD at this point. All the necessary customisation will be done through the <A href="boot-params.html#ocs_prerun">ocs_prerun</A> boot parameter. |
47 |
</li> |
48 |
</ul> |
49 |
<p> |
50 |
The creation of the custom CD is a relatively easy process but a time consuming one. You have to boot from the original CD (which means you have to burn it to a CD-RW), create the customized ISO file and then create the multi boot CD using this customized ISO file. |
51 |
</p> |
52 |
|
53 |
<p>If you just want to change the splash screen images and title, a much easier alternative is using <a href="#custom-patch">patch-clonezilla-sysresccd</a>.</p> |
54 |
|
55 |
<!-- Creating Custom SystemRescueCD --> |
56 |
<H2><a name="sysresccd"></a>Creating Custom SystemRescueCD <span class="hideprint">[<a href="#custom-top" title="go to top of the page">^</a>]</span></H2> |
57 |
<p>You need to have:</p> |
58 |
|
59 |
<ul> |
60 |
<li>The latest <b>create-clonezilla-sysresccd</b> package. Download it from section "<a href="http://clonezilla-sysresccd.hellug.gr/intro.html#download" target="_blank">Download</a>" and install it.</li> |
61 |
<li>The latest stable SystemRescueCD ISO. Download it from here: <a href="http://www.sysresccd.org/Download" target="_blank">latest-sysresccd</a>.</li> |
62 |
<li>A linux formatted (ext2, ext3, reiserfs, xfs, jfs) hard disk or partition with at least 700MB of free space. I will use <b>/dev/<font color="green">hdb4</font></b> here; you will have to replace it with the device you will use.</li> |
63 |
</ul> |
64 |
|
65 |
|
66 |
<H3><a name="proc-sys"></a>Procedure [<a href="#custom-top" title="go to top of the page">^</a>]</H3> |
67 |
|
68 |
<p> |
69 |
|
70 |
This info comes from the page titled <a href="http://www.sysresccd.org/Sysresccd-manual-en_How_to_personalize_SystemRescueCd" target="_blank">Sysresccd-manual-en How to personalize SystemRescueCd</a> found at the SystemRescueCD site. |
71 |
</p> |
72 |
|
73 |
|
74 |
<ol> |
75 |
<li><p style="margin-left: 0pt;">Boot into SystemRescueCD<br><br> |
76 |
If you already have the current <b>Clonezilla-SysRescCD</b> on CD, just put it in the CD drive and reboot.<br><br> |
77 |
|
78 |
Otherwise, you have to burn the System Rescue ISO file to a CD-RW, and reboot your system with your new CD. Note that you have to do a normal boot (no copy to RAM) for this to work. Assuming your CD writer is <b>/dev/<font color="green">hdc</font></b> you execute the command:</p> |
79 |
<p class="newcode" style="margin-left: 0pt;">cdrecord dev=/dev/<font color="green">hdc</font> driveropts=burnfree <font color="red">/path/to/sysresccd.iso</font></p> |
80 |
|
81 |
<p style="margin-left: 0pt;">If you have to erase the CD first, execute the command</p> |
82 |
<p class="newcode" style="margin-left: 0pt;">cdrecord dev=/dev/<font color="green">hdc</font> blank=fast</p> |
83 |
|
84 |
<p style="margin-left: 0pt;">When the system is fully up</p> |
85 |
</li> |
86 |
<li><p style="margin-left: 0pt;"> |
87 |
Mount the working partition</p> |
88 |
<p class="newcode" style="margin-left: 0pt;">mount /dev/<font color="green">hdb4</font> /mnt/custom</p> |
89 |
</li> |
90 |
<li><p style="margin-left: 0pt;">If your normal root (/) partition is not <b>/dev/<font color="green">hdb4</font></b>, like in my case, mount this partition too. I will use <b>/dev/<font color="magenta">hdb1</font></b> here; you may have to replace with your own.</p> |
91 |
<p class="newcode" style="margin-left: 0pt;">mkdir /mnt/r<br> |
92 |
mount /dev/<font color="magenta">hdb1</font> /mnt/r</p> |
93 |
<p style="margin-left: 0pt;">otherwise execute the command:</p> |
94 |
<p class="newcode" style="margin-left: 0pt;">ln -s /mnt/custom /mnt/r</p> |
95 |
|
96 |
</li> |
97 |
<li><p style="margin-left: 0pt;"> |
98 |
Extract the current files from the sysrcd.dat image</p> |
99 |
<p class="newcode" style="margin-left: 0pt;">cd /mnt/custom<br> |
100 |
/usr/sbin/sysresccd-custom extract</p> |
101 |
|
102 |
<p style="margin-left: 0pt;">If there is no error, all the files of the squashfs image should have been copied in <b>/mnt/custom/customcd/files/</b></p></li> |
103 |
<li><p style="margin-left: 0pt;"> |
104 |
Install the new files</p> |
105 |
<p class="newcode" style="margin-left: 0pt;">cp /mnt/r/root/.clonezilla-sysresccd/files/startx-ati-tft /mnt/custom/customcd/files/usr/bin<br> |
106 |
chmod +x /mnt/custom/customcd/files/usr/bin/startx-ati-tft<br> |
107 |
cp /mnt/r/root/.clonezilla-sysresccd/files/what-cd /mnt/custom/customcd/files/usr/bin<br> |
108 |
chmod +x /mnt/custom/customcd/files/usr/bin/what-cd<br> |
109 |
cp /mnt/r/root/.clonezilla-sysresccd/files/continue-multi-cd /mnt/custom/customcd/files/usr/bin<br> |
110 |
chmod +x /mnt/custom/customcd/files/usr/bin/continue-multi-cd<br> |
111 |
tar -C /mnt/custom/customcd/isoroot -xzf /mnt/r/root/.clonezilla-sysresccd/files/doc.tar.gz<br> |
112 |
tar -C /mnt/custom/customcd/files -xzf /mnt/r/root/.clonezilla-sysresccd/files/doc.tar.gz</p> |
113 |
</li> |
114 |
<li><p style="margin-left: 0pt;"> |
115 |
Create the new squashfs image</p> |
116 |
<p class="newcode" style="margin-left: 0pt;">/usr/sbin/sysresccd-custom squashfs</p> |
117 |
</li> |
118 |
<li><p style="margin-left: 0pt;"> |
119 |
Set the default keymap (optional)<br> |
120 |
In the official version, System Rescue Cd asks you to select a keymap at startup. If you want to avoid seeing this menu and define a permanent keymap, you can run this command: <i>/usr/sbin/sysresccd-custom setkmap <your-keymap></i>. The second parameter is the name or the number of your keymap in the menu.<br><br> |
121 |
Set english keymap as default:</p> |
122 |
<p class="newcode" style="margin-left: 0pt;">/usr/sbin/sysresccd-custom setkmap en</p> |
123 |
</li> |
124 |
<li><p style="margin-left: 0pt;"> |
125 |
Create the new ISO image<br> |
126 |
Just type the following commands. The second parameter of the first command the volume name for the CDRom.</p> |
127 |
<p class="newcode" style="margin-left: 0pt;">/usr/sbin/sysresccd-custom isogen my_srcd<br> |
128 |
mv /mnt/custom/customcd/isofile/sysresccd-new.iso /mnt/custom<br> |
129 |
rm -fr /mnt/custom/customcd</p> |
130 |
</li> |
131 |
<li><p style="margin-left: 0pt;"> |
132 |
Synchronize your disks</p> |
133 |
<p class="newcode" style="margin-left: 0pt;">cd /<br> |
134 |
umount /mnt/custom<br> |
135 |
umount /mnt/r<br> |
136 |
sync</p></li> |
137 |
<li> |
138 |
Test the ISO image<br> |
139 |
The new final ISO image is <b>sysresccd-new.iso</b> in <b>/dev/<font color="green">hdb4</font></b>. You can test it with <a href="http://www.vmware.com/" target="_blank">VMWare</a> or <a href="http://fabrice.bellard.free.fr/qemu/" target="_blank">qemu</a>. |
140 |
</li> |
141 |
</ol> |
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 |
|
159 |
<!-- Multi Boot Custom CD --> |
160 |
<H2><a name="multi"></a>Creating Multi Boot custom CD <span class="hideprint">[<a href="#custom-top" title="go to top of the page">^</a>]</span></H2> |
161 |
<p>You need to have:</p> |
162 |
|
163 |
<ul> |
164 |
|
165 |
<li>The linux formatted (ext2, ext3, reiserfs, xfs, jfs) hard disk or partition with at least 700MB of free space, used when following the procedures above. I will assume <b>/dev/<font color="green">hdb4</font></b> here; you will have to replace it with the device you have used. I will also assume that this partition is mounted in <font color="green"><b>/data</b></font> when your normal linux box is operational. Again you will have to use the corresponding mount point.</li> |
166 |
<li><p style="margin-left: 0pt;">Both the customized CD created following the procedures above and the original <strong>Clonezilla Live CD</strong>. These are:</p> |
167 |
<p class="newcode" style="margin-left: 0pt;"><font color="green">/data</font>/sysresccd-new.iso and<br> |
168 |
<font color="green">/data</font>/clonezilla-live-<font color="Maroon">1.2.1-39</font>.iso</p> |
169 |
</li> |
170 |
</ul> |
171 |
|
172 |
<H3><a name="proc-multi"></a>Procedure [<a href="#custom-top" title="go to top of the page">^</a>]</H3> |
173 |
<ol> |
174 |
<li>Boot into your normal Linux system, as root |
175 |
</li> |
176 |
|
177 |
|
178 |
<li><p style="margin-left: 0pt;">Create a new profile<br> |
179 |
Open <b>/root/.clonezilla-sysresccd/profiles.conf</b> in a text editor and add the lines:</p> |
180 |
<p class="newcode" style="margin-left: 0pt;">profile[<font color="magenta">3</font>]=Multi-boot-modified<br> |
181 |
sysCDP[<font color="magenta">3</font>]=<font color="green">/data</font>/sysresccd-new.iso<br> |
182 |
cloneCDP[<font color="magenta">3</font>]=<font color="green">/data</font>/clonezilla-live-<font color="Maroon">1.2.1-39</font>.iso<br> |
183 |
cfgFileP[<font color="magenta">3</font>]=/root/.clonezilla-sysresccd/files/menu-iso.tar.gz<br> |
184 |
<span class="hidden">DebianLiveFolderP[<font color="magenta">3</font>]=<font color="green">/data</font><br></span> |
185 |
exScriptP[<font color="magenta">3</font>]=/root/.clonezilla-sysresccd/files/extra-code<br> |
186 |
outNameP[<font color="magenta">3</font>]='full-mod'</p> |
187 |
|
188 |
<p style="margin-left: 0pt;">If you want to use a customized splash screen, create a 640x480 32-bit png image file (for example <b>splash-screen.png</b>) providing your logo, personal page, email address etc., save it in <b><font color="green">/data</font></b> and add the line</p> |
189 |
<p class="newcode" style="margin-left: 0pt;">splashP[<font color="magenta">3</font>]=<font color="green">/data</font><font color="red">/splash-screen.png</font></p> |
190 |
|
191 |
<p style="margin-left: 0pt;">Finally customize any other variable for profile <b><font color="magenta">3</font></b>, as you see them used in previously defined profiles.<br><br> |
192 |
If <b>sysCDP[<font color="magenta">3</font>]</b> is already defined (profile <b><font color="magenta">3</font></b> already exists), just use the <u><b>first</b></u> available number. This goes for every entry in this step.</p> |
193 |
</li> |
194 |
|
195 |
<li><p style="margin-left: 0pt;">Create the final CD using the new profile<br> |
196 |
Execute the command:</p> |
197 |
<p class="newcode" style="margin-left: 0pt;">create-clonezilla-sysresccd -p <font color="magenta">3</font></p> |
198 |
<p style="margin-left: 0pt;">This will create the file <b>/root/tmp/clonezilla-sysresccd-full-mod-3.1.0.iso</b>. You will be asked to burn it to CD, but I would suggest not to do it right now, not before testing it.</p></li> |
199 |
<li><p style="margin-left: 0pt;">Cleaning up</p> |
200 |
<p class="newcode" style="margin-left: 0pt;">cd <font color="green">/data</font><br> |
201 |
rm clonezilla-live-<font color="Maroon">1.2.1-39</font>.iso sysresccd-new.iso <br><span class="hidden">\<br> |
202 |
debian-live-for-ocs.iso unifont.bgf<br></span> |
203 |
cd<br> |
204 |
umount <font color="green">/data</font> |
205 |
</p> |
206 |
</li> |
207 |
<li>Test the ISO image<br> |
208 |
Now you have the file <b>clonezilla-sysresccd-full-mod-3.1.0.iso</b> in <b>/root/tmp</b>. You can test it with <a href="http://www.vmware.com/" target="_blank">VMWare</a> or <a href="http://fabrice.bellard.free.fr/qemu/" target="_blank">qemu</a>, if you haven't already burnt it to CD. |
209 |
</li> |
210 |
</ol> |
211 |
|
212 |
|
213 |
<H2 style="margin-top: 1em;"><a name="custom-patch"></a>Using patch-clonezilla-sysresccd <span class="hideprint">[<a href="#custom-top" title="go to top of the page">^</a>]</span></H2> |
214 |
|
215 |
<p><b>patch-clonezilla-sysresccd</b> is a script which will help you create a customized version of <b>Clonezilla-SysRescCD</b>, by changing the splash screen images and title.</p> |
216 |
|
217 |
<p>In order to use it, you have to have both the latest <b>Clonezilla-SysRescCD</b> ISO file and tarball archive. You can download them from the <a href="intro.html#download">Download section</a>.</p> |
218 |
|
219 |
<p>Its help screen is the following:</p> |
220 |
|
221 |
<p class="newcode"># <font color="Green">patch-clonezilla-sysresccd -h</font><br> |
222 |
patch-clonezilla-sysresccd - v 2.2.0<br> |
223 |
(C) 2008, Spiros Georgaras <sng@hellug.gr><br> |
224 |
<br> |
225 |
A utility to personalize Clonezilla-SysRescCD<br> |
226 |
<br> |
227 |
Usage: patch-clonezilla-sysresccd [options]<br> |
228 |
<br> |
229 |
Available options are:<br> |
230 |
i [file or device] input file or cdrom device<br> |
231 |
o [iso file] outpup ISO file. If not specified, implies burn ISO file (-b)<br> |
232 |
and delete ISO file (-d)<br> |
233 |
s [png image] boot splash screen<br> |
234 |
r [png image] restore splash screen<br> |
235 |
t [title] boot screen title<br> |
236 |
p [partition] partition to be used as temporary storage location and/or final<br> |
237 |
ISO file creation location (e.g -p hda)<br> |
238 |
k Do not create/burn the ISO file. Just make the modified files <br> |
239 |
available for further customization (optional)<br> |
240 |
b burn ISO file to CD (optional)<br> |
241 |
f burn ISO file to CD on the fly (optional)<br> |
242 |
w writter device to use (optional)<br> |
243 |
d delete ISO file after burning to CD.<br> |
244 |
Implies burn ISO file (-b) (optional)<br> |
245 |
v print version and exit<br> |
246 |
h print this screen and exit</p> |
247 |
|
248 |
<p><b>patch-clonezilla-sysresccd</b> requires you to provide two images, one for the splash screen of your <b>Clonezilla-SysRescCD</b> (parameter -s), and one that will be used by the restore CD/DVD creation procedure (parameter -r).</p> |
249 |
|
250 |
<!--site-only--><hr style="margin: 0;"><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="project.html">Previous</a></td> <td width="34%" align="center"><a href="index.html">Contents</a></td> <td width="33%" align="right"><a href="usb.html">Next</a></td> </tr></table><!--end-site-only--> |
251 |
<!--site-only--><p align="right" style="margin-bottom: 2em;"> <a href="http://feedvalidator.org/check.cgi?url=http%3A//clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss" target="_blank"><img src="valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" border="0" align="right"></a> <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://clonezilla-sysresccd.hellug.gr/custom-cd.html" target="_blank"> <img style="border:0;width:88px;height:31px" src="valid-css.png" alt="Valid CSS!" border="0" align="right"></a> <a href="http://validator.w3.org/check?uri=http://clonezilla-sysresccd.hellug.gr/custom-cd.html" target="_blank"><img src="valid-html401.png" alt="Valid HTML 4.01 Transitional" height="31" width="88" border="0" align="right"></a></p><!--end-site-only--> |
252 |
</body> |
253 |
</html> |