Linux system partition Linux partitions are completely different from windows, so many people are familiar with the windows format and do not quite understand the Linux habits. in Linux, there is no drive letter or something, only directories, everything is a directory. The default one is the root directory/. Basically everything is under this directory, and then it is like/usr,/var, /home and so on. Generally, the system automatically partitions, filesystem Size Used Avail Use % Mounted on/dev/mapper/VolGroup00-LogVol00 6.7G 4.0G 2.4G 63% // dev/sda1 99 M 13 M 82 M 13%/boottmpfs 252 M 0 252 M 0%/dev/shm, it can also be understood that the directory mentioned above can mount a disk or partition to any directory, such as/home, you can use automatic system partitions, but in some cases, automatic partitions are not enough to be sent. For example, if the system is broken, you need to reinstall the partitions. If all partitions are in the root directory, data cannot be operated properly, accidentally, the data will be completely lost. Therefore, a better way is to separate several directories or Data Directories into one partition. In this way, even if the system is broken, reinstallation does not affect data and other personal habits of the partition as follows/5G/var 10G/usr 10G/tmp 1G/boot 100 Mswap 2G/www remaining space can also be simple/ 30G/boot 100 Mswap 2G/www available space, you can adjust it according to your own situation. All data and web environments are installed under/www. Of course, you can also install the environment under/www, then put the website data in/home in Linux, and there is also a saying that the swap partition is similar to the virtual memory in windows, which is theoretically twice the actual memory, however, according to my personal experience, it is enough to have 2 GB of data. If the system uses a large number of swap partitions, even if you have more than 10 Gb of data, it will soon fail.