Обзор разделов и существующие таблицы разделов
Views
Actions
Namespaces
Variants
Tools
Обзор
В Manjaro используется текстовый инструмент для разметки диска под названием cfdisk. Выбор способа ручной разметки жесткого диска в значительной степени зависит от личных предпочтений. Тем не менее, мы предоставили некоторые рекомендации, особенно для новичков, желающих вручную разбить свой жесткий диск. Разбивка (то есть разделение) жесткого диска при установке операционной системы может производиться по нескольким причинам. Наиболее распространенные примеры включают:
- Соответствие требованиям некоторых операционных систем, например, Windows, которая требует как минимум два раздела: один для загрузки, другой для самой Windows.
- Возможность установки нескольких операционных систем на один жесткий диск.
- Разделение частей жесткого диска для определенных целей, например, для загрузки или для использования в качестве виртуальной памяти или Swap, а также
- Разделение частей жесткого диска для хранения определенных типов файлов: системных, личных и так далее.
Первичные и логические разделы
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:
Соглашения и рекомендации
- 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