Linux system partition

Source: Internet
Author: User

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.