When installing CentOS for Linux, you need to create CentOS partitions on the hard disk. In most cases, at least three partitions must be created for CentOS.
(1)/boot partition (not required):/boot partition is used to boot the system. It contains the kernel of the operating system and the files needed to start the system,
The partition size is generally 100 MB.
(2) swap partition: the function of a swap partition is to act as a virtual memory, which is usually about twice the physical memory size (when the physical memory is greater than MB, the swap partition is MB ).
For example, if the physical memory is 128 MB, the size of the swap partition should be 256 MB.
(3)/(Root) Partition: CentOS saves most of the system files and user files in the/(Root) partition, so the partition must be large enough, generally, it must be larger than 5 GB.
If the hard disk space is too large, the memory will be doubled to swap,
The system partitions are different based on different functions.
For example, if it is an email server,/var requires multi-point capacity;
If it is a file server,/home requires more points;
If you are playing with the desktop, you can use/swap +.
Example:
The hard disk is 160 GB, and the memory is 1 GB.
The partitioning principle is:
Swap 2G: Generally, this format of partition is twice as large as the memory.
/5G ext3 format.
/Boot to 100 M. This is the usual practice.
/Home 20G ext3 format
/Var 20G: ext3
/Usr 20G: ext3
/Ftp remaining: ext3