In general, Linux must have at least two partitions:/and swap. However, this method is not scientific. Once the system is reinstalled, the data in the hard disk is hard to be retained, therefore, we recommend that you separate/usr and/home. The following is the partitioning scheme of the 80 GB hard drive with 2 GB memory:/--- 5G, swap --- 1G,/usr --- 20G, /home --- 53G due to/usr partition, the root partition/5G is enough. If the system is different and the software is often installed,/usr is allocated about 20 GB.
In general, Linux must have at least two partitions:/and swap. However, this method is not scientific. Once the system is reinstalled, the data in the hard disk is hard to be retained, therefore, we recommend that you separate/usr and/home. The following is the partitioning scheme of the 80 GB hard drive with 2 GB memory:
/--- 5G, swap --- 1G,/usr --- 20G,/home --- 53G
Due to the/usr partition, the root partition/5G is enough. If the system is different and the software is often installed, the/usr is allocated about 20 GB. Note that the "/" and "swap" partitions must be divided, and a swap must be allocated even if your memory is large.
For details about the functions of each Ubuntu 10.04 partition, refer:
/Root directory. We recommend that you only have a directory under the root directory. Do not directly have a file.
Swap space, equivalent to the virtual memory on Windows.
/Boot contains the kernel of the operating system and the files to be used during system startup. It is necessary to create this partition, because most PCs are subject to BIOS restrictions, moreover, if you have a separate/boot partition, the computer can still start even if the primary root partition has a problem. The partition size is about 60 mb-120mb.
/Home user's home directory location. The partition size depends on the number of users. If multiple users use a computer together, this partition is completely necessary. Moreover, root users can well control the use of computers by common users, such as using hard disks for users or user groups, restrict common users to which files to access.
/Tmp is used to store temporary files. This is necessary for multi-user systems or network servers. In this way, even if a large number of temporary files are generated during the running of the program, or the user has performed wrong operations on the system, other parts of the file system are still safe. Because this part of the file system is still subject to read/write operations, it usually occurs faster than other parts. This directory is accessible to anyone, so regular cleanup is required.
/Usr Linux system where the software is stored, if possible, the maximum space should be allocated to it.
/Bin
/Usr/bin
/Usr/local/bin stores standard system utilities.
/Srv after some services are started, the data directories that these services need to access, such as the webpage data required by the WWW server can be placed in/srv/www.
The main setting files of the/etc system are stored in this directory.
/Lib
/Usr/lib
Directory of the function library used by/usr/local/lib.
/Root system administrator's home directory.
/Lost + found this directory is empty in most cases, but some files are temporarily stored here after a power failure or abnormal shutdown.
/Dev device files. In Linux, any device is stored in this directory as a file, such as hard drive device files, drive files, and optical drive device files.
/Mnt
/Media Mount directory, used to temporarily Mount other file systems or other hardware devices (such as optical drives and soft drives ).
/Opt is used to store directories of third-party software, but we are still used to storing them in/usr/local.
/Proc: the directory information is generated by the system in the memory. It stores some of the current process IDs and the CPU ing between the CPU and memory, because the data in this directory is in the memory, it does not occupy any hard disk space.
/Sbin
/Usr/sbin
/Usr/local/sbin stores the execution commands used by system administrators.
/Var stores files that are frequently changed during system execution, such as cache files or log files that are changed at any time ).
/Var/log System log Record Partition. If this independent partition is set up, the primary partition of the operating system will not be affected even if the system log file has a problem.