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

Diff of /trunk/www/partitions.html

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

revision 77 by sng, Thu Jun 17 22:25:06 2010 UTC revision 122 by sng, Thu Sep 16 13:06:07 2010 UTC
# Line 78  Line 78 
78  <H2>Clonezilla-SysRescCD</H2>  <H2>Clonezilla-SysRescCD</H2>
79  <H3>Documentation: Managing partitions</H3>  <H3>Documentation: Managing partitions</H3>
80    <div style="margin:0; padding: 3px; width: 980; position relative;">    <div style="margin:0; padding: 3px; width: 980; position relative;">
81      <div style="position: absolute; left: 0px;"><H4>25/05/2010 - v 3.1.0</H4></div>      <div style="position: absolute; left: 0px;"><H4>15/09/2010 - v 3.1.0</H4></div>
82      <div style="position: absolute; right: 0px;"><H4>Last update: 18/06/2010</H4></div>      <div style="position: absolute; right: 0px;"><H4>Last update: 16/09/2010</H4></div>
83    </div>    </div>
84  </div>  </div>
85  <div id="linkline">  <div id="linkline">
# Line 87  Line 87 
87    <a href="news.php">News</a>    <a href="news.php">News</a>
88  <!--  <a href="features.html">Features</a>-->  <!--  <a href="features.html">Features</a>-->
89    <a class="here" href="doc.html">Documentation</a>    <a class="here" href="doc.html">Documentation</a>
90    <a href="index.html#download">Download</a>    <a href="download.html">Download</a>
91    <a href="screenshots.html">Screenshots</a>    <a href="screenshots.html">Screenshots</a>
92    <a href="index.html#credits">Credits</a>    <a href="index.html#credits">Credits</a>
93    <a href="help.html">Help</a>    <a href="help.html">Help</a>
# Line 117  This page contains some theory about par Line 117  This page contains some theory about par
117  While partitioning, an user error or a bug can damage your partitions.<br><br>Creating a disk image of the disk to be<br>partitioned beforehand is highly recommended.  While partitioning, an user error or a bug can damage your partitions.<br><br>Creating a disk image of the disk to be<br>partitioned beforehand is highly recommended.
118  </td></tr></table></div>  </td></tr></table></div>
119  <div align="center"><table class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="images/info.png"></td><td>  <div align="center"><table class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="images/info.png"></td><td>
120  The following pressentation has been made using<br><b>SystemRescueCD v 1.4.0</b>  The following pressentation has been made using<br><b>SystemRescueCD v 1.5.8</b>
121  </td></tr></table></div>  </td></tr></table></div>
122    
123  <H2><a name="theory"></a>Some theory <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H2>  <H2><a name="theory"></a>Some theory <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H2>
# Line 132  The following pressentation has been mad Line 132  The following pressentation has been mad
132    
133  <p>Each operatin system provides some kind of tool to create and manage partitions. Examples of such tools are <b>fdisk</b> in DOS/Windows, <b>fdisk</b>, <b>sfdisk</b> and <b>parted</b> in Linux, etc.</p>  <p>Each operatin system provides some kind of tool to create and manage partitions. Examples of such tools are <b>fdisk</b> in DOS/Windows, <b>fdisk</b>, <b>sfdisk</b> and <b>parted</b> in Linux, etc.</p>
134    
135  <H3><a name="partitions-extended"></a>What is the difference between primary, extended and logical partitions? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H2>  <H3><a name="partitions-extended"></a>What is the difference between primary, extended and logical partitions? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>
136    
137  <p>Information about partitions is saved in so-called partition table in Master Boot Record. MBR itself is only 512 bytes in size, and only 64 bytes are reserved for partition table. That's not enough, and there are many workarounds to bypass limitations caused by the size, for example <a href="http://en.wikipedia.org/wiki/Logical_block_addressing#LBA.2C_ATA_devices_and_Enhanced_BIOS" target="_blank">logical block addressing</a>. Extended partitions are another workaround.</p>  <p>Information about partitions is saved in so-called partition table in Master Boot Record. MBR itself is only 512 bytes in size, and only 64 bytes are reserved for partition table. That's not enough, and there are many workarounds to bypass limitations caused by the size, for example <a href="http://en.wikipedia.org/wiki/Logical_block_addressing#LBA.2C_ATA_devices_and_Enhanced_BIOS" target="_blank">logical block addressing</a>. Extended partitions are another workaround.</p>
138    
# Line 144  The following pressentation has been mad Line 144  The following pressentation has been mad
144    
145  <p>Extended partition contains only EBRs and logical partitions (and maybe unallocated space). Extended partition doesn't contain any filesystem and files can't be stored in it. Of course, logical partition can contain any filesystem (or be unformatted).</p>  <p>Extended partition contains only EBRs and logical partitions (and maybe unallocated space). Extended partition doesn't contain any filesystem and files can't be stored in it. Of course, logical partition can contain any filesystem (or be unformatted).</p>
146    
147  <p>Extended partition itself must be primary partition: an extended partition can't be within another extended partition. In addition, a disk can contain only one extended partition.</p>  <p>Logical partitions can always be used for storing data: any operating system can see logical partitions. GNU/Linux supports both multiple primary extended partitions and extended partitions within each other, while Windows supports only the latter. GNU/Linux distributions can be installed to logical partitions as well, but Windows requires a lot of tweaking. See <a href="http://www.goodells.net/multiboot/index.htm" target="_blank">this outdated guide</a>.</p>
   
 <p>Logical partitions can always be used for storing data: any operating system can see logical partitions. GNU/Linux distributions can be installed to logical partitions as well, but Windows requires a lot of tweaking. See <a href="http://www.goodells.net/multiboot/index.htm" target="_blank">this outdated guide</a>.</p>  
148    
149  <H3><a name="partitions-lvm"></a>What is LVM? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>  <H3><a name="partitions-lvm"></a>What is LVM? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>
150    
# Line 180  The following pressentation has been mad Line 178  The following pressentation has been mad
178    
179  <p>Journaling partially fixes that problem by writing most changes to the disk twice: first to a special area called journal and, after that, to the filesystem itself. If power is lost while writing to the journal was in progress, the partial change is just ignored and never committed to the filesystem itself. If power failure or OS freeze happened while writing to filesystem itself, the write operation is finished by using the information in journal.</p>  <p>Journaling partially fixes that problem by writing most changes to the disk twice: first to a special area called journal and, after that, to the filesystem itself. If power is lost while writing to the journal was in progress, the partial change is just ignored and never committed to the filesystem itself. If power failure or OS freeze happened while writing to filesystem itself, the write operation is finished by using the information in journal.</p>
180    
181  <p>Journaling helps most of the time when the computer has been forcefully shut down, but not always. Due to performance reasons, only some write operations are written to the journal, mostly the biggest operations. Of course, journaling doesn't help if that particular operation that was in progress while power was lost didn't go through the journal. Journaling also doesn't protect from everything: for example, using ext4 filesystem in conjuction with programs that write a lot of files in a short time can result in <a href="http://www.h-online.com/open/news/item/Possible-data-loss-in-Ext4-740467.html" target="_blank">massive data loss</a>, regardless if journaling is enabled or not.</p>  <p>Journaling is always a trade-off between reliability and performance. In fact, the ext3 and ext4 filesystems support multiple journaling modes in order to allow the user to choose the optimal compromise. The most popular choices are <b>ordered</b> and <b>writeback</b>.</p>
182    
183    <p>Both modes only write metadata changes to the journal before committing them: data itself is written directly to the main filesystem. The difference between the modes is that <b>ordered</b> mode guarantees that the data is written before the change is marked as committed. The difference may sound small, but in some cases <b>ordered</b> mode causes horrible performance. In Linux 2.6.30, the default journaling mode was changed to <b>writeback</b> - and it was quickly found out that <b>writeback</b> mode may cause massive data loss. See <a href="http://forums.raiden.net/viewtopic.php?p=155912#155912" target="_blank">this forum post</a> for details. Most GNU/Linux distributions are now using <b>ordered</b> mode as the default again.</p>
184    
185  <p>In addition, journaling reduces performance. It causes more writes to the disk. That's not a big problem on mechanical hard drives, but on SSDs (Solid State Drives) and thumb drives write speed is much slower than read speed. They also have a limited number of writing cycles, so journaling reduces their lifetime. I (Jyrki) actually use ext2 and FAT32 filesystems on my external SSD drive because they do NOT support journaling at all.</p>  <p>In addition, on SSDs (Solid State Drives) and thumb drives write speed is much slower than read speed. They also have a limited number of writing cycles, so journaling reduces their lifetime. Thus, I (Jyrki) recommend against using journaling fileystems on such drives.</p>
186    
187  <H3><a name="partitions-filesystems"></a>What are the differences between most popular filesystems? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>  <H3><a name="partitions-filesystems"></a>What are the differences between most popular filesystems? <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>
188    
# Line 238  The following pressentation has been mad Line 238  The following pressentation has been mad
238    </tr>    </tr>
239      <tr>      <tr>
240      <th>ext4</th>      <th>ext4</th>
241      <td style="background-color: rgb(255,0,0)">No</td>      <td style="background-color: rgb(255,0,0)">No***</td>
242          <td style="background-color: rgb(0,255,0)">Native</td>          <td style="background-color: rgb(0,255,0)">Native</td>
243          <td style="background-color: rgb(255,127,0)">16 GB-16 TB*</td>          <td style="background-color: rgb(255,127,0)">16 GB-16 TB*</td>
244          <td style="background-color: rgb(0,255,0)">Yes</td>          <td style="background-color: rgb(0,255,0)">Yes</td>
# Line 246  The following pressentation has been mad Line 246  The following pressentation has been mad
246    </tr>    </tr>
247      <tr>      <tr>
248      <th>exFAT</th>      <th>exFAT</th>
249      <td style="background-color: rgb(127,255,0)">Native (Vista/7)**</td>      <td style="background-color: rgb(127,255,0)">Built-in (Vista/7)**</td>
250          <td style="background-color: rgb(255,0,0)">No</td>          <td style="background-color: rgb(255,127,0)">3rd party driver</td>
251          <td style="background-color: rgb(0,255,0)">64 ZB</td>          <td style="background-color: rgb(0,255,0)">64 ZB</td>
252          <td style="background-color: rgb(255,0,0)">No</td>          <td style="background-color: rgb(255,0,0)">No</td>
253          <td style="background-color: rgb(0,255,0)">Yes</td>          <td style="background-color: rgb(0,255,0)">Yes</td>
# Line 258  The following pressentation has been mad Line 258  The following pressentation has been mad
258    
259    
260  <p>* Depends on cluster size<br>  <p>* Depends on cluster size<br>
261  ** <a href="http://support.microsoft.com/kb/955704" target="_blank">This update</a> adds exFAT support to Windows XP</p>  ** <a href="http://support.microsoft.com/kb/955704" target="_blank">This update</a> adds exFAT support to Windows XP<br>
262    *** <a href="http://ext2read.blogspot.com/" target="_blank">Ext2read</a> makes accessing ext4 partitions possible, but it's not a driver and the access is read-only</p>
263    
264  <p>Operating system support:</p>  <p>Operating system support:</p>
265    
# Line 266  The following pressentation has been mad Line 267  The following pressentation has been mad
267  <li>"Native" means that the kernel supports the filesystem and the OS can boot from a partition using that FS.</li>  <li>"Native" means that the kernel supports the filesystem and the OS can boot from a partition using that FS.</li>
268  <li>"Built-in" means that the kernel supports the filesystem, but booting from a partition containing such FS is very difficult.</li>  <li>"Built-in" means that the kernel supports the filesystem, but booting from a partition containing such FS is very difficult.</li>
269  <li>"Driver included" means that ntfs-3g (the driver that adds NTFS support to Linux) comes with most GNU/Linux distributions.</li>  <li>"Driver included" means that ntfs-3g (the driver that adds NTFS support to Linux) comes with most GNU/Linux distributions.</li>
270  <li>"3rd party driver" means that drivers to add filesystem support are available, but must be downloaded and installed separately. The drivers are <a href="http://www.fs-driver.org" target="_blank">Ext2 IFS</a> and <a href="http://www.ext2fsd.com" target="_blank">Ext2fsd</a>.</li>  <li>"3rd party driver" means that drivers to add filesystem support are available, but must be downloaded and installed separately. The ext2/3 drivers are <a href="http://www.fs-driver.org" target="_blank">Ext2 IFS</a> and <a href="http://www.ext2fsd.com" target="_blank">Ext2fsd</a> and the exFAT driver is <a href="http://code.google.com/p/exfat/" target="_blank">exfat</a>.</li>
271  <li>"No" means that there is no way to use the filesystem within the operating system.</li>  <li>"No" means that there is no way to get read-write filesystem support.</li>
272  </ul>  </ul>
273    
274  <H2><a name="filesystems"></a>Filesystems <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H2>  <H2><a name="filesystems"></a>Filesystems <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H2>
# Line 282  The following pressentation has been mad Line 283  The following pressentation has been mad
283    
284  <p>FAT32 was first introduced with Windows 95 OSR2. Windows 98, Windows Me, Windows 2000 and newer support FAT32 too. Linux kernel has supported FAT32 almost as long as Windows, but booting GNU/Linux from FAT32 partition is difficult and actually requires DOS to be installed in the partition as well. (<a href="http://en.wikipedia.org/wiki/FAT_filesystem_and_Linux#Installing_Linux_on_and_booting_it_from_FAT_volumes_using_umsdos" target="_blank">more information</a>)</p>  <p>FAT32 was first introduced with Windows 95 OSR2. Windows 98, Windows Me, Windows 2000 and newer support FAT32 too. Linux kernel has supported FAT32 almost as long as Windows, but booting GNU/Linux from FAT32 partition is difficult and actually requires DOS to be installed in the partition as well. (<a href="http://en.wikipedia.org/wiki/FAT_filesystem_and_Linux#Installing_Linux_on_and_booting_it_from_FAT_volumes_using_umsdos" target="_blank">more information</a>)</p>
285    
286  <p>FAT32 partition can be up to two terabytes in size. As of now (March 2010), there are hard drives that hit the limit, but don't exceed it. A single file within FAT32 partition can be up to four gigabytes in size.</p>  <p>FAT32 partition can be up to two terabytes in size. As of now (July 2010), there are hard drives that hit the limit, but don't exceed it. A single file within FAT32 partition can be up to four gigabytes in size.</p>
287    
288  <p>Because FAT32 is, in the end, based on FAT12, it has very few features. It doesn't support file permissions, hard/symbolic links, encryption, compression, alternative data streams, journaling... It lacks support for nearly anything that defines a modern filesystem. However, due to very few features, FAT32 is very fast filesystem if it's not fragmented or on a Flash-based drive. Mind you, FAT32 fragments very fast.</p>  <p>Because FAT32 is, in the end, based on FAT12, it has very few features. It doesn't support file permissions, hard/symbolic links, encryption, compression, alternative data streams, journaling... It lacks support for nearly anything that defines a modern filesystem. However, due to very few features, FAT32 is very fast filesystem if it's not fragmented or on a Flash-based drive. Mind you, FAT32 fragments very fast.</p>
289    
# Line 302  The following pressentation has been mad Line 303  The following pressentation has been mad
303    
304  <p>Ext2 supports file permissions, both hard and symbolic links and extended file attributes. Encryption, compression and journaling are unsupported.</p>  <p>Ext2 supports file permissions, both hard and symbolic links and extended file attributes. Encryption, compression and journaling are unsupported.</p>
305    
306  <p>Due to lack of journaling support and existence of Windows drivers, I recommend using ext2 if you're going to install GNU/Linux on a SSD drive and want to be able to access files within Windows too. In fact, that's exactly the setup I have.</p>  <p>Due to lack of journaling support and existence of Windows drivers, I recommend using ext2 if you're going to install GNU/Linux on a SSD drive and want to be able to access files within Windows too.</p>
307    
308  <p>However, lack of journaling support is the worst limitation of ext2. And what was done in order to get rid of the limitation?</p>  <p>However, lack of journaling support is the worst limitation of ext2. And what was done in order to get rid of the limitation?</p>
309    
310  <H3><a name="partitions-ext3"></a>ext3 <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>  <H3><a name="partitions-ext3"></a>ext3 <span class="hideprint">[<a href="#partitions-top" title="go to top of the page">^</a>]</span></H3>
311    
312  <p>Ext3, the successor of ext2, was introduced in Linux kernel on November 2001. It supports journaling, can be grown online and indexes large directories.</p>  <p>Ext3, the successor of ext2, was introduced in Linux kernel on November 2001. It supports journaling, can be grown online and optionally indexes large directories.</p>
313    
314  <p>Ext2 IFS and Ext2fsd can mount ext3 partition as ext2 if the journal is empty. (If it's not, something is wrong - journal is always emptied when the partition is unmounted or the computer is shut down.) Thus, ext3 support under Windows is just as good/bad as ext2 support.</p>  <p>Ext2 IFS and Ext2fsd can mount ext3 partition as ext2 if the journal is empty. (If it's not, something is wrong - journal is always emptied when the partition is unmounted or the computer is shut down.) Thus, ext3 support under Windows is just as good/bad as ext2 support.</p>
315    
# Line 324  The following pressentation has been mad Line 325  The following pressentation has been mad
325    
326  <p>Another important improvement is larger partition size limit: an ext4 partition can be even one exabyte in size. (An exabyte is a million terabytes.) In addition, a directory within an ext4 partition can contain up to 64 000 subdirectories (instead of 32 000, as in ext2/3) and timestamps are much more accurate. The file size limit is 16 GB-16 TB, depending on cluster size.</p>  <p>Another important improvement is larger partition size limit: an ext4 partition can be even one exabyte in size. (An exabyte is a million terabytes.) In addition, a directory within an ext4 partition can contain up to 64 000 subdirectories (instead of 32 000, as in ext2/3) and timestamps are much more accurate. The file size limit is 16 GB-16 TB, depending on cluster size.</p>
327    
328  <p>Unfortunately, Ext2 IFS and Ext2Fsd don't support ext4 and are unable to mount ext4 partition if extents are enabled. They can be disabled, but other improvements of ext4 aren't that important for most people - using ext2 or ext3 is just easier.</p>  <p>Unfortunately, Ext2 IFS and Ext2Fsd don't support ext4 and are unable to mount ext4 partition if extents are enabled. They can be disabled, but other improvements of ext4 aren't that important for most people - using ext2 or ext3 is just easier. It is also possible to keep extents enabled and browse the partition using <a href="http://ext2read.blogspot.com/" target="_blank">Ext2read</a>, but Ext2read doesn't allow the user to write to the partition.</p>
329    
330  <p>Due to its features, ext4 is a good filesystem on computers that only have GNU/Linux installed. Because journaling can be disabled, it is suitable for Solid State Drives and thumb drives too.</p>  <p>Due to its features, ext4 is a good filesystem on computers that only have GNU/Linux installed. Because journaling can be disabled, it is suitable for Solid State Drives and thumb drives too.</p>
331    
# Line 350  The following pressentation has been mad Line 351  The following pressentation has been mad
351    
352  <p>However, FAT32 only allows files up to four gigabytes in size. The limit is already becoming too small, for example a DVD disc image can exceed that limit. In addition, FAT32 lacks file permission support. In order to get rid of these limitations, Microsoft took FAT from its grave and updated it one more time.</p>  <p>However, FAT32 only allows files up to four gigabytes in size. The limit is already becoming too small, for example a DVD disc image can exceed that limit. In addition, FAT32 lacks file permission support. In order to get rid of these limitations, Microsoft took FAT from its grave and updated it one more time.</p>
353    
354  <p>ExFAT (extended FAT), also known as FAT64, was introduced with Windows CE 6.0, on November 2006. Windows Vista SP1, Windows 7 and newer support exFAT too, and by installing <a href="http://support.microsoft.com/kb/955704" target="_blank">this update</a> Windows XP can be extended to support exFAT as well. Unfortunately, the only read-write exFAT driver for GNU/Linux (<a href="http://www.tuxera.com/products/exfat-for-embedded-systems/" target="_blank">Tuxera exFAT for Embedded Systems</a>) is payware.</p>  <p>ExFAT (extended FAT), also known as FAT64, was introduced with Windows CE 6.0, on November 2006. Windows Vista SP1, Windows 7 and newer support exFAT too, and by installing <a href="http://support.microsoft.com/kb/955704" target="_blank">this update</a> Windows XP can be extended to support exFAT as well. GNU/Linux drivers are available too, but currently none of them are both stable and free. The best option seems to be <a href="http://code.google.com/p/exfat/" target="_blank">exfat</a>, an open-source driver in beta stage.</p>
355    
356  <p>The partition and file size limits of exFAT are the same: 64 zettabytes. Another important improvement is file permission support that, oddly, is lacking in Windows Vista. In addition, a directory within an exFAT partition can contain up to 2 796 202 files (instead of 65 536, as in FAT32) and timestamps have become more accurate.</p>  <p>The partition and file size limits of exFAT are the same: 64 zettabytes. Another important improvement is file permission support that, oddly, is lacking in Windows Vista. In addition, a directory within an exFAT partition can contain up to 2 796 202 files (instead of 65 536, as in FAT32) and timestamps have become more accurate.</p>
357    
# Line 364  The following pressentation has been mad Line 365  The following pressentation has been mad
365    
366  <p class="newcode" style="margin-right: 0;">&nbsp;0&nbsp;&nbsp;Empty&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;80&nbsp;&nbsp;Old&nbsp;Minix<br>  <p class="newcode" style="margin-right: 0;">&nbsp;0&nbsp;&nbsp;Empty&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;80&nbsp;&nbsp;Old&nbsp;Minix<br>
367  &nbsp;1&nbsp;&nbsp;FAT12&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;81&nbsp;&nbsp;Minix&nbsp;/&nbsp;old&nbsp;Linux<br>  &nbsp;1&nbsp;&nbsp;FAT12&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;81&nbsp;&nbsp;Minix&nbsp;/&nbsp;old&nbsp;Linux<br>
368  &nbsp;2&nbsp;&nbsp;XENIX&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">82&nbsp;&nbsp;Linux&nbsp;swap&nbsp;/&nbsp;Solaris</font><br>  &nbsp;2&nbsp;&nbsp;XENIX&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Green">82&nbsp;&nbsp;Linux&nbsp;swap&nbsp;/&nbsp;Solaris</font><br>
369  &nbsp;3&nbsp;&nbsp;XENIX&nbsp;usr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Green">83&nbsp;&nbsp;Linux</font><br>  &nbsp;3&nbsp;&nbsp;XENIX&nbsp;usr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="Red">83&nbsp;&nbsp;Linux</font><br>
370  &nbsp;4&nbsp;&nbsp;FAT16&nbsp;&lt;32M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;84&nbsp;&nbsp;OS/2&nbsp;hidden&nbsp;C:&nb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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8e&nbsp;&nbsp;Linux&nbsp;LVM<br>  &nbsp;9&nbsp;&nbsp;AIX&nbsp;bootable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8e&nbsp;&nbsp;Linux&nbsp;LVM<br>
# Line 414  The following pressentation has been mad Line 415  The following pressentation has been mad
415  <p>The partitions you are most likely to see in use, are:</p>  <p>The partitions you are most likely to see in use, are:</p>
416    
417  <ul>  <ul>
 <li><b><font color="Red">FAT16 (ID = 6)  </font></b><br>  
 This is the old DOS partition type<br>  
 You may still find it in pure DOS installations, like vendor diagnostics tool partitions, and small USB sticks (128 - 250 MB)</li>  
   
418  <li><b><font color="Green">HPFS/NTFS (ID = 7)</font></b><br>  <li><b><font color="Green">HPFS/NTFS (ID = 7)</font></b><br>
419  This is the <b>Windows XP</b> partition, also known as <b>NTFS</b></li>  This is the <b>Windows XP</b> partition, also known as <b>NTFS</b></li>
420    
# Line 426  This is the <b>Windows 95 - 98</b> parti Line 423  This is the <b>Windows 95 - 98</b> parti
423  It is used in any kind of disk and large USB devices (1 GB and more)</li>  It is used in any kind of disk and large USB devices (1 GB and more)</li>
424    
425  <li><b><font color="Green">W95 Ext'd (LBA) (ID = f)</font></b><br>  <li><b><font color="Green">W95 Ext'd (LBA) (ID = f)</font></b><br>
426  Extended partition. It acts as a container for other partitions<br>  Extended partition. It acts as a container for other partitions</li>
 There is one more extended partition type (ID = 5), but it does not seem to be in use as much</li>  
427    
428  <li><b><font color="Red">Linux swap / Solaris (ID = 82)</font></b><br>  <li><b><font color="Red">Extended (ID = 5)</font></b><br>
429    Another extended partition type. It acts as a container for other partitions<br>
430    There is one more extended partition type (ID = 85), but Windows doesn't recognise it</li>
431    
432    <li><b><font color="Green">Linux swap / Solaris (ID = 82)</font></b><br>
433  Swap partition, acting as <b>Virtual Memory</b><br>  Swap partition, acting as <b>Virtual Memory</b><br>
434  Modern computers with 1 - 2 GB of memory may not use it at all</li>  Modern computers with 1 - 2 GB of memory may not use it at all</li>
435    
436  <li><b><font color="Green">Linux (ID = 83)</font></b><br>  <li><b><font color="Red">Linux (ID = 83)</font></b><br>
437  Linux partitions, such as <b>ext2</b>, <b>ext3</b> and <b>reiserfs</b></li>  Linux partitions, such as <b>ext2</b>, <b>ext3</b> and <b>reiserfs</b></li>
438  </ul>  </ul>
439    
# Line 484  Disk identifier: 0x00058a4a<br> Line 484  Disk identifier: 0x00058a4a<br>
484  <img src="images/gparted-04.png">  <img src="images/gparted-04.png">
485  <p>I right-click the unallocated area and select <b>New</b>.</p>  <p>I right-click the unallocated area and select <b>New</b>.</p>
486  <img src="images/gparted-05.png">  <img src="images/gparted-05.png">
487  <p>I select <b>Extended Partition</b> as the partition type. The size was already 998 megabytes (the maximum) and as said, an extended partition doesn't contain any filesystem. I click <b>Add</b>.</p>  <p>I select <b>Extended Partition</b> as the partition type. The size was already 1000 megabytes (the maximum) and as said, an extended partition doesn't contain any filesystem. I click <b>Add</b>.</p>
488  <img src="images/gparted-06.png">  <img src="images/gparted-06.png">
489  <p>I right-click the unallocated area within the extended partition and select <b>New</b>.</p>  <p>I right-click the unallocated area within the extended partition and select <b>New</b>.</p>
490  <img src="images/gparted-07.png">  <img src="images/gparted-07.png">
491  <p>I choose the ext4 filesystem and enter 798 MB as the partition size. After that, I click first the <b>Free Space Following (MiB)</b> combo box and then <b>Add</b>.</p>  <p>I choose the ext4 filesystem and enter 799 MB as the partition size. After that, I click first the <b>Free Space Following (MiB)</b> combo box and then <b>Add</b>.</p>
492  <img src="images/gparted-08.png">  <img src="images/gparted-08.png">
493  <p>I right-click the remaining unallocated space and select <b>New</b> one more time.</p>  <p>I right-click the remaining unallocated space and select <b>New</b> one more time.</p>
494  <img src="images/gparted-09.png">  <img src="images/gparted-09.png">
495  <p>I choose the ext4 filesystem again. The partition size setting was already 201 megabytes (the whole available space), so I just press <b>Add</b>.</p>  <p>I choose the ext4 filesystem again. The partition size setting was already 200 megabytes (the whole available space), so I just press <b>Add</b>.</p>
496  <img src="images/gparted-10.png">  <img src="images/gparted-10.png">
497  <div align="center"><table class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="images/important.png"></td><td>  <div align="center"><table class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="images/important.png"></td><td>
498  The next step is to commit the changes.<br><br>After that some operations, for example<br>partition deletion, can no longer be undone.  The next step is to commit the changes.<br><br>After that some operations, for example<br>partition deletion, can no longer be undone.
# Line 521  mkdir /mnt/sda6</p> Line 521  mkdir /mnt/sda6</p>
521  <p class="newcode">mount /dev/sda1 /mnt/sda1<br>  <p class="newcode">mount /dev/sda1 /mnt/sda1<br>
522  mount /dev/sda6 /mnt/sda6</p>  mount /dev/sda6 /mnt/sda6</p>
523    
524  <p>I move the directory:</p>  <p>I copy the directory to the new partition:</p>
525    
526    <p class="newcode">cd /mnt/sda1<br>
527    rsync -aAPSX home/ /mnt/sda6</p>
528    
529  <p class="newcode">mv /mnt/sda1/home/* /mnt/sda6/</p>  <p>I move the original directory out of my way and create a new directory in place of it:</p>
530    
531    <p class="newcode">mv home home-old<br>
532    mkdir home</p>
533    
534  <p>After that, I unmount /dev/sda6, because it no longer needs to be mounted:</p>  <p>After that, I unmount /dev/sda6, because it no longer needs to be mounted:</p>
535    
536  <p class="newcode">sync<br>  <p class="newcode">umount /dev/sda6</p>
 umount /dev/sda6</p>  
537  <img src="images/terminal.png">  <img src="images/terminal.png">
 <p>As you can see, under Linux it's perfectly normal that the terminal doesn't answer to the commands. Don't worry - they are really executed.</p>  
   
538  <p>Now I close <b>Terminal</b> and launch <b>Geany</b> by pressing the fourth icon in the bottom pane.</p>  <p>Now I close <b>Terminal</b> and launch <b>Geany</b> by pressing the fourth icon in the bottom pane.</p>
539  <img src="images/geany-00.png">  <img src="images/geany-00.png">
540  <p>I select <b>File</b> -> <b>Open</b>.</p>  <p>I select <b>File</b> -> <b>Open</b>.</p>
# Line 546  umount /dev/sda6</p> Line 549  umount /dev/sda6</p>
549    
550  <p>Finally, I select <b>File</b> -> <b>Save</b>.</p>  <p>Finally, I select <b>File</b> -> <b>Save</b>.</p>
551  <img src="images/geany-04.png">  <img src="images/geany-04.png">
552  <p>It's a good idea to reboot the computer now and check if the distribution in <b>/dev/sda1</b> still works. Anyway, the disk should now be ready for the new distro.</p>  <p>It's a good idea to reboot the computer now and check if the distribution in <b>/dev/sda1</b> still works. If yes, the /home-old directory can be removed and the disk is ready for the new distro.</p>
553    
554    
555  </div>  </div>

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26