/[clonezilla-sysresccd]/tags/2.6.0/2doc/doc/own-scripts.html
ViewVC logotype

Contents of /tags/2.6.0/2doc/doc/own-scripts.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (show annotations)
Mon Mar 22 00:17:03 2010 UTC (14 years ago) by sng
File MIME type: text/html
File size: 10857 byte(s)
tagging v. 2.6.0 (for completeness)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">
5 <link rel="shortcut icon" href="favicon.ico">
6 <title>Clonezilla-SysRescCD - Clonezilla-SysRescCD own scripts</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="scripts-top"></a>
31 <H1> Clonezilla-SysRescCD<br>Clonezilla-SysRescCD own scripts<br>08/02/2009 - v 3.1.0</H1>
32 <!--site-only--><table border="0" width="95%" style="margin-left: auto;margin-right: auto;"><tr><td><font size="-1">Copyright: &#169; 2007-2009, <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.1.0">Spiros Georgaras &lt;sng@hellug.gr&gt;</a></font></td><td align="right"><font size="-1"></font></td></tr><tr><td><font size="-1">Last update: 23/12/2009</font></td><td align="right"><font size="-1"></font></td></tr><tr><td><font size="-1">&nbsp;</font></td><td align="right"><font size="-1"></font></td></tr><tr><td><!-- <font size="-1">Select language: <img src="en.png" border="0" width="21" height="14" alt="English">&nbsp;<a href=""><img src="el.png" border="0" width="21" height="14" alt="Greek"></a></font> --></td><td align="right"><font size="-1"><a href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss" title="RSS news feed"><img src="rss-orange-11.png" border="0" width="30" height="14" alt="RSS news feed"></a></font></td></tr><tr><td><font size="-1">&nbsp;</font></td><td align="right"><font size="-1"></font></td></tr></table><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="recover.html">Previous</a></td> <td width="34%" align="center"><a href="../README.html">Contents</a></td> <td width="33%" align="right"><a href="oldboot.html">Next</a></td> </tr></table><hr style="margin: 0;"><!--end-site-only-->
33
34 <p>In this page I will present the scripts I have written for <b>Clonezilla-SysRescCD</b></p>
35 <!-- On the CD -->
36
37 <H2><a name="scripts-startx"></a>startx-ttf-ati <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
38 <p>Included in: <b>SystemRescueCD</b><br><br>
39
40 This script will help you start the X server (graphical environment), if you have a ATI video card and a TTF monitor. The normal <b>startx</b> command will not work in this case; you will end up with a blank screen.</p>
41
42 <H2><a name="scripts-what-cd"></a>what-cd <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
43 <p>Included in: <b>SystemRescueCD</b><br><br>
44
45 This script determines the device names for your CDs/DVDs, and whether they can read/write CD/DVD-ROMs<br><br>
46
47 Its help screen is the following:</p>
48
49 <p class="newcode"># <font color="Green">what-cd&nbsp;-h</font><br>
50 what-cd&nbsp;-&nbsp;v&nbsp;1.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
51 <br>
52 what-cd&nbsp;will&nbsp;try&nbsp;to&nbsp;identify&nbsp;your&nbsp;CD/DVDs<br>
53 You&nbsp;can&nbsp;use&nbsp;it&nbsp;to&nbsp;identify&nbsp;the&nbsp;device&nbsp;name&nbsp;of&nbsp;your&nbsp;CD-Reader&nbsp;(default),<br>
54 CD-Writer,&nbsp;DVD-Reader,&nbsp;and&nbsp;DVD-Writer.<br>
55 <br>
56 Usage:&nbsp;what-cd&nbsp;[options]<br>
57 Availabe&nbsp;options&nbsp;are:<br>
58 &nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;DVDs<br>
59 &nbsp;&nbsp;&nbsp;&nbsp;w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;writers<br>
60 &nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Batch&nbsp;mode.&nbsp;Only&nbsp;print&nbsp;one&nbsp;device&nbsp;name.<br>
61 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;more&nbsp;than&nbsp;one&nbsp;device&nbsp;is&nbsp;found,&nbsp;print<br>
62 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nothing.&nbsp;For&nbsp;use&nbsp;with&nbsp;scripts<br>
63 &nbsp;&nbsp;&nbsp;&nbsp;e&nbsp;deviceID&nbsp;&nbsp;Eject&nbsp;device&nbsp;deviceID<br>
64 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accecpable&nbsp;values:&nbsp;-1...num&nbsp;of&nbsp;devices<br>
65 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use&nbsp;-1&nbsp;when&nbsp;in&nbsp;batch&nbsp;mode<br>
66 &nbsp;&nbsp;&nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
67 &nbsp;&nbsp;&nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit</p>
68
69 <p>Its typical usage would be to identify the DVD writer:</p>
70
71 <p class="newcode"># <font color="Green">what-cd -dw</font><br>
72 Device /dev/hdd (id=0) can not write DVDs<br>
73 Device <font color="Magenta">/dev/hdc</font> (id=1) can write DVDs</p>
74
75 <p>When used in batch mode, it will only print a device name. This is especially useful in scripts, but also in the command line, as shown in section "<a href="restore.html#burn">Burning the DVD</a>".</p>
76
77 <p class="newcode"># <font color="Green">what-cd -dwb</font><br>
78 /dev/hdc</p>
79
80 <H2><a name="scripts-cont-cd"></a>continue-multi-cd <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
81 <p>Included in: <b>SystemRescueCD</b><br><br>
82
83 <b>continue-multi-cd</b> will help you continue a multi session CD; that is will help you prepare ans burn any consecutive sessions to it. It may lack some of the functionality you would have had if you used the command line tools by themselves (mksiofs and cdrecord), but because of it, it keeps you away from writing a lot of parameters.<br><br>
84
85 You could use it for example, to burn some extra documentation to <b>Clonezilla-SysRescCD</b> CD, but you cannot use it to change the configuration files of <b>isolinux</b>, as it just reads the first session when booting.<br><br>
86
87 <p>Its help screen is the following:</p>
88
89 <p class="newcode"># <font color="Green">continue-multi-cd&nbsp;-h</font><br>
90 continue-multi-cd&nbsp;-&nbsp;v&nbsp;2.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
91 <br>
92 Usage:&nbsp;continue-multi-cd&nbsp;[options]&nbsp;&lt;path&nbsp;to&nbsp;be&nbsp;added&nbsp;to&nbsp;CD&gt;<br>
93 <br>
94 Available&nbsp;options&nbsp;are:<br>
95 &nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify&nbsp;write&nbsp;device&nbsp;(in&nbsp;case&nbsp;auto&nbsp;detection&nbsp;does&nbsp;not&nbsp;work)<br>
96 &nbsp;&nbsp;&nbsp;&nbsp;c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close&nbsp;the&nbsp;CD.&nbsp;No&nbsp;more&nbsp;burning&nbsp;will&nbsp;be&nbsp;possible<br>
97 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default&nbsp;is&nbsp;to&nbsp;leave&nbsp;it&nbsp;open<br>
98 &nbsp;&nbsp;&nbsp;&nbsp;l&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Don't&nbsp;burn&nbsp;the&nbsp;CD&nbsp;after&nbsp;image&nbsp;creation<br>
99 &nbsp;&nbsp;&nbsp;&nbsp;o&nbsp;&lt;image&nbsp;name&gt;&nbsp;&nbsp;&nbsp;Save&nbsp;the&nbsp;image&nbsp;file&nbsp;as&nbsp;&lt;image&nbsp;name&gt;<br>
100 &nbsp;&nbsp;&nbsp;&nbsp;r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove&nbsp;the&nbsp;image&nbsp;file&nbsp;after&nbsp;burning<br>
101 &nbsp;&nbsp;&nbsp;&nbsp;f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On&nbsp;the&nbsp;fly&nbsp;burning&nbsp;of&nbsp;the&nbsp;CD.&nbsp;No&nbsp;image&nbsp;file&nbsp;will&nbsp;be&nbsp;created<br>
102 &nbsp;&nbsp;&nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
103 &nbsp;&nbsp;&nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit</p>
104
105 <p>You have to note one thing though: the folder <b>&lt;path&nbsp;to&nbsp;be&nbsp;added&nbsp;to&nbsp;CD&gt;</b> will not be present on the CD; only its contents will.<br><br>
106
107 Let's suppose that you want to add to the CD the folder <b>extra-doc</b>, which contains <b>q-a.html</b> and <b>faq.html</b>, and that its full path is <b>/home/user/extra-doc</b>. If you issue the command</p>
108
109 <p class="newcode"><font color="Green">continue-multi-cd -mwr /home/user/extra-doc</font></p>
110
111 <p>you will not have a <b>extra-doc</b> folder on the root of your CD, but the files <b>q-a.html</b> and <b>faq.html</b> will be present there.</p>
112
113 <p>In order to have <b>extra-doc</b> on the CD, you have to copy it to a temporary location and pass that path to <b>continue-multi-cd</b>. Let's see how it's done:</p>
114
115 <p class="newcode">mkdir -p /tmp/for-the-cd<br>
116 cp -r /home/user/extra-doc /tmp/for-the-cd<br>
117 <font color="Green">continue-multi-cd -r /tmp/for-the-cd</font><br>
118 rm -rf /tmp/for-the-cd</p>
119
120 <!--site-only--><hr style="margin: 0;"><table border="0" width="100%" class="nav"><tr> <td width="33%"><a href="recover.html">Previous</a></td> <td width="34%" align="center"><a href="../README.html">Contents</a></td> <td width="33%" align="right"><a href="oldboot.html">Next</a></td> </tr></table><!--end-site-only-->
121 </body>
122 </html>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26