Before installing Linux, you should understand-general Linux technology-Linux technology and application information. The following is a detailed description. For details about partition, refer to
Before installing Linux, you must plan its partition and size in advance.
MBR is the most important part of the entire hard disk. MBR records two important things: start the hypervisor (for example, after Linux is installed, the boot hypervisor such as LILO or Grub is installed here) and the disk partition table ). If the MBR physical entity breaks down, the hard disk will basically be decommissioned.
During Linux installation, there are two partitions which must be: root directory "/" and virtual memory "Swap"; one hard disk sector, the Master Boot Recorder not only saves the Boot guide management program, but also saves the partition table of the hard disk. The size of the hard disk partition table can be divided into up to four sectors;
Therefore, a hard disk has the most sectors (Primary partition: Primary; slave partition: Extended)
Four primary partitions: P + P (corresponding code:/dev/hda1-/dev/hda4)
Or
Three primary partitions and one extended partition: P + E (corresponding code:/dev/hda1-/dev/hda4)
Extended partitions cannot be used directly. You need to create logical partitions on them to use them. The logic partition code starts with/dev/hda5.
Generally, the recommended size of Swap is twice the physical memory size;
You can set up to four Primary sectors on a hard disk. Therefore, if four Primary sectors are set, the hard disk still has space and cannot be used.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service