Beruflich Dokumente
Kultur Dokumente
Benefits of Partitioning
Separation of the operating system files from user files or having a
partition for swapping, separate from system utilities, keeps frequently
used programs and data near each other. Having browser cache files in
a separate partition keeps them away from other files. The frequency
of update and access is an important consideration for categorizing
files. Separating email from audio or photos is a good idea. Files that
can be retrieved from other sources can be grouped together.
Futher benefits include:
The use of multi-booting setups, which allow users to have more
than one operating system on a single computer. For example,
one could install Linux, Mac OS X, Microsoft Windows or others on
different partitions of the same hard disk and have a choice of
booting into any operating system (supported by the hardware)
at power-up.
Sharing swap partitions between multiple Linux distributions, so
such partitions use less hard drive space.
Protecting or isolating files, to make it easier to recover a
corrupted file system or operating system installation.
Raising overall computer performance because smaller
filesystems are more efficient. For instance, large hard drives
with only one NTFS filesystem typically have a very large Master
File Table (MFT) and it generally takes more time to read this MFT
than the smaller MFTs of smaller partitions.
Higher levels of data organization, raising the user efficiency of
the system, for example separate partitions dedicated to digital
movie processing, photos, email mailboxes or browser cache.
Partitions may be customized to different requirements, for example,
allowing for read-only partitions to protect data: if one partition is
damaged, none of the other file systems are affected, and the drive's
data may still be salvageable.
different file systems (ext2, ext3, reiserfs, etc.), they have all
consistently used the same partition type code: 0x83 (Linux native).
Extended
An extended partition is secondary to the primary partition(s). A hard
disk may contain only one extended partition; which can then be subdivided into logical drives, each of which is (under DOS and Windows)
assigned additional drive letters.
For example, under either DOS or Windows, a hard disk with one
primary partition and one extended partition, the latter containing two
logical drives, would typically be assigned the three drive letters: C:, D:
and E: (in that order).
See Extended Boot Record for information on the structure of an
extended partition.
Partitioning schemes
Microsoft Windows
With Microsoft Windows, the standard partitioning scheme is to create
a single active primary partition, the C: drive, where the operating
system, user data, applications, and page file all reside. Some users,
however, prefer to create multiple partitions so that the operating
system can be stored separately from other kinds of data. Proponents
of multiple partitions generally point to the benefit of being able to
erase a single partition (typically the operating system itself) while
retaining the other data. When used in conjunction with third-party
partition management programs such as Acronis True Image, Norton
Partition Magic, Norton Ghost, or specialized recovery programs that
come with computers manufactured by most major manufacturers, the
use of multiple partitions allows computer users to quickly recover
from viruses, rootkits, and trojan horses or an otherwise damaged,
corrupt or compromised operating system. Windows Vista includes an
inbuilt 'Disk Management' program which allows for the creation,
deletion and movement of partitions.
Unix
For Unix-based and Unix-like operating systems such as Linux and Mac
OS X, the creation of separate partitions for /boot, /home, /tmp, /usr,
/var, /opt, swap and all remaining files under the "/" (root directory) is
possible. (The same is true for Sun operating systems, except their
partitions are called slices.) Such a scheme has a number of potential
advantages: if one file system gets corrupted, the rest of the data (the
other file systems) stay intact, minimizing data loss; partitions can be
accessed read-only and the execution of setuid files disabled thus
enhancing security; performance may be enhanced due to less disk
head travel. This method has the disadvantage of subdividing the drive
into fixed-size partitions, so a user could run out of hard drive space in
his or her /home partition, even though other partitions still have plenty
of usable space. A good implementation requires the user to predict
how much space each partition will need, which may be a difficult task;
especially for new users. Logical Volume Management, often used in
servers, increases flexibility by allowing data in volumes to expand into
separate physical disks (which can be added when needed); another
option is to resize existing partitions when necessary. Typical desktop
systems are often comprised of a single "/" (root directory) containing
the entire filesystem plus a much smaller swap partition. By default,
Mac OS X systems use a single "/" (root directory) containing the entire
filesystem (including the swap file) as a point of simplicity (but other
setup options do exist).
Partition recovery
When a partition is deleted, in general, only its partition table entry is
removed from a table; and although the data is no longer accessible, it
still remains on the disk until being overwritten. Specialized recovery
utilities, (such as TestDisk and gpart), can locate lost file systems and
recreate a partition table which includes entries for these recovered file
systems. However, some disk utilities may also overwrite a number of
beginning sectors of a partition they delete. For example, if Windows
Disk Management (Windows 2000/XP, etc.) is used to delete a
partition, it will overwrite the first sector (relative sector 0) of the
partition before removing it. It may be possible to restore a FAT32 or
NTFS partition if a backup boot sector is available.