Manjaro Partitions et Partitionner

Partitions et Partitionner

From Manjaro
This page is a translated version of the page Partitioning Overview and Existing Partition Tables and the translation is 18% complete.
Other languages:
English • ‎français • ‎русский

Aperçu

La manière dont vous allez partitionner votre disque tout à fait personnelle, cependant, nous avons certains conseils à vous donner, particulièrement si vous êtes un nouvel utilisateur. Partitionner (comprendre divisier) votre disque dur lors de l'installation d'un nouveau système d'exploitation est une option à très fortement considérer, pour les raisons suivantes

  • Respecter les obligations de certains systèmes, comme Windows, qui demandent un minimum de partitions sur le disque, en l'occurrence 2 pour le système à la fenêtre
  • La possibilité de pouvoir installer plusieurs systèmes d'exploitation sur un seul disque
  • Créer des parties distinctes sur le disque dur répondant chacune à des besoins spécifiques, pour démarrer ou servir de Swap/fr par exemple
  • Couper le disque en plusieurs systèmes différents afin de stocker des fichiers spécifiques : configurations, exécutables, fichiers personnels, etc.


Partitions Primaires et Logiques

There are two types of partition that may be used to divide a hard disk. These are Primary Partitions and Logical Partitions. Primary partitions are a throwback to the early days of computing, and only allow for a hard disk to be divided into a maximum of four parts, for example, you can have a maximum of four primary partitions, or three primaries and one extended partition which may contain several Logical partitions depending upon the architecture. They are, in essence, a way of further sub-dividing one primary partition into logical partitions is known as an Logical partitions. For example:

  • sda1 = 1st Primary
  • sda2 = 2nd Primary
  • sda3 = 3rd Primary
  • sda4 = 4th Extended Primary Partition (not actually usable as such)
    • sda5 = 5th Logical
    • sda6 = 6th Logical
    • sda7 = 7th Logical
    • sda8 = 8th Logical
    • and so on, depending upon your disk space and needs.

While the maximum number of Primary Partitions allowed on any drive is 4, through using Logical partitions, an IDE drive can be subdivided into just over 60 partitions, while a SCSI drive can be subdivided into over a dozen. Below is a simple illustration of how logical partitions can be used to partition a hard disk into eight parts:

Partitions.png
(courtesy of LinuxQuestions.org)


Conventions and Guidelines

  • The convention for listing drives and partitions is: sd [hard disk letter] [partition number]. For example, the first (or only) hard disk connected to your system will be listed as sda, the second sdb, and so on. In respect to partitions, sda1 would be the first partition found in the first hard disk, sda2 would be the second partition, and so on. Logical Partitions will always begin from '5'.
  • Unlike Windows (which requires that there is a primary partition specifically to boot), Linux systems such as Manjaro have no specific requirements for the use of Primary or Logical Partitions. For example, Manjaro may be installed using all Primary Partitions, all Logical Partitions, or a mixture of the two.
  • Although the assisted preparation method creates separate partitions for the GRUB (Boot), virtual memory (Swap), Manjaro operating system (Root), and personal files (Home), this is an entirely optional set up. For example, the Boot, Root, and Home partitions can be easily combined into a single partition. This is the case with other popular distributions such as Mint.
  • Separating or combining partitions is where personal preference comes in. Each set-up will have its own advantages and disadvantages. For example, separating Boot, Root and Home has the advantage of easily backing up and/or repairing problems without affecting anything else. A disadvantage is the potential to run out of pre-allocated space for a partition (e.g. the Root), even if ample space is available on the hard disk itself.
  • Although allocating a swap partition is itself entirely optional, it is still strongly recommended that you do so, particularly if you wish to use hibernate or suspend functions, as these will require use of a swap partition. Manjaro should therefore be installed using a minimum of two partitions.
  • Unless you know exactly what you are doing, the size of the swap partition should be the same as the amount of RAM your system is using (e.g. 2 gigabytes of space would be allocated to a swap partition if using 2 gigabytes of memory).
  • However you decide to partition your hard disk, almost any of them can be designated as a bootable partition and contain the GRUB. The exception is the swap partition.
  • Two Linux operating systems installed on the same system can share the same GRUB and Swap Partition; they don't need one each.


Where Using an Existing Linux Partition Table

It is worthwhile noting that the Manjaro installer will not overwrite a Home folder if it contains an existing username. As a consequence, the pre-installed desktop environment will lose its Manjaro configurations, and revert back to its basic ('vanilla') settings. In order to restore the Manjaro configuration settings, having booted into the freshly installed system, it will be necessary to enter the following command in your terminal:

cp -a /etc/skel/. /home/[username]


For example, for an account called carl, the following command would be entered:

cp -a /etc/skel/. /home/carl


Once complete, it will then be necessary to ensure that you have full ownership of the Home folder by entering the following command:

chown -R [username] /home/[username]


For example, for the same account called carl, the following command would be entered:

chown -R carl /home/carl

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.