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

Diff of /trunk/www/working/partitions.html

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

revision 149 by sng, Thu Sep 16 18:15:05 2010 UTC revision 150 by jyrki, Mon Jan 24 15:52:21 2011 UTC
# Line 126  The following pressentation has been mad Line 126  The following pressentation has been mad
126    
127  <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>  <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>
128    
129  <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#Enhanced_BIOS" target="_blank">logical block addressing</a>. Extended partitions are another workaround.</p>
130    
131  <p>Partition table can only store information about four partitions. If one has, for example, two GNU/Linux distributions on the same disk, both of them having separate root partitions, shared /home and shared swap, the partition number limit has been hit already.</p>  <p>Partition table can only store information about four partitions. If one has, for example, two GNU/Linux distributions on the same disk, both of them having separate root partitions, shared /home and shared swap, the partition number limit has been hit already.</p>
132    
# Line 289  exFAT&nbsp;&nbsp;Built-in&nbsp;(Vista/7) Line 289  exFAT&nbsp;&nbsp;Built-in&nbsp;(Vista/7)
289    
290  <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>
291    
292  <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>  <p>FAT32 partition can be up to two terabytes in size. There are already hard drives that exceed the limit. A single file within FAT32 partition can be up to four gigabytes in size.</p>
293    
294  <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>
295    
# Line 453  Linux partitions, such as <b>ext2</b>, < Line 453  Linux partitions, such as <b>ext2</b>, <
453    
454  <p>This section contains a partitioning example. I simulate the following situation in a virtual machine:</p>  <p>This section contains a partitioning example. I simulate the following situation in a virtual machine:</p>
455    
456  <p>I have two partitions in my disk: <b>/dev/sda1</b> that contains a GNU/Linux distribution, and <b>/dev/sda2</b> that is a swap partition. Here we can see the output of <b>fdisk</b>:</p>  <p>I have two partitions in my disk: <b>/dev/sda1</b> that contains a GNU/Linux distribution, and <b>/dev/sda2</b> that is a swap partition. Here we can see the output of <b>parted</b>:</p>
457    
458  <p class="newcode">root@sysresccd /root % fdisk -l<br>  <p class="newcode">root@sysresccd /root % parted -l<br>
459    Model: ATA VBOX HARDDISK (scsi)<br>
460    Disk /dev/sda: 2097MB<br>
461    Sector size (logical/physical): 512B/512B<br>
462    Partition Table: msdos<br>
463  <br>  <br>
464  Disk /dev/sda: 2097 MB, 2097152000 bytes<br>  Number&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size&nbsp;&nbsp;&nbsp;&nbsp;Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File&nbsp;system&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flags<br>
465  64 heads, 63 sectors/track, 1015 cylinders<br>  &nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;32.3kB&nbsp;&nbsp;1679MB&nbsp;&nbsp;1679MB&nbsp;&nbsp;primary&nbsp;&nbsp;ext4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;boot<br>
466  Units = cylinders of 4032 * 512 = 2064384 bytes<br>  &nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1679MB&nbsp;&nbsp;2097MB&nbsp;&nbsp;418MB&nbsp;&nbsp;&nbsp;primary&nbsp;&nbsp;linux-swap(v1)<br>
 Disk identifier: 0x00058a4a<br>  
467  <br>  <br>
468  &nbsp;&nbsp;&nbsp;Device&nbsp;Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp;&nbsp;Id&nbsp;&nbsp;System<br>  <br>
469  /dev/sda1&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;812&nbsp;&nbsp;&nbsp;&nbsp;1636960+&nbsp;&nbsp;83&nbsp;&nbsp;Linux<br>  Warning: Unable to open /dev/sr0 read-write (Read-only file system).&nbsp;&nbsp;/dev/sr0 has been opened read-only.<br>
470  /dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;813&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1015&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;409248&nbsp;&nbsp;&nbsp;82&nbsp;&nbsp;Linux swap / Solaris</p>  Error: /dev/sr0: unrecognised disk label<br>
471    <br>
472    Error: /dev/fd0: unrecognised disk label</p>
473    
474  <p>Now I'm going to install another distribution on the same disk. First of all, I need one more partition, because only one distro can be installed on one partition. In addition, I want to separate /home to its own partition in order to be able to share it between distributions.</p>  <p>Now I'm going to install another distribution on the same disk. First of all, I need one more partition, because only one distro can be installed on one partition. In addition, I want to separate /home to its own partition in order to be able to share it between distributions.</p>
475    

Legend:
Removed from v.149  
changed lines
  Added in v.150

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26