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

Diff of /trunk/www/2doc/doc/usb.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by sng, Tue Jun 1 13:23:50 2010 UTC revision 77 by sng, Thu Jun 17 22:25:06 2010 UTC
# Line 78  Line 78 
78  <H3>Offline Documentation: Installing on USB</H3>  <H3>Offline Documentation: Installing on USB</H3>
79    <div style="margin:0; padding: 3px; width: 980; position relative;">    <div style="margin:0; padding: 3px; width: 980; position relative;">
80      <div style="position: absolute; left: 0px;"><H4>25/05/2010 - v 3.1.0</H4></div>      <div style="position: absolute; left: 0px;"><H4>25/05/2010 - v 3.1.0</H4></div>
81      <div style="position: absolute; right: 0px;"><H4>Last update: 31/05/2010</H4></div>      <div style="position: absolute; right: 0px;"><H4>Last update: 18/06/2010</H4></div>
82    </div>    </div>
83  </div>  </div>
84  <div id="linkline">  <div id="linkline">
# Line 117  Incorrect use of any raw disk writing to Line 117  Incorrect use of any raw disk writing to
117  <p>So, from any linux box, assuming <b>Clonezilla-SysRescCD</b> iso file is in your home directory, and your USB device name is <b><font color="Green">sdc4</font></b>, you just execute the commands:</p>  <p>So, from any linux box, assuming <b>Clonezilla-SysRescCD</b> iso file is in your home directory, and your USB device name is <b><font color="Green">sdc4</font></b>, you just execute the commands:</p>
118    
119  <p class="newcode">umount /dev/<font color="Green">sdc4</font><br>  <p class="newcode">umount /dev/<font color="Green">sdc4</font><br>
120  dd if=~/clonezilla-sysresccd-full-mod-3.1.0.iso of=/dev/<font color="Green">sdc4</font> bs=512</p>  dd if=~/clonezilla-sysresccd-full-mod-3.1.0.iso of=/dev/<font color="Green">sdc</font> bs=512</p>
121    
122  <p>And that's it. Your usb device is ready to boot!!!</p>  <p>And that's it. Your usb device is ready to boot!!!</p>
123    
124    
125    <H3><a name="usb-free-space"></a>Using the extra space <span class="hideprint">[<a href="#usb-top" title="go to top of the page">^</a>]</span></H3>
126    
127    <p>
128    If your usb device is more than 400MB in size, the above command will leave the remaining space unused. To verify it, execute the command:
129    </p>
130    <p class="newcode" style="margin-left: 0;">fdisk -l /dev/<font color="Green">sdc</font></p>
131    
132    <p style="margin-left: 0;">You should get something similar to this:</p>
133    <!--emty-line-->
134    
135    <p class="newcode">
136    Disk /dev/sdc: 1048 MB, 1048576000 bytes<br>
137    64 heads, 32 sectors/track, 1000 cylinders, total 2048000 sectors<br>
138    Units = sectors of 1 * 512 = 512 bytes<br>
139    Sector size (logical/physical): 512 bytes / 512 bytes<br>
140    I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
141    Disk identifier: 0x77a5188f<br>
142    <br>
143    &nbsp;&nbsp;&nbsp;Device&nbsp;Boot&nbsp;&nbsp;Start&nbsp;&nbsp;End&nbsp;&nbsp;Blocks&nbsp;&nbsp;Id&nbsp;&nbsp;System
144    /dev/sdc1&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;384&nbsp;&nbsp;393216&nbsp;&nbsp;17&nbsp;&nbsp;Hidden&nbsp;HPFS/NTFS
145    </p>
146    <p>
147    As you can see, we are currently using 348 out of 1000 cylinders of the disk. The remaining disk space (~600MB) can still be used, executing the following commands (user input is displayed in <font color="magenta">magenta</font>, comments are in <font color="#990000">brown</font>):
148    </p>
149    
150    <p class="newcode">
151    fdisk /dev/<font color="green">sdc</font><br>
152    command (m for help): <font color="magenta">n</font> <font color="#990000">(create new partition)</font><br>
153    command action<br>
154       e   extended<br>
155       p   primary partition (1-4)<br>
156    <font color="magenta">p</font><br>
157    partition number (1-4): <font color="magenta">4</font> <font color="#990000">(create partition sdc4)</font><br>
158    first cylinder (385-1000, default 385): <br>
159    using default value 385<br>
160    last cylinder, +cylinders or +size{k,m,g} (385-1000, default 1000): <br>
161    using default value 1000<br>
162    <br>
163    command (m for help): <font color="magenta">p</font> <font color="#990000">(display partition table)</font><br>
164    <br>
165    disk /dev/sdc: 1048 mb, 1048576000 bytes<br>
166    64 heads, 32 sectors/track, 1000 cylinders<br>
167    units = cylinders of 2048 * 512 = 1048576 bytes<br>
168    sector size (logical/physical): 512 bytes / 512 bytes<br>
169    i/o size (minimum/optimal): 512 bytes / 512 bytes<br>
170    disk identifier: 0x77a5188f<br>
171    <br>
172    &nbsp;&nbsp;&nbsp;device&nbsp;boot&nbsp;&nbsp;start&nbsp;&nbsp;&nbsp;end&nbsp;&nbsp;blocks&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;system<br>
173    /dev/sdc1&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;384&nbsp;&nbsp;393216&nbsp;&nbsp;&nbsp;17&nbsp;&nbsp;hidden&nbsp;hpfs/ntfs<br>
174    /dev/sdc4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;385&nbsp;&nbsp;1000&nbsp;&nbsp;630784&nbsp;&nbsp;&nbsp;83&nbsp;&nbsp;linux<br>
175    <br>
176    <br>
177    command (m for help): <font color="magenta">t</font> <font color="#990000">(change partition type)</font><br>
178    partition number (1-4): <font color="magenta">4</font><br>
179    hex code (type l to list codes): <font color="magenta">b</font><br>
180    changed system type of partition 4 to b (w95 fat32)<br>
181    <br>
182    command (m for help): <font color="magenta">p</font> <font color="#990000">(display partition table)</font><br>
183    <br>
184    disk /dev/sdc: 1048 mb, 1048576000 bytes<br>
185    64 heads, 32 sectors/track, 1000 cylinders<br>
186    units = cylinders of 2048 * 512 = 1048576 bytes<br>
187    sector size (logical/physical): 512 bytes / 512 bytes<br>
188    i/o size (minimum/optimal): 512 bytes / 512 bytes<br>
189    disk identifier: 0x77a5188f<br>
190    <br>
191    &nbsp;&nbsp;&nbsp;device&nbsp;boot&nbsp;&nbsp;start&nbsp;&nbsp;&nbsp;end&nbsp;&nbsp;blocks&nbsp;&nbsp;&nbsp;id&nbsp;&nbsp;system<br>
192    /dev/sdc1&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;384&nbsp;&nbsp;393216&nbsp;&nbsp;&nbsp;17&nbsp;&nbsp;hidden&nbsp;hpfs/ntfs<br>
193    /dev/sdc4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;385&nbsp;&nbsp;1000&nbsp;&nbsp;630784&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;w95&nbsp;fat32<br>
194    <br>
195    command (m for help): <font color="magenta">w</font> <font color="#990000">(write partition table to disk and exit)</font><br>
196    The partition table has been altered!<br>
197    <br>
198    Calling ioctl() to re-read partition table.<br>
199    <br>
200    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br>
201    The kernel still uses the old table. The new table will be used at<br>
202    the next reboot or after you run partprobe(8) or kpartx(8)<br>
203    Syncing disks.
204    </p>
205    <!--emty-line-->
206    <p>
207    At this point you should disconnect and reconnect your usb device. When it's recognised, you can format the partition you've just created
208     </p>
209    <!--emty-line-->
210    <p class="newcode">
211    mkdosfs -F 32 /dev/<font color="Green">sdc4</font>
212    </p>
213    <!--emty-line-->
214    <p>
215    The partition is now ready for use!!!
216    </p>
217  <!--emty-line-->  <!--emty-line-->
218  <H2><a name="usb-hard"></a>Installing the "hard" way <span class="hideprint">[<a href="#usb-top" title="go to top of the page">^</a>]</span></H2>  <H2><a name="usb-hard"></a>Installing the "hard" way <span class="hideprint">[<a href="#usb-top" title="go to top of the page">^</a>]</span></H2>
219  <!--emty-line-->  <!--emty-line-->
# Line 239  If you are on linux, check that the part Line 330  If you are on linux, check that the part
330  <p class="newcode" style="margin-left: 0;">fdisk -l /dev/<font color="Green">sdc</font></p>  <p class="newcode" style="margin-left: 0;">fdisk -l /dev/<font color="Green">sdc</font></p>
331  <p style="margin-left: 0;">You should get something similar to this:</p>  <p style="margin-left: 0;">You should get something similar to this:</p>
332  <!--emty-line-->  <!--emty-line-->
333  <table class="newcode" style="margin-left: 0pt;" border="0" width="100%">  
334  <tr><td colspan="7">Disk /dev/<font color="Green">sdc</font>: 1031 MB, 1031798272 bytes</td></tr>  <p class="newcode">
335  <tr><td colspan="7">64 heads, 32 sectors/track, 983 cylinders</td></tr>  Disk /dev/<font color="Green">sdc</font>: 1031 MB, 1031798272 bytes<br>
336  <tr><td colspan="7">Units = cylinders of 2048 * 512 = 1048576 bytes</td></tr>  64 heads, 32 sectors/track, 983 cylinders<br>
337  <tr><td>&nbsp;</td></tr>  Units = cylinders of 2048 * 512 = 1048576 bytes<br>
338  <tr>  <br>
339  <td align="right">Device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right"><font color="Red">Boot</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">Blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">Id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td width="99%"></td></tr>  &nbsp;&nbsp;&nbsp;Device&nbsp;&nbsp;<font color="Red">Boot</font>&nbsp;&nbsp;Start&nbsp;&nbsp;End&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp;Id&nbsp;&nbsp;System<br>
340  <tr><td align="right">/dev/<font color="Green">sdc4</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right"><font color="Red">*</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">983&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">1006576&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">FAT16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td width="99%"></td>  /dev/<font color="Green">sdc4</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">*</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;983&nbsp;&nbsp;1006576&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;FAT16<br>
341  </tr>  </p>
 </table>  
342  <!--emty-line-->  <!--emty-line-->
343  <p style="margin-left: 0;"><br>If the partition is not active (no astrisk), execute:</p>  <p style="margin-left: 0;"><br>If the partition is not active (no astrisk), execute:</p>
344  <p class="newcode" style="margin-left: 0;">fdisk /dev/<font color="Green">sdc</font></p>  <p class="newcode" style="margin-left: 0;">fdisk /dev/<font color="Green">sdc</font></p>
# Line 274  send as much info about your machine as Line 364  send as much info about your machine as
364  In this case you will have to format your USB disk.<br><br>  In this case you will have to format your USB disk.<br><br>
365  <!--emty-line-->  <!--emty-line-->
366  If you are using linux to perform the installation, execute the command:</p>  If you are using linux to perform the installation, execute the command:</p>
367    <!--emty-line-->
368  <p class="newcode" style="margin-left: 0;">mkdosfs -F 16 /dev/<font color="Green">sdc4</font></p>  <p class="newcode" style="margin-left: 0;">mkdosfs -F 16 /dev/<font color="Green">sdc4</font></p>
369    <!--emty-line-->
370  <p style="margin-left: 0;">to create a FAT16 file system, or</p>  <p style="margin-left: 0;">to create a FAT16 file system, or</p>
371    <!--emty-line-->
372  <p class="newcode" style="margin-left: 0;">mkdosfs -F 32 /dev/<font color="Green">sdc4</font></p>  <p class="newcode" style="margin-left: 0;">mkdosfs -F 32 /dev/<font color="Green">sdc4</font></p>
373    <!--emty-line-->
374  <p style="margin-left: 0;">to create a FAT32 file system.<br><br>  <p style="margin-left: 0;">to create a FAT32 file system.<br><br>
375  <!--emty-line-->  <!--emty-line-->
376  When you are done go back to section "<a href="#linux">Installation from Linux</a>".<br><br>  When you are done go back to section "<a href="#linux">Installation from Linux</a>".<br><br>

Legend:
Removed from v.75  
changed lines
  Added in v.77

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26