Difference between revisions of "Partitioning"

From ArchWiki
Jump to: navigation, search
(All-in-one)
m (added an option for creating partitions.)
Line 55: Line 55:
 
==Creating new partitions==
 
==Creating new partitions==
 
{{Expansion}}
 
{{Expansion}}
 +
Any of the partitioning tools can be used to create new partitions.
  
 
==Resizing partitions==
 
==Resizing partitions==

Revision as of 04:39, 5 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Disk partitioning is the act of dividing a hard disk drive into multiple virtual hard disk drives, referred to as partitions, to treat one physical disk drive as if it were multiple disks.

Wikipedia:Disk partitioning
Tip: Beginners' Guide#Prepare hard drive gives a detailed instruction on how to set hard disk partition at installation. Also you can get a lot info about file system types.

Overview

Partitioning a hard drive allows one to logically divide the available space into sections that can be accessed independently of one another. Partition information is stored within a hard drive's Master Boot Record.

An entire hard drive may be allocated to a single partition, or one may divide the available storage space amongst multiple partitions. A number of scenarios require creation multiple partitions: dual- or multi-booting, for example, or maintaining a swap partition. In other cases, partitioning is used as a means of logically separating data, such as creating separate partitions for audio and video files. Common partitioning schemes are discussed in detail below.

Users may create up to four primary partitions per hard drive. If additional partitions are required, a single extended partition can be created instead (that is, up to three primary partitions and one extended partition). An extended partition can be further divided into an unlimited number of logical partitions.

Partitioning schemes

All-in-one

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Partitioning#)

One partition holds everything.

Separate /boot

  • Only needed during boot and kernel upgrades (when regenerating the initial ramdisk)
  • Not required for normal system operation
  • Journaled filesystem not required
  • Needed if installing a software RAID0(stripe) system.

Separate /home

  • Facilitates backups and multi-booting
  • /home often requires the most disk space (for desktop users) and may need to be expanded at a later date

Separate /var

  • Frequently read/written (logs, cache)
  • Avoid running out of disk space due to flunky logs, etc.

Separate /usr

Note: Requires a mkinitcpio hook, as /usr is expected to be available at boot.
  • Can be shared between multiple systems

Considerations

  • Partition sizes
  • File systems
  • LVM

Creating new partitions

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Partitioning#)

Any of the partitioning tools can be used to create new partitions.

Resizing partitions

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Partitioning#)

Partitioning tools

  • fdisk & cfdisk
  • GNU Parted
  • QtParted & GParted